diff --git a/asoc/codecs/bolero/rx-macro.c b/asoc/codecs/bolero/rx-macro.c index 43d3e92aaa..6f5eedf6f3 100644 --- a/asoc/codecs/bolero/rx-macro.c +++ b/asoc/codecs/bolero/rx-macro.c @@ -189,7 +189,8 @@ struct rx_swr_ctrl_platform_data { }; enum { - RX_MACRO_AIF1_PB = 0, + RX_MACRO_AIF_INVALID = 0, + RX_MACRO_AIF1_PB, RX_MACRO_AIF2_PB, RX_MACRO_AIF3_PB, RX_MACRO_AIF4_PB, @@ -1301,16 +1302,16 @@ static int rx_macro_mux_put(struct snd_kcontrol *kcontrol, switch (rx_port_value) { case 0: clear_bit(widget->shift, - &rx_priv->active_ch_mask[aif_rst - 1]); - rx_priv->active_ch_cnt[aif_rst - 1]--; + &rx_priv->active_ch_mask[aif_rst]); + rx_priv->active_ch_cnt[aif_rst]--; break; case 1: case 2: case 3: case 4: set_bit(widget->shift, - &rx_priv->active_ch_mask[rx_port_value - 1]); - rx_priv->active_ch_cnt[rx_port_value - 1]++; + &rx_priv->active_ch_mask[rx_port_value]); + rx_priv->active_ch_cnt[rx_port_value]++; break; default: dev_err(codec->dev, diff --git a/asoc/codecs/bolero/tx-macro.c b/asoc/codecs/bolero/tx-macro.c index dabc345f22..b8542cbcb6 100644 --- a/asoc/codecs/bolero/tx-macro.c +++ b/asoc/codecs/bolero/tx-macro.c @@ -80,7 +80,8 @@ struct tx_macro_swr_ctrl_platform_data { }; enum { - TX_MACRO_AIF1_CAP = 0, + TX_MACRO_AIF_INVALID = 0, + TX_MACRO_AIF1_CAP, TX_MACRO_AIF2_CAP, TX_MACRO_MAX_DAIS }; diff --git a/asoc/codecs/bolero/va-macro.c b/asoc/codecs/bolero/va-macro.c index 45e1dbbdb9..53e01cc5fc 100644 --- a/asoc/codecs/bolero/va-macro.c +++ b/asoc/codecs/bolero/va-macro.c @@ -53,7 +53,8 @@ module_param(va_tx_unmute_delay, int, 0664); MODULE_PARM_DESC(va_tx_unmute_delay, "delay to unmute the tx path"); enum { - VA_MACRO_AIF1_CAP = 0, + VA_MACRO_AIF_INVALID = 0, + VA_MACRO_AIF1_CAP, VA_MACRO_AIF2_CAP, VA_MACRO_MAX_DAIS, }; diff --git a/asoc/codecs/bolero/wsa-macro.c b/asoc/codecs/bolero/wsa-macro.c index d73193c639..ba1ed1f062 100644 --- a/asoc/codecs/bolero/wsa-macro.c +++ b/asoc/codecs/bolero/wsa-macro.c @@ -142,7 +142,8 @@ struct wsa_macro_swr_ctrl_platform_data { }; enum { - WSA_MACRO_AIF1_PB = 0, + WSA_MACRO_AIF_INVALID = 0, + WSA_MACRO_AIF1_PB, WSA_MACRO_AIF_MIX1_PB, WSA_MACRO_AIF_VI, WSA_MACRO_AIF_ECHO, @@ -1606,14 +1607,14 @@ static int wsa_macro_rx_mux_put(struct snd_kcontrol *kcontrol, switch (rx_port_value) { case 0: clear_bit(bit_input, - &wsa_priv->active_ch_mask[aif_rst - 1]); - wsa_priv->active_ch_cnt[aif_rst - 1]--; + &wsa_priv->active_ch_mask[aif_rst]); + wsa_priv->active_ch_cnt[aif_rst]--; break; case 1: case 2: set_bit(bit_input, - &wsa_priv->active_ch_mask[rx_port_value - 1]); - wsa_priv->active_ch_cnt[rx_port_value - 1]++; + &wsa_priv->active_ch_mask[rx_port_value]); + wsa_priv->active_ch_cnt[rx_port_value]++; break; default: dev_err(wsa_dev,