aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Ujfalusi <peter.ujfalusi@ti.com>2016-05-30 06:26:28 -0400
committerPeter Ujfalusi <peter.ujfalusi@ti.com>2016-06-03 09:06:36 -0400
commit5fd7447a215b31a4dba78423c61d1525dbcda83f (patch)
tree0288c760232c414cf30e7f324d8762b1e0513ff0
parentf28316f2fd6cbd012dbc09b1bbd12be660112ddb (diff)
omapdss: hdmi audio: Make header file independent of video/omapdss.h
Clean up the header files regarding to hdmi audio so the omap-hdmi-audio.h file will only need to include the platform_data/omapdss.h file. Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com> CC: Mark Brown <broonie@kernel.org> CC: Jyri Sarha <jsarha@ti.com> CC: Liam Girdwood <liam.r.girdwood@linux.intel.com>
-rw-r--r--drivers/gpu/drm/omapdrm/dss/hdmi.h1
-rw-r--r--drivers/video/fbdev/omap2/omapfb/dss/hdmi.h1
-rw-r--r--include/sound/omap-hdmi-audio.h9
-rw-r--r--include/video/omapdss.h5
-rw-r--r--sound/soc/omap/omap-hdmi-audio.c1
5 files changed, 9 insertions, 8 deletions
diff --git a/drivers/gpu/drm/omapdrm/dss/hdmi.h b/drivers/gpu/drm/omapdrm/dss/hdmi.h
index 53616b02b613..c32a21a26054 100644
--- a/drivers/gpu/drm/omapdrm/dss/hdmi.h
+++ b/drivers/gpu/drm/omapdrm/dss/hdmi.h
@@ -24,6 +24,7 @@
24#include <linux/platform_device.h> 24#include <linux/platform_device.h>
25#include <linux/hdmi.h> 25#include <linux/hdmi.h>
26#include <video/omapdss.h> 26#include <video/omapdss.h>
27#include <sound/omap-hdmi-audio.h>
27 28
28#include "dss.h" 29#include "dss.h"
29 30
diff --git a/drivers/video/fbdev/omap2/omapfb/dss/hdmi.h b/drivers/video/fbdev/omap2/omapfb/dss/hdmi.h
index 53616b02b613..c32a21a26054 100644
--- a/drivers/video/fbdev/omap2/omapfb/dss/hdmi.h
+++ b/drivers/video/fbdev/omap2/omapfb/dss/hdmi.h
@@ -24,6 +24,7 @@
24#include <linux/platform_device.h> 24#include <linux/platform_device.h>
25#include <linux/hdmi.h> 25#include <linux/hdmi.h>
26#include <video/omapdss.h> 26#include <video/omapdss.h>
27#include <sound/omap-hdmi-audio.h>
27 28
28#include "dss.h" 29#include "dss.h"
29 30
diff --git a/include/sound/omap-hdmi-audio.h b/include/sound/omap-hdmi-audio.h
index afdb416898e0..1df2ff61a4dd 100644
--- a/include/sound/omap-hdmi-audio.h
+++ b/include/sound/omap-hdmi-audio.h
@@ -16,11 +16,16 @@
16 * 16 *
17 */ 17 */
18 18
19#include <video/omapdss.h>
20
21#ifndef __OMAP_HDMI_AUDIO_H__ 19#ifndef __OMAP_HDMI_AUDIO_H__
22#define __OMAP_HDMI_AUDIO_H__ 20#define __OMAP_HDMI_AUDIO_H__
23 21
22#include <linux/platform_data/omapdss.h>
23
24struct omap_dss_audio {
25 struct snd_aes_iec958 *iec;
26 struct snd_cea_861_aud_if *cea;
27};
28
24struct omap_hdmi_audio_ops { 29struct omap_hdmi_audio_ops {
25 int (*audio_startup)(struct device *dev, 30 int (*audio_startup)(struct device *dev,
26 void (*abort_cb)(struct device *dev)); 31 void (*abort_cb)(struct device *dev));
diff --git a/include/video/omapdss.h b/include/video/omapdss.h
index 53ada70cf23c..b25e2eab4b48 100644
--- a/include/video/omapdss.h
+++ b/include/video/omapdss.h
@@ -168,11 +168,6 @@ enum omap_dss_display_state {
168 OMAP_DSS_DISPLAY_ACTIVE, 168 OMAP_DSS_DISPLAY_ACTIVE,
169}; 169};
170 170
171struct omap_dss_audio {
172 struct snd_aes_iec958 *iec;
173 struct snd_cea_861_aud_if *cea;
174};
175
176enum omap_dss_rotation_type { 171enum omap_dss_rotation_type {
177 OMAP_DSS_ROT_DMA = 1 << 0, 172 OMAP_DSS_ROT_DMA = 1 << 0,
178 OMAP_DSS_ROT_VRFB = 1 << 1, 173 OMAP_DSS_ROT_VRFB = 1 << 1,
diff --git a/sound/soc/omap/omap-hdmi-audio.c b/sound/soc/omap/omap-hdmi-audio.c
index 64425d352962..888133f9e65d 100644
--- a/sound/soc/omap/omap-hdmi-audio.c
+++ b/sound/soc/omap/omap-hdmi-audio.c
@@ -28,7 +28,6 @@
28#include <sound/asoundef.h> 28#include <sound/asoundef.h>
29#include <sound/omap-pcm.h> 29#include <sound/omap-pcm.h>
30#include <sound/omap-hdmi-audio.h> 30#include <sound/omap-hdmi-audio.h>
31#include <video/omapdss.h>
32 31
33#define DRV_NAME "omap-hdmi-audio" 32#define DRV_NAME "omap-hdmi-audio"
34 33