]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commitdiff
ARM: OMAP4: hwmod data: Force HDMI in no-idle while enabled
authorRicardo Neri <ricardo.neri@ti.com>
Thu, 21 Jun 2012 08:08:53 +0000 (10:08 +0200)
committerPaul Walmsley <paul@pwsan.com>
Fri, 22 Jun 2012 00:08:47 +0000 (18:08 -0600)
As per the OMAP4 documentation, audio over HDMI must be transmitted in
no-idle mode. This patch adds the HWMOD_SWSUP_SIDLE so that omap_hwmod uses
no-idle/force-idle settings instead of smart-idle mode.

This is required as the DSS interface clock is used as functional clock
for the HDMI wrapper audio FIFO. If no-idle mode is not used, audio could
be choppy, have bad quality or not be audible at all.

Signed-off-by: Ricardo Neri <ricardo.neri@ti.com>
[b-cousson@ti.com: Update the subject and align the .flags
location with the script template]
Signed-off-by: Benoit Cousson <b-cousson@ti.com>
Signed-off-by: Paul Walmsley <paul@pwsan.com>
arch/arm/mach-omap2/omap_hwmod_44xx_data.c

index c4c9cdd4c0cf0e20bb738e1f9c6727850c8613e2..f30e861ce6d9cf42c76d90cb78cfcc90cf99f31b 100644 (file)
@@ -853,6 +853,11 @@ static struct omap_hwmod omap44xx_dss_hdmi_hwmod = {
        .name           = "dss_hdmi",
        .class          = &omap44xx_hdmi_hwmod_class,
        .clkdm_name     = "l3_dss_clkdm",
+       /*
+        * HDMI audio requires to use no-idle mode. Hence,
+        * set idle mode by software.
+        */
+       .flags          = HWMOD_SWSUP_SIDLE,
        .mpu_irqs       = omap44xx_dss_hdmi_irqs,
        .sdma_reqs      = omap44xx_dss_hdmi_sdma_reqs,
        .main_clk       = "dss_48mhz_clk",