[PATCH 1/2] ASoC: hisilicon: Remove redundant bit clearing
From: phucduc . bui
Date: Thu Oct 29 2026 - 04:01:37 EST
From: bui duc phuc <phucduc.bui@xxxxxxxxx>
The S2_DOUT_RIGHT_SEL and S2_DOUT_TEST_SEL bits are cleared before
being set again immediately afterward.
Remove the redundant bit-clearing operations.
Signed-off-by: bui duc phuc <phucduc.bui@xxxxxxxxx>
---
sound/soc/hisilicon/hi6210-i2s.c | 4 ----
1 file changed, 4 deletions(-)
diff --git a/sound/soc/hisilicon/hi6210-i2s.c b/sound/soc/hisilicon/hi6210-i2s.c
index 554356f060b0..1c9e235c3a81 100644
--- a/sound/soc/hisilicon/hi6210-i2s.c
+++ b/sound/soc/hisilicon/hi6210-i2s.c
@@ -147,10 +147,6 @@ static int hi6210_i2s_startup(struct snd_pcm_substream *substream,
val = hi6210_read_reg(i2s, HII2S_MISC_CFG);
/* mux 11/12 = APB not i2s */
val &= ~HII2S_MISC_CFG__ST_DL_TEST_SEL;
- /* BT R ch 0 = mixer op of DACR ch */
- val &= ~HII2S_MISC_CFG__S2_DOUT_RIGHT_SEL;
- val &= ~HII2S_MISC_CFG__S2_DOUT_TEST_SEL;
-
val |= HII2S_MISC_CFG__S2_DOUT_RIGHT_SEL;
/* BT L ch = 1 = mux 7 = "mixer output of DACL */
val |= HII2S_MISC_CFG__S2_DOUT_TEST_SEL;
--
2.43.0