omap-hdmi-audio.h 971 B

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