omap-hdmi-audio.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. /*
  2. * hdmi-audio.c -- OMAP4+ DSS HDMI audio support library
  3. *
  4. * Copyright (C) 2014 Texas Instruments Incorporated - http://www.ti.com
  5. *
  6. * Author: Jyri Sarha <jsarha@ti.com>
  7. *
  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.
  11. *
  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.
  16. *
  17. */
  18. #ifndef __OMAP_HDMI_AUDIO_H__
  19. #define __OMAP_HDMI_AUDIO_H__
  20. #include <linux/platform_data/omapdss.h>
  21. struct omap_dss_audio {
  22. struct snd_aes_iec958 *iec;
  23. struct snd_cea_861_aud_if *cea;
  24. };
  25. struct omap_hdmi_audio_ops {
  26. int (*audio_startup)(struct device *dev,
  27. void (*abort_cb)(struct device *dev));
  28. int (*audio_shutdown)(struct device *dev);
  29. int (*audio_start)(struct device *dev);
  30. void (*audio_stop)(struct device *dev);
  31. int (*audio_config)(struct device *dev,
  32. struct omap_dss_audio *dss_audio);
  33. };
  34. /* HDMI audio initalization data */
  35. struct omap_hdmi_audio_pdata {
  36. struct device *dev;
  37. unsigned int version;
  38. phys_addr_t audio_dma_addr;
  39. const struct omap_hdmi_audio_ops *ops;
  40. };
  41. #endif /* __OMAP_HDMI_AUDIO_H__ */