]> asedeno.scripts.mit.edu Git - linux.git/commit
ASoC: codec2codec: deal with params when necessary
authorJerome Brunet <jbrunet@baylibre.com>
Thu, 25 Jul 2019 16:59:46 +0000 (18:59 +0200)
committerMark Brown <broonie@kernel.org>
Thu, 25 Jul 2019 17:42:52 +0000 (18:42 +0100)
commit3dcfb397dad2ad55bf50de3c5d5a57090d35a18a
tree59801f74e0df1a5ce5d11ba951cf403f28e513ac
parent054d65004c6a008dfefbdae4fc1b46a3ad4e94c1
ASoC: codec2codec: deal with params when necessary

When there is an event on codec to codec dai_link, we only need to deal
with params if the event is SND_SOC_DAPM_PRE_PMU, when .hw_params() is
called. For the other events, it is useless.

Also, dealing with the codec to codec params just before calling
.hw_params() callbacks give change to either party on the link to alter
params content in .startup(), which might be useful in some cases

Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
Link: https://lore.kernel.org/r/20190725165949.29699-4-jbrunet@baylibre.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/soc-dapm.c