Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 53f9b3ba authored by Axel Lin's avatar Axel Lin Committed by Mark Brown
Browse files

ASoC: rt5645: Fix mask for setting RT5645_DMIC_2_DP_GPIO12 bit



Current code uses wrong mask when setting RT5645_DMIC_2_DP_GPIO12 bit,
fix it.

Signed-off-by: default avatarAxel Lin <axel.lin@ingics.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 3168c201
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2742,7 +2742,7 @@ static int rt5645_i2c_probe(struct i2c_client *i2c,

		case RT5645_DMIC_DATA_GPIO12:
			regmap_update_bits(rt5645->regmap, RT5645_DMIC_CTRL1,
				RT5645_DMIC_1_DP_MASK, RT5645_DMIC_2_DP_GPIO12);
				RT5645_DMIC_2_DP_MASK, RT5645_DMIC_2_DP_GPIO12);
			regmap_update_bits(rt5645->regmap, RT5645_GPIO_CTRL1,
				RT5645_GP12_PIN_MASK,
				RT5645_GP12_PIN_DMIC2_SDA);