diff options
author | Oder Chiou <oder_chiou@realtek.com> | 2020-11-13 08:53:59 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2020-11-13 17:22:09 +0300 |
commit | 7416f6bc5fcb1fe6700391c94b59ac1c744ad9d1 (patch) | |
tree | 1314029cbf181b7730e9ad252ef48c64f426804f /sound/soc/codecs/rt5682-i2c.c | |
parent | a5a8ac3ca0000edee1270d1a9c8af7b415b4e618 (diff) | |
download | linux-7416f6bc5fcb1fe6700391c94b59ac1c744ad9d1.tar.xz |
ASoC: rt5682: Add a new property for the DMIC clock driving
The patch adds a new property to set the DMIC clock driving.
Signed-off-by: Oder Chiou <oder_chiou@realtek.com>
Link: https://lore.kernel.org/r/20201113055400.11242-1-oder_chiou@realtek.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/rt5682-i2c.c')
-rw-r--r-- | sound/soc/codecs/rt5682-i2c.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sound/soc/codecs/rt5682-i2c.c b/sound/soc/codecs/rt5682-i2c.c index 6b4e0eb30c89..37d13120f5ba 100644 --- a/sound/soc/codecs/rt5682-i2c.c +++ b/sound/soc/codecs/rt5682-i2c.c @@ -221,6 +221,11 @@ static int rt5682_i2c_probe(struct i2c_client *i2c, case RT5682_DMIC1_CLK_GPIO3: /* share with BCLK2 */ regmap_update_bits(rt5682->regmap, RT5682_GPIO_CTRL_1, RT5682_GP3_PIN_MASK, RT5682_GP3_PIN_DMIC_CLK); + if (rt5682->pdata.dmic_clk_driving_high) + regmap_update_bits(rt5682->regmap, + RT5682_PAD_DRIVING_CTRL, + RT5682_PAD_DRV_GP3_MASK, + 2 << RT5682_PAD_DRV_GP3_SFT); break; default: |