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

Commit 3d3de958 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "asoc: bolero: check if va is enabled when register/deregister wakeup irq"

parents 3eeaa1ee 3c6c7b6b
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -2330,7 +2330,8 @@ static int tx_macro_register_event_listener(struct snd_soc_component *component,
			"%s: priv is null for macro!\n", __func__);
		return -EINVAL;
	}
	if (tx_priv->swr_ctrl_data && !tx_priv->tx_swr_clk_cnt) {
	if (tx_priv->swr_ctrl_data &&
		(!tx_priv->tx_swr_clk_cnt || !tx_priv->va_swr_clk_cnt)) {
		if (enable) {
			ret = swrm_wcd_notify(
				tx_priv->swr_ctrl_data[0].tx_swr_pdev,