OMAPDSS: HDMI5: Set valid sample order
authorMisael Lopez Cruz <misael.lopez@ti.com>
Wed, 22 Apr 2015 13:22:58 +0000 (16:22 +0300)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Wed, 3 Jun 2015 11:33:54 +0000 (14:33 +0300)
As per TRM, HDMI_WP_AUDIO_CFG[2] LEFT_BEFORE = 0 is reserved,
so it must always be set to 1 (the first sample is the left).

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>
drivers/video/fbdev/omap2/dss/hdmi5_core.c

index bfc0c4c297d69b9c16bcb16eba56d7d734f8ccf0..d96a63d84bfbc9692f3640c956cfa7128b482de8 100644 (file)
@@ -870,6 +870,7 @@ int hdmi5_audio_config(struct hdmi_core_data *core, struct hdmi_wp_data *wp,
        audio_format.samples_per_word = HDMI_AUDIO_ONEWORD_TWOSAMPLES;
        audio_format.sample_size = HDMI_AUDIO_SAMPLE_16BITS;
        audio_format.justification = HDMI_AUDIO_JUSTIFY_LEFT;
+       audio_format.sample_order = HDMI_AUDIO_SAMPLE_LEFT_FIRST;
 
        /* only LPCM atm */
        audio_format.type = HDMI_AUDIO_TYPE_LPCM;