OpenCloudOS-Kernel/sound/soc/qcom/qdsp6
Srinivas Kandagatla 796a58fe2b
ASoC: q6routing: add dummy register read/write function
Most of the DAPM widgets for DSP ASoC components reuse reg field
of the widgets for its internal calculations, however these are not
real registers. So read/writes to these numbers are not really
valid. However ASoC core will read these registers to get default
state during startup.

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.

To fix this add dummy read/write function to return default value.

Fixes: e3a33673e8 ("ASoC: qdsp6: q6routing: Add q6routing 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-2-srinivas.kandagatla@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org>
2020-08-11 14:05:48 +01:00
..
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
q6adm.c ASoC: qcom: qdsp6: Use IS_ERR() instead of IS_ERR_OR_NULL() 2020-07-17 14:47:00 +01:00
q6adm.h ASoC: qdsp6: q6adm: Add q6adm driver 2018-05-21 16:40:24 +01:00
q6afe-dai.c ASoC: q6afe-dai: mark all widgets registers as SND_SOC_NOPM 2020-08-11 14:05:47 +01:00
q6afe.c ASoC: q6afe: Remove unused q6afe_is_rx_port() function 2020-07-24 15:01:17 +01:00
q6afe.h ASoC: q6afe: Remove unused q6afe_is_rx_port() function 2020-07-24 15:01:17 +01:00
q6asm-dai.c ASoC: dt-bindings: q6asm: Add Q6ASM_DAI_{TX_RX, TX, RX} defines 2020-07-27 14:21:09 +01:00
q6asm.c ASoC: qcom: qdsp6: q6asm: Provide documentation for 'codec_profile' 2020-07-10 15:13:45 +01:00
q6asm.h ASoC: qcom: q6asm: add support for alac and ape configs 2020-03-16 17:52:10 +00:00
q6core.c ASoC: qdsp6: q6core: Use struct_size() in kmemdup() 2019-05-24 13:01:57 +01:00
q6core.h
q6dsp-common.c
q6dsp-common.h
q6dsp-errno.h
q6routing.c ASoC: q6routing: add dummy register read/write function 2020-08-11 14:05:48 +01:00
q6routing.h ASoC: qdsp6: q6routing: Add q6routing driver 2018-05-21 16:41:48 +01:00