aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Brown <broonie@kernel.org>2015-09-22 12:45:46 -0400
committerMark Brown <broonie@kernel.org>2015-09-22 12:45:46 -0400
commitc44506997c67bcc6299e47dd43030cbd133ed439 (patch)
tree5c9f830761f9d14f40744af4f64e23c4d1a35d71
parent6ff33f3902c3b1c5d0db6b1e2c70b6d76fba357f (diff)
parentdf5c79e982b38eec1d184668d66f9ce0c426e2a1 (diff)
Merge branch 'fix/rt5645' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound into asoc-rt5645
-rw-r--r--sound/soc/codecs/rt5645.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/sound/soc/codecs/rt5645.c b/sound/soc/codecs/rt5645.c
index 4972bf3efa91..dbc1d76d9d4e 100644
--- a/sound/soc/codecs/rt5645.c
+++ b/sound/soc/codecs/rt5645.c
@@ -2829,10 +2829,6 @@ static int rt5645_jack_detect(struct snd_soc_codec *codec, int jack_insert)
2829 snd_soc_dapm_sync(dapm); 2829 snd_soc_dapm_sync(dapm);
2830 rt5645->jack_type = SND_JACK_HEADPHONE; 2830 rt5645->jack_type = SND_JACK_HEADPHONE;
2831 } 2831 }
2832
2833 snd_soc_update_bits(codec, RT5645_CHARGE_PUMP, 0x0300, 0x0200);
2834 snd_soc_write(codec, RT5645_DEPOP_M1, 0x001d);
2835 snd_soc_write(codec, RT5645_DEPOP_M1, 0x0001);
2836 } else { /* jack out */ 2832 } else { /* jack out */
2837 rt5645->jack_type = 0; 2833 rt5645->jack_type = 0;
2838 2834
@@ -2880,8 +2876,6 @@ int rt5645_set_jack_detect(struct snd_soc_codec *codec,
2880 rt5645->en_button_func = true; 2876 rt5645->en_button_func = true;
2881 regmap_update_bits(rt5645->regmap, RT5645_GPIO_CTRL1, 2877 regmap_update_bits(rt5645->regmap, RT5645_GPIO_CTRL1,
2882 RT5645_GP1_PIN_IRQ, RT5645_GP1_PIN_IRQ); 2878 RT5645_GP1_PIN_IRQ, RT5645_GP1_PIN_IRQ);
2883 regmap_update_bits(rt5645->regmap, RT5645_DEPOP_M1,
2884 RT5645_HP_CB_MASK, RT5645_HP_CB_PU);
2885 regmap_update_bits(rt5645->regmap, RT5645_GEN_CTRL1, 2879 regmap_update_bits(rt5645->regmap, RT5645_GEN_CTRL1,
2886 RT5645_DIG_GATE_CTRL, RT5645_DIG_GATE_CTRL); 2880 RT5645_DIG_GATE_CTRL, RT5645_DIG_GATE_CTRL);
2887 } 2881 }
@@ -3205,6 +3199,13 @@ static const struct dmi_system_id dmi_platform_intel_braswell[] = {
3205 DMI_MATCH(DMI_PRODUCT_NAME, "Celes"), 3199 DMI_MATCH(DMI_PRODUCT_NAME, "Celes"),
3206 }, 3200 },
3207 }, 3201 },
3202 {
3203 .ident = "Google Ultima",
3204 .callback = strago_quirk_cb,
3205 .matches = {
3206 DMI_MATCH(DMI_PRODUCT_NAME, "Ultima"),
3207 },
3208 },
3208 { } 3209 { }
3209}; 3210};
3210 3211