OSDN Git Service

ASoC: q6afe-dai: mark all widgets registers as SND_SOC_NOPM
authorSrinivas Kandagatla <srinivas.kandagatla@linaro.org>
Tue, 11 Aug 2020 12:02:04 +0000 (13:02 +0100)
committerMark Brown <broonie@kernel.org>
Tue, 11 Aug 2020 13:05:47 +0000 (14:05 +0100)
commit56235e4bc5ae58cb8fcd9314dba4e9ab077ddda8
treeb26c6406ed8afa37482e5a2b699d8678649e492e
parentefc913c8fb88728626759735e1b09370a6813180
ASoC: q6afe-dai: mark all widgets registers as SND_SOC_NOPM

Looks like the q6afe-dai dapm widget registers are set as "0",
which is a not correct.

As this registers will be read by ASoC core during startup
which will throw up errors, Fix this by making the registers
as SND_SOC_NOPM as these should be never used.

With recent changes to ASoC core, every register read/write
failures are reported very verbosely. Prior to this fails to reads
are totally ignored, so we never saw any error messages.

Fixes: 24c4cbcfac09 ("ASoC: qdsp6: q6afe: Add q6afe dai driver")
Reported-by: John Stultz <john.stultz@linaro.org>
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Link: https://lore.kernel.org/r/20200811120205.21805-1-srinivas.kandagatla@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/qcom/qdsp6/q6afe-dai.c