Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8b477bbf authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "ASoC: wcd: report previous cable removal before lineout inseriton"

parents 4e35b41a 18d96c7e
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -632,6 +632,15 @@ static void wcd_mbhc_report_plug(struct wcd_mbhc *mbhc, int insertion,
				(mbhc->zr > mbhc->mbhc_cfg->linein_th)) {
				jack_type = SND_JACK_LINEOUT;
				mbhc->current_plug = MBHC_PLUG_TYPE_HIGH_HPH;
				if (mbhc->hph_status) {
					mbhc->hph_status &= ~(SND_JACK_HEADSET |
							SND_JACK_LINEOUT |
							SND_JACK_UNSUPPORTED);
					wcd_mbhc_jack_report(mbhc,
							&mbhc->headset_jack,
							mbhc->hph_status,
							WCD_MBHC_JACK_MASK);
				}
				pr_debug("%s: Marking jack type as SND_JACK_LINEOUT\n",
				__func__);
			}