ASoC: mediatek: mt8188: correct etdm control return value
authorTrevor Wu <trevor.wu@mediatek.com>
Wed, 15 Feb 2023 12:50:16 +0000 (20:50 +0800)
committerMark Brown <broonie@kernel.org>
Mon, 20 Feb 2023 14:32:18 +0000 (14:32 +0000)
commit70d1d30355095a22c8aa98dba9ca12486deff020
tree62eca7ae7a5fbc70d1b38cc9c097a1c0e7d52362
parent51c58a1ebc047acc4ac2a61a5f215c7a638a685b
ASoC: mediatek: mt8188: correct etdm control return value

In mt8188_etdm_clk_src_sel_put() function, val retrieved by FIELD_PREP
is shifted to the corresponding bit filed, so it can compare with the
register value directly.

Originally, the redundant bit shift of the register value results in
the wrong comparison result, so we remove bit shift operation in the
patch.

Fixes: 2babb4777489 ("ASoC: mediatek: mt8188: support etdm in platform driver")
Signed-off-by: Trevor Wu <trevor.wu@mediatek.com>
Link: https://lore.kernel.org/r/20230215125017.16044-1-trevor.wu@mediatek.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/mediatek/mt8188/mt8188-dai-etdm.c