diff options
author | Mark Brown <broonie@kernel.org> | 2021-08-06 02:46:24 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2021-08-06 02:46:24 +0200 |
commit | ddaa1ed52c5da64fe9adf1d5ea6202cda3a53eea (patch) | |
tree | 119c5b9dcf67841af4a92f3d3a9b5e4efcc4557b /sound/soc/codecs/rt5682.c | |
parent | ASoC: rt5640: Silence warning message about missing interrupt (diff) | |
parent | ASoC: cs42l42: Update module authors (diff) | |
download | linux-ddaa1ed52c5da64fe9adf1d5ea6202cda3a53eea.tar.xz linux-ddaa1ed52c5da64fe9adf1d5ea6202cda3a53eea.zip |
Merge some cs42l42 patches into asoc-5.15
Diffstat (limited to 'sound/soc/codecs/rt5682.c')
-rw-r--r-- | sound/soc/codecs/rt5682.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/sound/soc/codecs/rt5682.c b/sound/soc/codecs/rt5682.c index f50c0c8133d4..7dc01ae6bb66 100644 --- a/sound/soc/codecs/rt5682.c +++ b/sound/soc/codecs/rt5682.c @@ -44,6 +44,7 @@ static const struct reg_sequence patch_list[] = { {RT5682_I2C_CTRL, 0x000f}, {RT5682_PLL2_INTERNAL, 0x8266}, {RT5682_SAR_IL_CMD_3, 0x8365}, + {RT5682_SAR_IL_CMD_6, 0x0180}, }; void rt5682_apply_patch_list(struct rt5682_priv *rt5682, struct device *dev) @@ -973,10 +974,14 @@ int rt5682_headset_detect(struct snd_soc_component *component, int jack_insert) rt5682_enable_push_button_irq(component, false); snd_soc_component_update_bits(component, RT5682_CBJ_CTRL_1, RT5682_TRIG_JD_MASK, RT5682_TRIG_JD_LOW); - if (!snd_soc_dapm_get_pin_status(dapm, "MICBIAS")) + if (!snd_soc_dapm_get_pin_status(dapm, "MICBIAS") && + !snd_soc_dapm_get_pin_status(dapm, "PLL1") && + !snd_soc_dapm_get_pin_status(dapm, "PLL2B")) snd_soc_component_update_bits(component, RT5682_PWR_ANLG_1, RT5682_PWR_MB, 0); - if (!snd_soc_dapm_get_pin_status(dapm, "Vref2")) + if (!snd_soc_dapm_get_pin_status(dapm, "Vref2") && + !snd_soc_dapm_get_pin_status(dapm, "PLL1") && + !snd_soc_dapm_get_pin_status(dapm, "PLL2B")) snd_soc_component_update_bits(component, RT5682_PWR_ANLG_1, RT5682_PWR_VREF2, 0); snd_soc_component_update_bits(component, RT5682_PWR_ANLG_3, |