diff options
-rw-r--r-- | drivers/video/fbdev/omap2/dss/hdmi.h | 3 | ||||
-rw-r--r-- | drivers/video/fbdev/omap2/dss/hdmi4_core.c | 5 | ||||
-rw-r--r-- | drivers/video/fbdev/omap2/dss/hdmi4_core.h | 2 | ||||
-rw-r--r-- | drivers/video/fbdev/omap2/dss/hdmi5_core.c | 6 | ||||
-rw-r--r-- | drivers/video/fbdev/omap2/dss/hdmi5_core.h | 2 | ||||
-rw-r--r-- | drivers/video/fbdev/omap2/dss/hdmi_common.c | 2 | ||||
-rw-r--r-- | drivers/video/fbdev/omap2/dss/hdmi_wp.c | 2 |
7 files changed, 1 insertions, 21 deletions
diff --git a/drivers/video/fbdev/omap2/dss/hdmi.h b/drivers/video/fbdev/omap2/dss/hdmi.h index 2c385a229e89..aa2edd880ff3 100644 --- a/drivers/video/fbdev/omap2/dss/hdmi.h +++ b/drivers/video/fbdev/omap2/dss/hdmi.h | |||
@@ -321,7 +321,7 @@ int hdmi_phy_parse_lanes(struct hdmi_phy_data *phy, const u32 *lanes); | |||
321 | int hdmi_parse_lanes_of(struct platform_device *pdev, struct device_node *ep, | 321 | int hdmi_parse_lanes_of(struct platform_device *pdev, struct device_node *ep, |
322 | struct hdmi_phy_data *phy); | 322 | struct hdmi_phy_data *phy); |
323 | 323 | ||
324 | #if defined(CONFIG_OMAP4_DSS_HDMI_AUDIO) || defined(CONFIG_OMAP5_DSS_HDMI_AUDIO) | 324 | /* Audio funcs */ |
325 | int hdmi_compute_acr(u32 pclk, u32 sample_freq, u32 *n, u32 *cts); | 325 | int hdmi_compute_acr(u32 pclk, u32 sample_freq, u32 *n, u32 *cts); |
326 | int hdmi_wp_audio_enable(struct hdmi_wp_data *wp, bool enable); | 326 | int hdmi_wp_audio_enable(struct hdmi_wp_data *wp, bool enable); |
327 | int hdmi_wp_audio_core_req_enable(struct hdmi_wp_data *wp, bool enable); | 327 | int hdmi_wp_audio_core_req_enable(struct hdmi_wp_data *wp, bool enable); |
@@ -334,4 +334,3 @@ static inline bool hdmi_mode_has_audio(int mode) | |||
334 | return mode == HDMI_HDMI ? true : false; | 334 | return mode == HDMI_HDMI ? true : false; |
335 | } | 335 | } |
336 | #endif | 336 | #endif |
337 | #endif | ||
diff --git a/drivers/video/fbdev/omap2/dss/hdmi4_core.c b/drivers/video/fbdev/omap2/dss/hdmi4_core.c index 4ad39cfce254..3b448d9ecd31 100644 --- a/drivers/video/fbdev/omap2/dss/hdmi4_core.c +++ b/drivers/video/fbdev/omap2/dss/hdmi4_core.c | |||
@@ -31,10 +31,8 @@ | |||
31 | #include <linux/platform_device.h> | 31 | #include <linux/platform_device.h> |
32 | #include <linux/string.h> | 32 | #include <linux/string.h> |
33 | #include <linux/seq_file.h> | 33 | #include <linux/seq_file.h> |
34 | #if defined(CONFIG_OMAP4_DSS_HDMI_AUDIO) | ||
35 | #include <sound/asound.h> | 34 | #include <sound/asound.h> |
36 | #include <sound/asoundef.h> | 35 | #include <sound/asoundef.h> |
37 | #endif | ||
38 | 36 | ||
39 | #include "hdmi4_core.h" | 37 | #include "hdmi4_core.h" |
40 | #include "dss_features.h" | 38 | #include "dss_features.h" |
@@ -530,7 +528,6 @@ void hdmi4_core_dump(struct hdmi_core_data *core, struct seq_file *s) | |||
530 | DUMPCOREAV(HDMI_CORE_AV_CEC_ADDR_ID); | 528 | DUMPCOREAV(HDMI_CORE_AV_CEC_ADDR_ID); |
531 | } | 529 | } |
532 | 530 | ||
533 | #if defined(CONFIG_OMAP4_DSS_HDMI_AUDIO) | ||
534 | static void hdmi_core_audio_config(struct hdmi_core_data *core, | 531 | static void hdmi_core_audio_config(struct hdmi_core_data *core, |
535 | struct hdmi_core_audio_config *cfg) | 532 | struct hdmi_core_audio_config *cfg) |
536 | { | 533 | { |
@@ -886,8 +883,6 @@ int hdmi4_audio_get_dma_port(u32 *offset, u32 *size) | |||
886 | return 0; | 883 | return 0; |
887 | } | 884 | } |
888 | 885 | ||
889 | #endif | ||
890 | |||
891 | int hdmi4_core_init(struct platform_device *pdev, struct hdmi_core_data *core) | 886 | int hdmi4_core_init(struct platform_device *pdev, struct hdmi_core_data *core) |
892 | { | 887 | { |
893 | struct resource *res; | 888 | struct resource *res; |
diff --git a/drivers/video/fbdev/omap2/dss/hdmi4_core.h b/drivers/video/fbdev/omap2/dss/hdmi4_core.h index 827909eb6c50..c1959f7df7df 100644 --- a/drivers/video/fbdev/omap2/dss/hdmi4_core.h +++ b/drivers/video/fbdev/omap2/dss/hdmi4_core.h | |||
@@ -266,12 +266,10 @@ void hdmi4_configure(struct hdmi_core_data *core, struct hdmi_wp_data *wp, | |||
266 | void hdmi4_core_dump(struct hdmi_core_data *core, struct seq_file *s); | 266 | void hdmi4_core_dump(struct hdmi_core_data *core, struct seq_file *s); |
267 | int hdmi4_core_init(struct platform_device *pdev, struct hdmi_core_data *core); | 267 | int hdmi4_core_init(struct platform_device *pdev, struct hdmi_core_data *core); |
268 | 268 | ||
269 | #if defined(CONFIG_OMAP4_DSS_HDMI_AUDIO) | ||
270 | int hdmi4_audio_start(struct hdmi_core_data *core, struct hdmi_wp_data *wp); | 269 | int hdmi4_audio_start(struct hdmi_core_data *core, struct hdmi_wp_data *wp); |
271 | void hdmi4_audio_stop(struct hdmi_core_data *core, struct hdmi_wp_data *wp); | 270 | void hdmi4_audio_stop(struct hdmi_core_data *core, struct hdmi_wp_data *wp); |
272 | int hdmi4_audio_config(struct hdmi_core_data *core, struct hdmi_wp_data *wp, | 271 | int hdmi4_audio_config(struct hdmi_core_data *core, struct hdmi_wp_data *wp, |
273 | struct omap_dss_audio *audio, u32 pclk); | 272 | struct omap_dss_audio *audio, u32 pclk); |
274 | int hdmi4_audio_get_dma_port(u32 *offset, u32 *size); | 273 | int hdmi4_audio_get_dma_port(u32 *offset, u32 *size); |
275 | #endif | ||
276 | 274 | ||
277 | #endif | 275 | #endif |
diff --git a/drivers/video/fbdev/omap2/dss/hdmi5_core.c b/drivers/video/fbdev/omap2/dss/hdmi5_core.c index 9ffa805bf6e8..a71157935e33 100644 --- a/drivers/video/fbdev/omap2/dss/hdmi5_core.c +++ b/drivers/video/fbdev/omap2/dss/hdmi5_core.c | |||
@@ -30,10 +30,8 @@ | |||
30 | #include <linux/string.h> | 30 | #include <linux/string.h> |
31 | #include <linux/seq_file.h> | 31 | #include <linux/seq_file.h> |
32 | #include <drm/drm_edid.h> | 32 | #include <drm/drm_edid.h> |
33 | #if defined(CONFIG_OMAP5_DSS_HDMI_AUDIO) | ||
34 | #include <sound/asound.h> | 33 | #include <sound/asound.h> |
35 | #include <sound/asoundef.h> | 34 | #include <sound/asoundef.h> |
36 | #endif | ||
37 | 35 | ||
38 | #include "hdmi5_core.h" | 36 | #include "hdmi5_core.h" |
39 | 37 | ||
@@ -644,9 +642,6 @@ void hdmi5_configure(struct hdmi_core_data *core, struct hdmi_wp_data *wp, | |||
644 | hdmi_core_enable_interrupts(core); | 642 | hdmi_core_enable_interrupts(core); |
645 | } | 643 | } |
646 | 644 | ||
647 | |||
648 | #if defined(CONFIG_OMAP5_DSS_HDMI_AUDIO) | ||
649 | |||
650 | static void hdmi5_core_audio_config(struct hdmi_core_data *core, | 645 | static void hdmi5_core_audio_config(struct hdmi_core_data *core, |
651 | struct hdmi_core_audio_config *cfg) | 646 | struct hdmi_core_audio_config *cfg) |
652 | { | 647 | { |
@@ -897,7 +892,6 @@ int hdmi5_audio_config(struct hdmi_core_data *core, struct hdmi_wp_data *wp, | |||
897 | 892 | ||
898 | return 0; | 893 | return 0; |
899 | } | 894 | } |
900 | #endif | ||
901 | 895 | ||
902 | int hdmi5_core_init(struct platform_device *pdev, struct hdmi_core_data *core) | 896 | int hdmi5_core_init(struct platform_device *pdev, struct hdmi_core_data *core) |
903 | { | 897 | { |
diff --git a/drivers/video/fbdev/omap2/dss/hdmi5_core.h b/drivers/video/fbdev/omap2/dss/hdmi5_core.h index ce7e9f376f04..f2f1022c5516 100644 --- a/drivers/video/fbdev/omap2/dss/hdmi5_core.h +++ b/drivers/video/fbdev/omap2/dss/hdmi5_core.h | |||
@@ -299,8 +299,6 @@ void hdmi5_configure(struct hdmi_core_data *core, struct hdmi_wp_data *wp, | |||
299 | struct hdmi_config *cfg); | 299 | struct hdmi_config *cfg); |
300 | int hdmi5_core_init(struct platform_device *pdev, struct hdmi_core_data *core); | 300 | int hdmi5_core_init(struct platform_device *pdev, struct hdmi_core_data *core); |
301 | 301 | ||
302 | #if defined(CONFIG_OMAP5_DSS_HDMI_AUDIO) | ||
303 | int hdmi5_audio_config(struct hdmi_core_data *core, struct hdmi_wp_data *wp, | 302 | int hdmi5_audio_config(struct hdmi_core_data *core, struct hdmi_wp_data *wp, |
304 | struct omap_dss_audio *audio, u32 pclk); | 303 | struct omap_dss_audio *audio, u32 pclk); |
305 | #endif | 304 | #endif |
306 | #endif | ||
diff --git a/drivers/video/fbdev/omap2/dss/hdmi_common.c b/drivers/video/fbdev/omap2/dss/hdmi_common.c index 7d5f1039de9f..1b8fcc6c4ba1 100644 --- a/drivers/video/fbdev/omap2/dss/hdmi_common.c +++ b/drivers/video/fbdev/omap2/dss/hdmi_common.c | |||
@@ -48,7 +48,6 @@ int hdmi_parse_lanes_of(struct platform_device *pdev, struct device_node *ep, | |||
48 | return 0; | 48 | return 0; |
49 | } | 49 | } |
50 | 50 | ||
51 | #if defined(CONFIG_OMAP4_DSS_HDMI_AUDIO) | ||
52 | int hdmi_compute_acr(u32 pclk, u32 sample_freq, u32 *n, u32 *cts) | 51 | int hdmi_compute_acr(u32 pclk, u32 sample_freq, u32 *n, u32 *cts) |
53 | { | 52 | { |
54 | u32 deep_color; | 53 | u32 deep_color; |
@@ -147,4 +146,3 @@ int hdmi_compute_acr(u32 pclk, u32 sample_freq, u32 *n, u32 *cts) | |||
147 | 146 | ||
148 | return 0; | 147 | return 0; |
149 | } | 148 | } |
150 | #endif | ||
diff --git a/drivers/video/fbdev/omap2/dss/hdmi_wp.c b/drivers/video/fbdev/omap2/dss/hdmi_wp.c index 71b499ec33f6..4ead96218a31 100644 --- a/drivers/video/fbdev/omap2/dss/hdmi_wp.c +++ b/drivers/video/fbdev/omap2/dss/hdmi_wp.c | |||
@@ -185,7 +185,6 @@ void hdmi_wp_init_vid_fmt_timings(struct hdmi_video_format *video_fmt, | |||
185 | timings->interlace = param->timings.interlace; | 185 | timings->interlace = param->timings.interlace; |
186 | } | 186 | } |
187 | 187 | ||
188 | #if defined(CONFIG_OMAP4_DSS_HDMI_AUDIO) || defined(CONFIG_OMAP5_DSS_HDMI_AUDIO) | ||
189 | void hdmi_wp_audio_config_format(struct hdmi_wp_data *wp, | 188 | void hdmi_wp_audio_config_format(struct hdmi_wp_data *wp, |
190 | struct hdmi_audio_format *aud_fmt) | 189 | struct hdmi_audio_format *aud_fmt) |
191 | { | 190 | { |
@@ -240,7 +239,6 @@ int hdmi_wp_audio_core_req_enable(struct hdmi_wp_data *wp, bool enable) | |||
240 | 239 | ||
241 | return 0; | 240 | return 0; |
242 | } | 241 | } |
243 | #endif | ||
244 | 242 | ||
245 | int hdmi_wp_init(struct platform_device *pdev, struct hdmi_wp_data *wp) | 243 | int hdmi_wp_init(struct platform_device *pdev, struct hdmi_wp_data *wp) |
246 | { | 244 | { |