diff options
author | Ricardo Neri <ricardo.neri@ti.com> | 2012-03-15 16:08:03 -0400 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2012-05-11 08:15:22 -0400 |
commit | 7e151f7f6abdd75831797ae45ec2aa3d0a648416 (patch) | |
tree | b74dea57e63e80735732b812aa29e835c532a3ad /drivers/video | |
parent | 3df9fb5c51ca617e410da890f631100ea9f10652 (diff) |
OMAPDSS: HDMI: Decouple HDMI audio from ASoC
Instead of having OMAPDSS HDMI audio functionality depending on the
ASoC HDMI audio driver, use a new config option so that
potential users, including ASoC, may select if needed.
Signed-off-by: Ricardo Neri <ricardo.neri@ti.com>
Diffstat (limited to 'drivers/video')
-rw-r--r-- | drivers/video/omap2/dss/Kconfig | 4 | ||||
-rw-r--r-- | drivers/video/omap2/dss/dss_features.c | 3 | ||||
-rw-r--r-- | drivers/video/omap2/dss/ti_hdmi.h | 6 | ||||
-rw-r--r-- | drivers/video/omap2/dss/ti_hdmi_4xxx_ip.c | 6 | ||||
-rw-r--r-- | drivers/video/omap2/dss/ti_hdmi_4xxx_ip.h | 3 |
5 files changed, 10 insertions, 12 deletions
diff --git a/drivers/video/omap2/dss/Kconfig b/drivers/video/omap2/dss/Kconfig index 9aaf3246f821..43324e5ed25f 100644 --- a/drivers/video/omap2/dss/Kconfig +++ b/drivers/video/omap2/dss/Kconfig | |||
@@ -68,6 +68,10 @@ config OMAP4_DSS_HDMI | |||
68 | HDMI Interface. This adds the High Definition Multimedia Interface. | 68 | HDMI Interface. This adds the High Definition Multimedia Interface. |
69 | See http://www.hdmi.org/ for HDMI specification. | 69 | See http://www.hdmi.org/ for HDMI specification. |
70 | 70 | ||
71 | config OMAP4_DSS_HDMI_AUDIO | ||
72 | bool | ||
73 | depends on OMAP4_DSS_HDMI | ||
74 | |||
71 | config OMAP2_DSS_SDI | 75 | config OMAP2_DSS_SDI |
72 | bool "SDI support" | 76 | bool "SDI support" |
73 | depends on ARCH_OMAP3 | 77 | depends on ARCH_OMAP3 |
diff --git a/drivers/video/omap2/dss/dss_features.c b/drivers/video/omap2/dss/dss_features.c index 13b45af5e89d..1c939fb6debc 100644 --- a/drivers/video/omap2/dss/dss_features.c +++ b/drivers/video/omap2/dss/dss_features.c | |||
@@ -573,8 +573,7 @@ static const struct ti_hdmi_ip_ops omap4_hdmi_functions = { | |||
573 | .dump_core = ti_hdmi_4xxx_core_dump, | 573 | .dump_core = ti_hdmi_4xxx_core_dump, |
574 | .dump_pll = ti_hdmi_4xxx_pll_dump, | 574 | .dump_pll = ti_hdmi_4xxx_pll_dump, |
575 | .dump_phy = ti_hdmi_4xxx_phy_dump, | 575 | .dump_phy = ti_hdmi_4xxx_phy_dump, |
576 | #if defined(CONFIG_SND_OMAP_SOC_OMAP4_HDMI) || \ | 576 | #if defined(CONFIG_OMAP4_DSS_HDMI_AUDIO) |
577 | defined(CONFIG_SND_OMAP_SOC_OMAP4_HDMI_MODULE) | ||
578 | .audio_enable = ti_hdmi_4xxx_wp_audio_enable, | 577 | .audio_enable = ti_hdmi_4xxx_wp_audio_enable, |
579 | .audio_disable = ti_hdmi_4xxx_wp_audio_disable, | 578 | .audio_disable = ti_hdmi_4xxx_wp_audio_disable, |
580 | .audio_start = ti_hdmi_4xxx_audio_start, | 579 | .audio_start = ti_hdmi_4xxx_audio_start, |
diff --git a/drivers/video/omap2/dss/ti_hdmi.h b/drivers/video/omap2/dss/ti_hdmi.h index 8afdd0b7678a..6aedb898a918 100644 --- a/drivers/video/omap2/dss/ti_hdmi.h +++ b/drivers/video/omap2/dss/ti_hdmi.h | |||
@@ -108,8 +108,7 @@ struct ti_hdmi_ip_ops { | |||
108 | 108 | ||
109 | void (*dump_phy)(struct hdmi_ip_data *ip_data, struct seq_file *s); | 109 | void (*dump_phy)(struct hdmi_ip_data *ip_data, struct seq_file *s); |
110 | 110 | ||
111 | #if defined(CONFIG_SND_OMAP_SOC_OMAP4_HDMI) || \ | 111 | #if defined(CONFIG_OMAP4_DSS_HDMI_AUDIO) |
112 | defined(CONFIG_SND_OMAP_SOC_OMAP4_HDMI_MODULE) | ||
113 | int (*audio_enable)(struct hdmi_ip_data *ip_data); | 112 | int (*audio_enable)(struct hdmi_ip_data *ip_data); |
114 | 113 | ||
115 | void (*audio_disable)(struct hdmi_ip_data *ip_data); | 114 | void (*audio_disable)(struct hdmi_ip_data *ip_data); |
@@ -190,8 +189,7 @@ void ti_hdmi_4xxx_wp_dump(struct hdmi_ip_data *ip_data, struct seq_file *s); | |||
190 | void ti_hdmi_4xxx_pll_dump(struct hdmi_ip_data *ip_data, struct seq_file *s); | 189 | void ti_hdmi_4xxx_pll_dump(struct hdmi_ip_data *ip_data, struct seq_file *s); |
191 | void ti_hdmi_4xxx_core_dump(struct hdmi_ip_data *ip_data, struct seq_file *s); | 190 | void ti_hdmi_4xxx_core_dump(struct hdmi_ip_data *ip_data, struct seq_file *s); |
192 | void ti_hdmi_4xxx_phy_dump(struct hdmi_ip_data *ip_data, struct seq_file *s); | 191 | void ti_hdmi_4xxx_phy_dump(struct hdmi_ip_data *ip_data, struct seq_file *s); |
193 | #if defined(CONFIG_SND_OMAP_SOC_OMAP4_HDMI) || \ | 192 | #if defined(CONFIG_OMAP4_DSS_HDMI_AUDIO) |
194 | defined(CONFIG_SND_OMAP_SOC_OMAP4_HDMI_MODULE) | ||
195 | int ti_hdmi_4xxx_wp_audio_enable(struct hdmi_ip_data *ip_data); | 193 | int ti_hdmi_4xxx_wp_audio_enable(struct hdmi_ip_data *ip_data); |
196 | void ti_hdmi_4xxx_wp_audio_disable(struct hdmi_ip_data *ip_data); | 194 | void ti_hdmi_4xxx_wp_audio_disable(struct hdmi_ip_data *ip_data); |
197 | int ti_hdmi_4xxx_audio_start(struct hdmi_ip_data *ip_data); | 195 | int ti_hdmi_4xxx_audio_start(struct hdmi_ip_data *ip_data); |
diff --git a/drivers/video/omap2/dss/ti_hdmi_4xxx_ip.c b/drivers/video/omap2/dss/ti_hdmi_4xxx_ip.c index 7b524de831a1..f503c9d12b2f 100644 --- a/drivers/video/omap2/dss/ti_hdmi_4xxx_ip.c +++ b/drivers/video/omap2/dss/ti_hdmi_4xxx_ip.c | |||
@@ -29,8 +29,7 @@ | |||
29 | #include <linux/string.h> | 29 | #include <linux/string.h> |
30 | #include <linux/seq_file.h> | 30 | #include <linux/seq_file.h> |
31 | #include <linux/gpio.h> | 31 | #include <linux/gpio.h> |
32 | #if defined(CONFIG_SND_OMAP_SOC_OMAP4_HDMI) || \ | 32 | #if defined(CONFIG_OMAP4_DSS_HDMI_AUDIO) |
33 | defined(CONFIG_SND_OMAP_SOC_OMAP4_HDMI_MODULE) | ||
34 | #include <sound/asound.h> | 33 | #include <sound/asound.h> |
35 | #endif | 34 | #endif |
36 | 35 | ||
@@ -1024,8 +1023,7 @@ void ti_hdmi_4xxx_phy_dump(struct hdmi_ip_data *ip_data, struct seq_file *s) | |||
1024 | DUMPPHY(HDMI_TXPHY_PAD_CFG_CTRL); | 1023 | DUMPPHY(HDMI_TXPHY_PAD_CFG_CTRL); |
1025 | } | 1024 | } |
1026 | 1025 | ||
1027 | #if defined(CONFIG_SND_OMAP_SOC_OMAP4_HDMI) || \ | 1026 | #if defined(CONFIG_OMAP4_DSS_HDMI_AUDIO) |
1028 | defined(CONFIG_SND_OMAP_SOC_OMAP4_HDMI_MODULE) | ||
1029 | void hdmi_wp_audio_config_format(struct hdmi_ip_data *ip_data, | 1027 | void hdmi_wp_audio_config_format(struct hdmi_ip_data *ip_data, |
1030 | struct hdmi_audio_format *aud_fmt) | 1028 | struct hdmi_audio_format *aud_fmt) |
1031 | { | 1029 | { |
diff --git a/drivers/video/omap2/dss/ti_hdmi_4xxx_ip.h b/drivers/video/omap2/dss/ti_hdmi_4xxx_ip.h index ffc08da89cea..914be3dbf71d 100644 --- a/drivers/video/omap2/dss/ti_hdmi_4xxx_ip.h +++ b/drivers/video/omap2/dss/ti_hdmi_4xxx_ip.h | |||
@@ -435,8 +435,7 @@ struct hdmi_core_audio_config { | |||
435 | bool en_spdif; | 435 | bool en_spdif; |
436 | }; | 436 | }; |
437 | 437 | ||
438 | #if defined(CONFIG_SND_OMAP_SOC_OMAP4_HDMI) || \ | 438 | #if defined(CONFIG_OMAP4_DSS_HDMI_AUDIO) |
439 | defined(CONFIG_SND_OMAP_SOC_OMAP4_HDMI_MODULE) | ||
440 | int hdmi_config_audio_acr(struct hdmi_ip_data *ip_data, | 439 | int hdmi_config_audio_acr(struct hdmi_ip_data *ip_data, |
441 | u32 sample_freq, u32 *n, u32 *cts); | 440 | u32 sample_freq, u32 *n, u32 *cts); |
442 | void hdmi_core_audio_infoframe_config(struct hdmi_ip_data *ip_data, | 441 | void hdmi_core_audio_infoframe_config(struct hdmi_ip_data *ip_data, |