aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Brown <broonie@kernel.org>2016-05-13 09:26:26 -0400
committerMark Brown <broonie@kernel.org>2016-05-13 09:26:26 -0400
commit87b88aafbfce5a08b04f3ffba05a92ea6a342cdb (patch)
treef86654d310c26913060a00a37d3ea6cf8610c1e0
parente74ac45d892f3c03756bd9e9fb4d242fe08cb35d (diff)
parent381437dd0bd590902320b97e6512792b075becd4 (diff)
Merge remote-tracking branch 'asoc/topic/rt5645' into asoc-next
-rw-r--r--sound/soc/codecs/rt5645.c16
1 files changed, 10 insertions, 6 deletions
diff --git a/sound/soc/codecs/rt5645.c b/sound/soc/codecs/rt5645.c
index 7af5e7380d61..3c6594da6c9c 100644
--- a/sound/soc/codecs/rt5645.c
+++ b/sound/soc/codecs/rt5645.c
@@ -3286,10 +3286,8 @@ static void rt5645_jack_detect_work(struct work_struct *work)
3286 if (btn_type == 0)/* button release */ 3286 if (btn_type == 0)/* button release */
3287 report = rt5645->jack_type; 3287 report = rt5645->jack_type;
3288 else { 3288 else {
3289 if (rt5645->pdata.jd_invert) { 3289 mod_timer(&rt5645->btn_check_timer,
3290 mod_timer(&rt5645->btn_check_timer, 3290 msecs_to_jiffies(100));
3291 msecs_to_jiffies(100));
3292 }
3293 } 3291 }
3294 3292
3295 break; 3293 break;
@@ -3557,6 +3555,12 @@ static const struct dmi_system_id dmi_platform_intel_braswell[] = {
3557 DMI_MATCH(DMI_SYS_VENDOR, "GOOGLE"), 3555 DMI_MATCH(DMI_SYS_VENDOR, "GOOGLE"),
3558 }, 3556 },
3559 }, 3557 },
3558 {
3559 .ident = "Google Setzer",
3560 .matches = {
3561 DMI_MATCH(DMI_PRODUCT_NAME, "Setzer"),
3562 },
3563 },
3560 { } 3564 { }
3561}; 3565};
3562 3566
@@ -3810,9 +3814,9 @@ static int rt5645_i2c_probe(struct i2c_client *i2c,
3810 if (rt5645->pdata.jd_invert) { 3814 if (rt5645->pdata.jd_invert) {
3811 regmap_update_bits(rt5645->regmap, RT5645_IRQ_CTRL2, 3815 regmap_update_bits(rt5645->regmap, RT5645_IRQ_CTRL2,
3812 RT5645_JD_1_1_MASK, RT5645_JD_1_1_INV); 3816 RT5645_JD_1_1_MASK, RT5645_JD_1_1_INV);
3813 setup_timer(&rt5645->btn_check_timer,
3814 rt5645_btn_check_callback, (unsigned long)rt5645);
3815 } 3817 }
3818 setup_timer(&rt5645->btn_check_timer,
3819 rt5645_btn_check_callback, (unsigned long)rt5645);
3816 3820
3817 INIT_DELAYED_WORK(&rt5645->jack_detect_work, rt5645_jack_detect_work); 3821 INIT_DELAYED_WORK(&rt5645->jack_detect_work, rt5645_jack_detect_work);
3818 INIT_DELAYED_WORK(&rt5645->rcclock_work, rt5645_rcclock_work); 3822 INIT_DELAYED_WORK(&rt5645->rcclock_work, rt5645_rcclock_work);