ASoC: Intel: avs: Fix PPLCxFMT calculation
authorCezary Rojewski <cezary.rojewski@intel.com>
Fri, 30 May 2025 14:10:19 +0000 (16:10 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 2 Jun 2025 11:26:46 +0000 (12:26 +0100)
commit347c8d6db7c9d65d93ef226849b273823f54eaea
tree94c556bca59e2eef886ccd4ff562b3ebae48e631
parent9ad1f3cd0d60444c69948854c7e50d2a61b63755
ASoC: Intel: avs: Fix PPLCxFMT calculation

HDAudio transfer types utilize SDxFMT for front-end (HOST) and PPLCxFMT
for back-end (LINK) side when setting up the stream. BE's
substream->runtime duplicates FE runtime so switch to using BE's
hw_params to address incorrect format values on the LINK side when FE
and BE formats differ.

The problem is introduced with commit d070002a20fc ("ASoC: Intel: avs:
HDA PCM BE operations") but the code has been shuffled around since then
so direct 'Fixes:' tag does not apply.

Reviewed-by: Amadeusz Sławiński <amadeuszx.slawinski@linux.intel.com>
Signed-off-by: Cezary Rojewski <cezary.rojewski@intel.com>
Link: https://patch.msgid.link/20250530141025.2942936-4-cezary.rojewski@intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/avs/pcm.c