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:
@@ -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]);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user