]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ASoC: soc-pcm: Preserve hw parameters from components in dpcm_runtime_setup_fe
authorPeter Ujfalusi <peter.ujfalusi@linux.intel.com>
Wed, 29 Oct 2025 07:36:00 +0000 (09:36 +0200)
committerMark Brown <broonie@kernel.org>
Thu, 6 Nov 2025 13:05:43 +0000 (13:05 +0000)
commit6d34b66fb726a613b98c936adee70d42aa5e4aa7
tree320d8934ed6534413b33d9a1177f45d4907785cf
parent7a381e373a4243926a41b8e6ebbdeb90fe9afda3
ASoC: soc-pcm: Preserve hw parameters from components in dpcm_runtime_setup_fe

Component drivers can prepare snd_pcm_hardware struct based on the hardware
capabilities which information should not be discarded.

Only touch the rates, channels_max and formats if they were left to 0,
otherwise keep the provided configuration intact for the parameter cross
checking decision.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
Link: https://patch.msgid.link/20251029073600.13624-1-peter.ujfalusi@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/soc-pcm.c