ASoC: Mediatek: MT8183: fix compile error
authorJiaxin Yu <jiaxin.yu@mediatek.com>
Tue, 21 May 2019 09:29:37 +0000 (17:29 +0800)
committerMark Brown <broonie@kernel.org>
Tue, 21 May 2019 18:58:20 +0000 (19:58 +0100)
mtk_regmap_update_bits() has been changed from four
parameters to five parameters.

Fixes: 1628fc3f4771 ("ASoC: Mediatek: MT8183: add memory interface data align")
Signed-off-by: Jiaxin Yu <jiaxin.yu@mediatek.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/mediatek/common/mtk-afe-fe-dai.c

index 19048c3dc3244559daf1cf6a0591343b276019cb..d165634084657c2689a7559bf94ef13f2c28db0f 100644 (file)
@@ -266,8 +266,7 @@ int mtk_afe_fe_prepare(struct snd_pcm_substream *substream,
                               1, hd_audio, memif->data->hd_shift);
 
        mtk_regmap_update_bits(afe->regmap, memif->data->hd_align_reg,
-                              memif->data->hd_align_mshift,
-                              hd_align ? memif->data->hd_align_mshift : 0);
+                              1, hd_align, memif->data->hd_align_mshift);
 
        return 0;
 }