]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ASoC: mediatek: mt8188: Mark AFE_DAC_CON0 register as volatile
authorYR Yang <yr.yang@mediatek.com>
Thu, 1 Aug 2024 08:43:26 +0000 (16:43 +0800)
committerMark Brown <broonie@kernel.org>
Wed, 14 Aug 2024 20:56:34 +0000 (21:56 +0100)
commitff9f065318e17a1a97981d9e535fcfc6ce5d5614
tree03c50c5a1d40085fb607aff4482f157bc95f10c2
parent2251db28edcc70b7ee8a8c6bcbaecf752b3ea5ec
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>
sound/soc/mediatek/mt8188/mt8188-afe-pcm.c