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

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

Merge "ASoC: wcd9335: reset the SWR_CH_CNT at session teardown"

parents 801167db 9b40373b
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -4662,6 +4662,11 @@ static int tasha_codec_enable_swr(struct snd_soc_dapm_widget *w,
		if ((strnstr(w->name, "INT8_", sizeof("RX INT8_"))) &&
		    tasha->rx_8_count)
			tasha->rx_8_count--;
		ch_cnt = tasha->rx_7_count + tasha->rx_8_count;

		for (i = 0; i < tasha->nr; i++)
			swrm_wcd_notify(tasha->swr_ctrl_data[i].swr_pdev,
					SWR_SET_NUM_RX_CH, &ch_cnt);

		break;
	}