diff options
author | Sandor Yu <R01008@freescale.com> | 2013-08-22 05:50:29 -0400 |
---|---|---|
committer | Nitin Garg <nitin.garg@freescale.com> | 2014-04-16 09:01:25 -0400 |
commit | c93b409438341a12525ca88a48d3b89af41596d1 (patch) | |
tree | 091796e47de16084d3d923e270cb42f4afc34ee6 | |
parent | 52cac1e1b89c72ffa051b71a174636883e5a432a (diff) |
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 <R01008@freescale.com>
-rw-r--r-- | drivers/mfd/mxc-hdmi-core.c | 10 | ||||
-rw-r--r-- | drivers/video/mxc/mxc_hdmi.c | 12 | ||||
-rw-r--r-- | include/linux/mfd/mxc-hdmi-core.h | 1 |
3 files changed, 4 insertions, 19 deletions
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) | |||
532 | 532 | ||
533 | return err; | 533 | return err; |
534 | } | 534 | } |
535 | /* | ||
536 | unsigned int hdmi_SDMA_check(void) | ||
537 | { | ||
538 | |||
539 | return (imx6q_revision() > IMX_CHIP_REVISION_1_1) || | ||
540 | (imx6dl_revision() > IMX_CHIP_REVISION_1_0); | ||
541 | 535 | ||
542 | return 0; | ||
543 | } | ||
544 | EXPORT_SYMBOL(hdmi_SDMA_check); | ||
545 | */ | ||
546 | /* Need to run this before phy is enabled the first time to prevent | 536 | /* Need to run this before phy is enabled the first time to prevent |
547 | * overflow condition in HDMI_IH_FC_STAT2 */ | 537 | * overflow condition in HDMI_IH_FC_STAT2 */ |
548 | void hdmi_init_clk_regenerator(void) | 538 | 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) | |||
2412 | 2412 | ||
2413 | writel(reg, hdmi->gpr_hdmi_base); | 2413 | writel(reg, hdmi->gpr_hdmi_base); |
2414 | 2414 | ||
2415 | /* Set HDMI event as SDMA event2 while Chip version later than TO1.2 */ | 2415 | /* Set HDMI event as SDMA event2 for HDMI audio */ |
2416 | /* | 2416 | reg = readl(hdmi->gpr_sdma_base); |
2417 | if (hdmi_SDMA_check()) { | 2417 | reg |= 0x1; |
2418 | reg = readl(hdmi->gpr_sdma_base); | 2418 | writel(reg, hdmi->gpr_sdma_base); |
2419 | reg |= 0x1; | ||
2420 | writel(reg, hdmi->gpr_sdma_base); | ||
2421 | } | ||
2422 | */ | ||
2423 | } | 2419 | } |
2424 | 2420 | ||
2425 | static void hdmi_hdcp_get_property(struct platform_device *pdev) | 2421 | 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; | |||
54 | 54 | ||
55 | void hdmi_set_registered(int registered); | 55 | void hdmi_set_registered(int registered); |
56 | int hdmi_get_registered(void); | 56 | int hdmi_get_registered(void); |
57 | unsigned int hdmi_SDMA_check(void); | ||
58 | int mxc_hdmi_abort_stream(void); | 57 | int mxc_hdmi_abort_stream(void); |
59 | int mxc_hdmi_register_audio(struct snd_pcm_substream *substream); | 58 | int mxc_hdmi_register_audio(struct snd_pcm_substream *substream); |
60 | void mxc_hdmi_unregister_audio(struct snd_pcm_substream *substream); | 59 | void mxc_hdmi_unregister_audio(struct snd_pcm_substream *substream); |