Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-only */
0002 /*
0003  * hdmi-audio.c -- OMAP4+ DSS HDMI audio support library
0004  *
0005  * Copyright (C) 2014 Texas Instruments Incorporated - https://www.ti.com
0006  *
0007  * Author: Jyri Sarha <jsarha@ti.com>
0008  */
0009 
0010 #ifndef __OMAP_HDMI_AUDIO_H__
0011 #define __OMAP_HDMI_AUDIO_H__
0012 
0013 #include <linux/platform_data/omapdss.h>
0014 
0015 struct omap_dss_audio {
0016     struct snd_aes_iec958 *iec;
0017     struct snd_cea_861_aud_if *cea;
0018 };
0019 
0020 struct omap_hdmi_audio_ops {
0021     int (*audio_startup)(struct device *dev,
0022                  void (*abort_cb)(struct device *dev));
0023     int (*audio_shutdown)(struct device *dev);
0024     int (*audio_start)(struct device *dev);
0025     void (*audio_stop)(struct device *dev);
0026     int (*audio_config)(struct device *dev,
0027                 struct omap_dss_audio *dss_audio);
0028 };
0029 
0030 /* HDMI audio initalization data */
0031 struct omap_hdmi_audio_pdata {
0032     struct device *dev;
0033     unsigned int version;
0034     phys_addr_t audio_dma_addr;
0035 
0036     const struct omap_hdmi_audio_ops *ops;
0037 };
0038 
0039 #endif /* __OMAP_HDMI_AUDIO_H__ */