ASoC: mediatek: mt8186: add AFE_DAC_CON0 to volatile register list
authorChunxu Li <chunxu.li@mediatek.com>
Tue, 10 Jan 2023 09:26:23 +0000 (17:26 +0800)
committerMark Brown <broonie@kernel.org>
Mon, 23 Jan 2023 13:30:59 +0000 (13:30 +0000)
Mark AFE_DAC_CON0 as volatile since DSP firmware will access this
register too.

Signed-off-by: Chunxu Li <chunxu.li@mediatek.com>
Link: https://lore.kernel.org/r/20230110092623.13035-1-chunxu.li@mediatek.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/mediatek/mt8186/mt8186-afe-pcm.c

index d7e94e6..41172a8 100644 (file)
@@ -2395,6 +2395,7 @@ static bool mt8186_is_volatile_reg(struct device *dev, unsigned int reg)
        case AUDIO_TOP_CON1:    /* reg bit controlled by CCF */
        case AUDIO_TOP_CON2:
        case AUDIO_TOP_CON3:
+       case AFE_DAC_CON0:
        case AFE_DL1_CUR_MSB:
        case AFE_DL1_CUR:
        case AFE_DL1_END: