summaryrefslogtreecommitdiff
path: root/drivers/video/omap2/dss/ti_hdmi.h
diff options
context:
space:
mode:
authorRicardo Neri <ricardo.neri@ti.com>2012-03-21 22:38:15 +0400
committerTomi Valkeinen <tomi.valkeinen@ti.com>2012-05-11 16:17:08 +0400
commit6ec355d6c79e811a3b7f85ca6b22fa4bd7b1bbfc (patch)
tree316df760312fd6833c0bcc609e5dd46930cc196f /drivers/video/omap2/dss/ti_hdmi.h
parent25a653597ee63119a477e9bdeb6b41bd7cd56140 (diff)
downloadlinux-6ec355d6c79e811a3b7f85ca6b22fa4bd7b1bbfc.tar.xz
OMAPDSS: HDMI: Add an audio configuration function
The generic HDMI driver does not need to know about the specific settings of a given IP. Hence, it just passes the audio configuration and the IP library parses such configuration and sets the IP accordingly. This patch introduces an IP-specific audio configuration function. Also, this patch implements the audio config function for OMAP4. The DMA, format and core config functions are no longer exposed to the generic HDMI driver as they are IP-specific. The audio configuration function caters for 16-bit through 24-bit audio samples with sample rates from 32kHz and up to 192kHz as well as up to 8 audio channels. Signed-off-by: Ricardo Neri <ricardo.neri@ti.com>
Diffstat (limited to 'drivers/video/omap2/dss/ti_hdmi.h')
-rw-r--r--drivers/video/omap2/dss/ti_hdmi.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/video/omap2/dss/ti_hdmi.h b/drivers/video/omap2/dss/ti_hdmi.h
index 852a8033ddcc..e734cb444bc7 100644
--- a/drivers/video/omap2/dss/ti_hdmi.h
+++ b/drivers/video/omap2/dss/ti_hdmi.h
@@ -116,6 +116,9 @@ struct ti_hdmi_ip_ops {
int (*audio_start)(struct hdmi_ip_data *ip_data);
void (*audio_stop)(struct hdmi_ip_data *ip_data);
+
+ int (*audio_config)(struct hdmi_ip_data *ip_data,
+ struct omap_dss_audio *audio);
#endif
};
@@ -195,5 +198,7 @@ int ti_hdmi_4xxx_wp_audio_enable(struct hdmi_ip_data *ip_data);
void ti_hdmi_4xxx_wp_audio_disable(struct hdmi_ip_data *ip_data);
int ti_hdmi_4xxx_audio_start(struct hdmi_ip_data *ip_data);
void ti_hdmi_4xxx_audio_stop(struct hdmi_ip_data *ip_data);
+int ti_hdmi_4xxx_audio_config(struct hdmi_ip_data *ip_data,
+ struct omap_dss_audio *audio);
#endif
#endif