Browse Source

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

Clear active channel cnt if the channel has enabled.

Change-Id: I364f4253398e8d42c3d9e3d44cce7f65c5863bf7
Kunlei Zhang 1 year ago
parent
commit
de2c1d0cf9
1 changed files with 1 additions and 1 deletions
  1. 1 1
      asoc/codecs/lpass-cdc/lpass-cdc-va-macro.c

+ 1 - 1
asoc/codecs/lpass-cdc/lpass-cdc-va-macro.c

@@ -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]);
 		}
 	}