^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) /* SPDX-License-Identifier: GPL-2.0-only */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3) * hdmi-audio.c -- OMAP4+ DSS HDMI audio support library
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4) *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5) * Copyright (C) 2014 Texas Instruments Incorporated - https://www.ti.com
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6) *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7) * Author: Jyri Sarha <jsarha@ti.com>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) #ifndef __OMAP_HDMI_AUDIO_H__
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) #define __OMAP_HDMI_AUDIO_H__
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) #include <linux/platform_data/omapdss.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) struct omap_dss_audio {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) struct snd_aes_iec958 *iec;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) struct snd_cea_861_aud_if *cea;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) struct omap_hdmi_audio_ops {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) int (*audio_startup)(struct device *dev,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) void (*abort_cb)(struct device *dev));
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) int (*audio_shutdown)(struct device *dev);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) int (*audio_start)(struct device *dev);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) void (*audio_stop)(struct device *dev);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) int (*audio_config)(struct device *dev,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) struct omap_dss_audio *dss_audio);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) /* HDMI audio initalization data */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) struct omap_hdmi_audio_pdata {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) struct device *dev;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) unsigned int version;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) phys_addr_t audio_dma_addr;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36) const struct omap_hdmi_audio_ops *ops;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 38)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 39) #endif /* __OMAP_HDMI_AUDIO_H__ */