]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: Stop dummy from overriding hwparams
authorAmadeusz Sławiński <amadeuszx.slawinski@linux.intel.com>
Fri, 15 Oct 2021 16:12:57 +0000 (18:12 +0200)
committerMark Brown <broonie@kernel.org>
Fri, 29 Oct 2021 15:49:45 +0000 (16:49 +0100)
commit259ce7d5dd27ec4a3ee181731dde05d387e34b80
treec0652c69df56f75acc5045646940a74441497495
parent168f7a522e921311cc8cbd622458cfaa36fffc4f
ASoC: Stop dummy from overriding hwparams

In case that there are other components assigned to runtime device,
depending on order dummy component can override their params with its
own, which shouldn't happen. Check if there are any other components
assigned to rtd and if so, skip setting hwparams.

Occurs when using topology where 'snd-soc-dummy' gets assigned by
default as codec and platform component.

Alternative approach would be to copy whole dummy handling and rename it
to "snd-soc-null" or something similar. And remove hwparams assignment
to make it really do nothing.

Signed-off-by: Amadeusz Sławiński <amadeuszx.slawinski@linux.intel.com>
Signed-off-by: Cezary Rojewski <cezary.rojewski@intel.com>
Link: https://lore.kernel.org/r/20211015161257.27052-7-cezary.rojewski@intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/soc-utils.c