summaryrefslogtreecommitdiff
path: root/drivers/mxc/hdp
diff options
context:
space:
mode:
authorShengjiu Wang <shengjiu.wang@nxp.com>2018-03-07 18:27:48 +0800
committerLeonard Crestez <leonard.crestez@nxp.com>2018-08-24 12:41:33 +0300
commitb81fb4fa367b3f5b506969c281ae2c0fb7be4e47 (patch)
tree0584eb50d34a8117ea7553744d82459f40cbfbb5 /drivers/mxc/hdp
parenta5beee965552a73b45ec6fb64f1749ad6f3a2f2f (diff)
MLK-17569-2: hdp: add channel/speaker allocation for 4 channel
According to CEA-861-E section 6.6.2, add channel/speaker allocation configuration for 4 channel. 0x0: FL, FR 0x3: FL, FR, LFE, FC 0x1F:FL, FR, LFE, FC, RL, RR, FLC, FRC Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com> Reviewed-by: Sandor Yu <sandor.yu@nxp.com>
Diffstat (limited to 'drivers/mxc/hdp')
-rw-r--r--drivers/mxc/hdp/API_HDMI_Audio.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/mxc/hdp/API_HDMI_Audio.c b/drivers/mxc/hdp/API_HDMI_Audio.c
index b2d61cea4608..17a0f9105918 100644
--- a/drivers/mxc/hdp/API_HDMI_Audio.c
+++ b/drivers/mxc/hdp/API_HDMI_Audio.c
@@ -105,6 +105,8 @@ CDN_API_STATUS CDN_API_HDMI_AudioSetInfoFrame(state_struct *state,
if (numOfChannels == 2) {
packet_PB4 = 0;
+ } else if (numOfChannels == 4) {
+ packet_PB4 = 0x3;
} else if (numOfChannels == 8) {
packet_PB4 = 0x13;
}