hda_i915.h 1.1 KB

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