From: Sandor Yu Date: Thu, 22 Aug 2013 09:50:29 +0000 (+0800) Subject: ENGR00276321 HDMI Audio: Set HDMI event as SDMA event2 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=87caa82b8f2c26f6f4f448ff05bb4344459474a7;p=karo-tx-linux.git ENGR00276321 HDMI Audio: Set HDMI event as SDMA event2 - Remove chip revision check code. - Set HDMI event as SDMA event2 for HDMI audio. Signed-off-by: Sandor Yu --- diff --git a/drivers/mfd/mxc-hdmi-core.c b/drivers/mfd/mxc-hdmi-core.c index 7da0bf6d003e..2b0853c0375d 100644 --- a/drivers/mfd/mxc-hdmi-core.c +++ b/drivers/mfd/mxc-hdmi-core.c @@ -532,17 +532,7 @@ static int hdmi_core_get_of_property(struct platform_device *pdev) return err; } -/* -unsigned int hdmi_SDMA_check(void) -{ - - return (imx6q_revision() > IMX_CHIP_REVISION_1_1) || - (imx6dl_revision() > IMX_CHIP_REVISION_1_0); - return 0; -} -EXPORT_SYMBOL(hdmi_SDMA_check); -*/ /* Need to run this before phy is enabled the first time to prevent * overflow condition in HDMI_IH_FC_STAT2 */ void hdmi_init_clk_regenerator(void) diff --git a/drivers/video/mxc/mxc_hdmi.c b/drivers/video/mxc/mxc_hdmi.c index 373dd0b10d3a..5a17599a1903 100644 --- a/drivers/video/mxc/mxc_hdmi.c +++ b/drivers/video/mxc/mxc_hdmi.c @@ -2412,14 +2412,10 @@ static void hdmi_init_route(struct mxc_hdmi *hdmi) writel(reg, hdmi->gpr_hdmi_base); - /* Set HDMI event as SDMA event2 while Chip version later than TO1.2 */ -/* - if (hdmi_SDMA_check()) { - reg = readl(hdmi->gpr_sdma_base); - reg |= 0x1; - writel(reg, hdmi->gpr_sdma_base); - } -*/ + /* Set HDMI event as SDMA event2 for HDMI audio */ + reg = readl(hdmi->gpr_sdma_base); + reg |= 0x1; + writel(reg, hdmi->gpr_sdma_base); } static void hdmi_hdcp_get_property(struct platform_device *pdev) diff --git a/include/linux/mfd/mxc-hdmi-core.h b/include/linux/mfd/mxc-hdmi-core.h index f5524987eb30..a675c1921e95 100644 --- a/include/linux/mfd/mxc-hdmi-core.h +++ b/include/linux/mfd/mxc-hdmi-core.h @@ -54,7 +54,6 @@ extern int mxc_hdmi_disp_id; void hdmi_set_registered(int registered); int hdmi_get_registered(void); -unsigned int hdmi_SDMA_check(void); int mxc_hdmi_abort_stream(void); int mxc_hdmi_register_audio(struct snd_pcm_substream *substream); void mxc_hdmi_unregister_audio(struct snd_pcm_substream *substream);