Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

ASoC: mediatek: mt8188: Mark AFE_DAC_CON0 register as volatile

Add AFE Control Register 0 to the volatile_register.
AFE_DAC_CON0 can be modified by both the SOF and ALSA drivers.
If this register is read and written in cache mode, the cached value
might not reflect the actual value when the register is modified by
another driver. It can cause playback or capture failures. Therefore,
it is necessary to add AFE_DAC_CON0 to the list of volatile registers.

Signed-off-by: YR Yang <yr.yang@mediatek.com>
Reviewed-by: Fei Shao <fshao@chromium.org>
Reviewed-by: Trevor Wu <trevor.wu@mediatek.com>
Link: https://patch.msgid.link/20240801084326.1472-1-yr.yang@mediatek.com
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

YR Yang and committed by
Mark Brown
ff9f0653 2251db28

+1
+1
sound/soc/mediatek/mt8188/mt8188-afe-pcm.c
··· 2748 2748 case AFE_ASRC12_NEW_CON9: 2749 2749 case AFE_LRCK_CNT: 2750 2750 case AFE_DAC_MON0: 2751 + case AFE_DAC_CON0: 2751 2752 case AFE_DL2_CUR: 2752 2753 case AFE_DL3_CUR: 2753 2754 case AFE_DL6_CUR: