asoc: lpass-cdc: clear active channel cnt if channel is active

Clear active channel cnt if the channel has enabled.

Change-Id: I364f4253398e8d42c3d9e3d44cce7f65c5863bf7
This commit is contained in:
Kunlei Zhang
2023-05-09 10:32:39 +08:00
szülő aa58b20036
commit de2c1d0cf9

Fájl megtekintése

@@ -1198,7 +1198,7 @@ static int lpass_cdc_va_macro_tx_mixer_put(struct snd_kcontrol *kcontrol,
dev_err_ratelimited(component->dev, "%s: channel is already disabled, dec_id = %d, dai_id = %d\n",
__func__, dec_id, dai_id);
} else {
va_priv->active_ch_mask[dai_id]--;
va_priv->active_ch_cnt[dai_id]--;
clear_bit(dec_id, &va_priv->active_ch_mask[dai_id]);
}
}