MLK-17569-1: hdp: fix channel swapping issue for hdmi audio
authorShengjiu Wang <shengjiu.wang@nxp.com>
Wed, 7 Mar 2018 10:23:23 +0000 (18:23 +0800)
committerLeonard Crestez <leonard.crestez@nxp.com>
Wed, 17 Apr 2019 23:51:34 +0000 (02:51 +0300)
There is channel swapping issue for 4 channel and 8 channel audio.
After dump the register, found that SMPL2PKT_CNFG is not set
correctly, the reason is that F_NUM_OF_I2S_PORTS should be
F_NUM_OF_I2S_PORTS_S.

Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Reviewed-by: Sandor Yu <sandor.yu@nxp.com>
drivers/mxc/hdp/API_Audio.c

index a09facb..2bfa0fc 100644 (file)
@@ -108,7 +108,7 @@ CDN_API_STATUS CDN_API_AudioConfigCore(state_struct *state,
                cdn_apb_write(state,
                              ADDR_SOURCE_AIF_SMPL2PCKT + (SMPL2PKT_CNFG << 2),
                              F_MAX_NUM_CH(numOfChannels - 1) |
-                             F_NUM_OF_I2S_PORTS((numOfChannels / 2) - 1) |
+                             F_NUM_OF_I2S_PORTS_S((numOfChannels / 2) - 1) |
                                  (1 << 8) | (lanesParam << 11));
 
                if (numOfChannels == 2)