hda_i915.h 865 B

12345678910111213141516171819202122232425262728293031323334353637
  1. /*
  2. * HD-Audio helpers to sync with i915 driver
  3. */
  4. #ifndef __SOUND_HDA_I915_H
  5. #define __SOUND_HDA_I915_H
  6. #ifdef CONFIG_SND_HDA_I915
  7. int snd_hdac_set_codec_wakeup(struct hdac_bus *bus, bool enable);
  8. int snd_hdac_display_power(struct hdac_bus *bus, bool enable);
  9. int snd_hdac_get_display_clk(struct hdac_bus *bus);
  10. int snd_hdac_i915_init(struct hdac_bus *bus);
  11. int snd_hdac_i915_exit(struct hdac_bus *bus);
  12. #else
  13. static int snd_hdac_set_codec_wakeup(struct hdac_bus *bus, bool enable)
  14. {
  15. return 0;
  16. }
  17. static inline int snd_hdac_display_power(struct hdac_bus *bus, bool enable)
  18. {
  19. return 0;
  20. }
  21. static inline int snd_hdac_get_display_clk(struct hdac_bus *bus)
  22. {
  23. return 0;
  24. }
  25. static inline int snd_hdac_i915_init(struct hdac_bus *bus)
  26. {
  27. return -ENODEV;
  28. }
  29. static inline int snd_hdac_i915_exit(struct hdac_bus *bus)
  30. {
  31. return 0;
  32. }
  33. #endif
  34. #endif /* __SOUND_HDA_I915_H */