@@ -951,7 +951,7 @@ static int rx_macro_get_channel_map(struct snd_soc_dai *dai,
case RX_MACRO_AIF4_PB:
for_each_set_bit(temp, &rx_priv->active_ch_mask[dai->id],
RX_MACRO_PORTS_MAX) {
- ch_mask |= (1 << i);
+ ch_mask |= (1 << temp);
if (++i == RX_MACRO_MAX_DMA_CH_PER_PORT)
break;
}