Skip to content

Commit ff9f065

Browse files
mtk13576broonie
authored andcommitted
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 <[email protected]> Reviewed-by: Fei Shao <[email protected]> Reviewed-by: Trevor Wu <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent 2251db2 commit ff9f065

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

sound/soc/mediatek/mt8188/mt8188-afe-pcm.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2748,6 +2748,7 @@ static bool mt8188_is_volatile_reg(struct device *dev, unsigned int reg)
27482748
case AFE_ASRC12_NEW_CON9:
27492749
case AFE_LRCK_CNT:
27502750
case AFE_DAC_MON0:
2751+
case AFE_DAC_CON0:
27512752
case AFE_DL2_CUR:
27522753
case AFE_DL3_CUR:
27532754
case AFE_DL6_CUR:

0 commit comments

Comments
 (0)