2 * hdmi-audio.c -- OMAP4+ DSS HDMI audio support library
4 * Copyright (C) 2014 Texas Instruments Incorporated - http://www.ti.com
6 * Author: Jyri Sarha <jsarha@ti.com>
8 * This program is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU General Public License
10 * version 2 as published by the Free Software Foundation.
12 * This program is distributed in the hope that it will be useful, but
13 * WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * General Public License for more details.
19 #ifndef __OMAP_HDMI_AUDIO_H__
20 #define __OMAP_HDMI_AUDIO_H__
22 #include <linux/platform_data/omapdss.h>
24 struct omap_dss_audio
{
25 struct snd_aes_iec958
*iec
;
26 struct snd_cea_861_aud_if
*cea
;
29 struct omap_hdmi_audio_ops
{
30 int (*audio_startup
)(struct device
*dev
,
31 void (*abort_cb
)(struct device
*dev
));
32 int (*audio_shutdown
)(struct device
*dev
);
33 int (*audio_start
)(struct device
*dev
);
34 void (*audio_stop
)(struct device
*dev
);
35 int (*audio_config
)(struct device
*dev
,
36 struct omap_dss_audio
*dss_audio
);
39 /* HDMI audio initalization data */
40 struct omap_hdmi_audio_pdata
{
42 enum omapdss_version dss_version
;
43 phys_addr_t audio_dma_addr
;
45 const struct omap_hdmi_audio_ops
*ops
;
48 #endif /* __OMAP_HDMI_AUDIO_H__ */