aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video
diff options
context:
space:
mode:
authorJyri Sarha <jsarha@ti.com>2014-08-22 11:42:18 -0400
committerTomi Valkeinen <tomi.valkeinen@ti.com>2014-12-01 04:09:40 -0500
commit5a8bf632fbf2f81c6483b124da5b2bde9ea73981 (patch)
tree0225ad0d9f3bddbde2291fdb7496f7ed96cc769a /drivers/video
parent4284c35f5d6881d3a9926685db4cf519a9d30842 (diff)
OMAPDSS: hdmi: Make hdmi_mode_has_audio() more user friedly
Make hdmi_mode_has_audio() more user friedly by taking hdmi_config as parameter. Signed-off-by: Jyri Sarha <jsarha@ti.com> Reviewed-by: Mark Brown <broonie@kernel.org> Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Diffstat (limited to 'drivers/video')
-rw-r--r--drivers/video/fbdev/omap2/dss/hdmi.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/video/fbdev/omap2/dss/hdmi.h b/drivers/video/fbdev/omap2/dss/hdmi.h
index 87bd551df696..dde1989901a8 100644
--- a/drivers/video/fbdev/omap2/dss/hdmi.h
+++ b/drivers/video/fbdev/omap2/dss/hdmi.h
@@ -331,9 +331,9 @@ void hdmi_wp_audio_config_format(struct hdmi_wp_data *wp,
331 struct hdmi_audio_format *aud_fmt); 331 struct hdmi_audio_format *aud_fmt);
332void hdmi_wp_audio_config_dma(struct hdmi_wp_data *wp, 332void hdmi_wp_audio_config_dma(struct hdmi_wp_data *wp,
333 struct hdmi_audio_dma *aud_dma); 333 struct hdmi_audio_dma *aud_dma);
334static inline bool hdmi_mode_has_audio(int mode) 334static inline bool hdmi_mode_has_audio(struct hdmi_config *cfg)
335{ 335{
336 return mode == HDMI_HDMI ? true : false; 336 return cfg->hdmi_dvi_mode == HDMI_HDMI ? true : false;
337} 337}
338 338
339/* HDMI DRV data */ 339/* HDMI DRV data */