aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/video/omap2/dss/hdmi.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/video/omap2/dss/hdmi.c b/drivers/video/omap2/dss/hdmi.c
index ec902b3c2de2..012ee49c78de 100644
--- a/drivers/video/omap2/dss/hdmi.c
+++ b/drivers/video/omap2/dss/hdmi.c
@@ -667,13 +667,15 @@ static int hdmi_audio_hw_params(struct snd_pcm_substream *substream,
667 if (dss_has_feature(FEAT_HDMI_CTS_SWMODE)) { 667 if (dss_has_feature(FEAT_HDMI_CTS_SWMODE)) {
668 core_cfg.aud_par_busclk = 0; 668 core_cfg.aud_par_busclk = 0;
669 core_cfg.cts_mode = HDMI_AUDIO_CTS_MODE_SW; 669 core_cfg.cts_mode = HDMI_AUDIO_CTS_MODE_SW;
670 core_cfg.use_mclk = false; 670 core_cfg.use_mclk = dss_has_feature(FEAT_HDMI_AUDIO_USE_MCLK);
671 } else { 671 } else {
672 core_cfg.aud_par_busclk = (((128 * 31) - 1) << 8); 672 core_cfg.aud_par_busclk = (((128 * 31) - 1) << 8);
673 core_cfg.cts_mode = HDMI_AUDIO_CTS_MODE_HW; 673 core_cfg.cts_mode = HDMI_AUDIO_CTS_MODE_HW;
674 core_cfg.use_mclk = true; 674 core_cfg.use_mclk = true;
675 core_cfg.mclk_mode = HDMI_AUDIO_MCLK_128FS;
676 } 675 }
676
677 if (core_cfg.use_mclk)
678 core_cfg.mclk_mode = HDMI_AUDIO_MCLK_128FS;
677 core_cfg.layout = HDMI_AUDIO_LAYOUT_2CH; 679 core_cfg.layout = HDMI_AUDIO_LAYOUT_2CH;
678 core_cfg.en_spdif = false; 680 core_cfg.en_spdif = false;
679 /* Use sample frequency from channel status word */ 681 /* Use sample frequency from channel status word */