Loading sound/soc/codecs/wcd9xxx-mbhc.c +3 −3 Original line number Diff line number Diff line Loading @@ -188,7 +188,7 @@ static void wcd9xxx_mbhc_calc_thres(struct wcd9xxx_mbhc *mbhc); static bool wcd9xxx_mbhc_polling(struct wcd9xxx_mbhc *mbhc) { return mbhc->polling_active; return snd_soc_read(mbhc->codec, WCD9XXX_A_CDC_MBHC_EN_CTL) & 0x1; } static void wcd9xxx_turn_onoff_override(struct wcd9xxx_mbhc *mbhc, bool on) Loading Loading @@ -542,13 +542,13 @@ static void wcd9xxx_codec_switch_cfilt_mode(struct wcd9xxx_mbhc *mbhc, if (cfilt_mode.cur_mode_val != cfilt_mode.reg_mode_val) { if (mbhc->polling_active) if (mbhc->polling_active && wcd9xxx_mbhc_polling(mbhc)) wcd9xxx_pause_hs_polling(mbhc); snd_soc_update_bits(codec, mbhc->mbhc_bias_regs.cfilt_ctl, cfilt_mode.reg_mask, cfilt_mode.reg_mode_val); if (mbhc->polling_active) if (mbhc->polling_active && wcd9xxx_mbhc_polling(mbhc)) wcd9xxx_start_hs_polling(mbhc); pr_debug("%s: CFILT mode change (%x to %x)\n", __func__, cfilt_mode.cur_mode_val, Loading Loading
sound/soc/codecs/wcd9xxx-mbhc.c +3 −3 Original line number Diff line number Diff line Loading @@ -188,7 +188,7 @@ static void wcd9xxx_mbhc_calc_thres(struct wcd9xxx_mbhc *mbhc); static bool wcd9xxx_mbhc_polling(struct wcd9xxx_mbhc *mbhc) { return mbhc->polling_active; return snd_soc_read(mbhc->codec, WCD9XXX_A_CDC_MBHC_EN_CTL) & 0x1; } static void wcd9xxx_turn_onoff_override(struct wcd9xxx_mbhc *mbhc, bool on) Loading Loading @@ -542,13 +542,13 @@ static void wcd9xxx_codec_switch_cfilt_mode(struct wcd9xxx_mbhc *mbhc, if (cfilt_mode.cur_mode_val != cfilt_mode.reg_mode_val) { if (mbhc->polling_active) if (mbhc->polling_active && wcd9xxx_mbhc_polling(mbhc)) wcd9xxx_pause_hs_polling(mbhc); snd_soc_update_bits(codec, mbhc->mbhc_bias_regs.cfilt_ctl, cfilt_mode.reg_mask, cfilt_mode.reg_mode_val); if (mbhc->polling_active) if (mbhc->polling_active && wcd9xxx_mbhc_polling(mbhc)) wcd9xxx_start_hs_polling(mbhc); pr_debug("%s: CFILT mode change (%x to %x)\n", __func__, cfilt_mode.cur_mode_val, Loading