diff options
author | Misael Lopez Cruz <misael.lopez@ti.com> | 2015-04-22 09:22:57 -0400 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2015-06-03 07:33:54 -0400 |
commit | 7877039f67abad68c01583c413667889f0d25584 (patch) | |
tree | 901c14f1a5fce04c2079956b4372f33b71a7704e | |
parent | ca8c67dafdb7eb543015f1f84bb73f4454e41ca6 (diff) |
OMAPDSS: HDMI4: Set correct CC for 8-channels layout
OMAP4 HDMI IP uses the 8-channel layout with 8-channel speaker
allocation mask when transmitting more than two channels. But
the channel count field (CC) of the Audio InfoFrame's DB1 is
not updated for 8-channels.
As per HDMI Compliance Test 7.31 "Audio InfoFrame", CC = 7 is
required for 8-channels CA masks (0x13 and 0x1F).
Signed-off-by: Misael Lopez Cruz <misael.lopez@ti.com>
Signed-off-by: Jyri Sarha <jsarha@ti.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
-rw-r--r-- | drivers/video/fbdev/omap2/dss/hdmi4_core.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/video/fbdev/omap2/dss/hdmi4_core.c b/drivers/video/fbdev/omap2/dss/hdmi4_core.c index 7eafea5b8e19..2b8bd220fde6 100644 --- a/drivers/video/fbdev/omap2/dss/hdmi4_core.c +++ b/drivers/video/fbdev/omap2/dss/hdmi4_core.c | |||
@@ -795,7 +795,9 @@ int hdmi4_audio_config(struct hdmi_core_data *core, struct hdmi_wp_data *wp, | |||
795 | 795 | ||
796 | /* | 796 | /* |
797 | * the HDMI IP needs to enable four stereo channels when transmitting | 797 | * the HDMI IP needs to enable four stereo channels when transmitting |
798 | * more than 2 audio channels | 798 | * more than 2 audio channels. Similarly, the channel count in the |
799 | * Audio InfoFrame has to match the sample_present bits (some channels | ||
800 | * are padded with zeroes) | ||
799 | */ | 801 | */ |
800 | if (channel_count == 2) { | 802 | if (channel_count == 2) { |
801 | audio_format.stereo_channels = HDMI_AUDIO_STEREO_ONECHANNEL; | 803 | audio_format.stereo_channels = HDMI_AUDIO_STEREO_ONECHANNEL; |
@@ -807,6 +809,7 @@ int hdmi4_audio_config(struct hdmi_core_data *core, struct hdmi_wp_data *wp, | |||
807 | HDMI_AUDIO_I2S_SD1_EN | HDMI_AUDIO_I2S_SD2_EN | | 809 | HDMI_AUDIO_I2S_SD1_EN | HDMI_AUDIO_I2S_SD2_EN | |
808 | HDMI_AUDIO_I2S_SD3_EN; | 810 | HDMI_AUDIO_I2S_SD3_EN; |
809 | acore.layout = HDMI_AUDIO_LAYOUT_8CH; | 811 | acore.layout = HDMI_AUDIO_LAYOUT_8CH; |
812 | audio->cea->db1_ct_cc = 7; | ||
810 | } | 813 | } |
811 | 814 | ||
812 | acore.en_spdif = false; | 815 | acore.en_spdif = false; |