hda_i915.h 589 B

12345678910111213141516171819202122232425262728
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. /*
  3. * HD-Audio helpers to sync with i915 driver
  4. */
  5. #ifndef __SOUND_HDA_I915_H
  6. #define __SOUND_HDA_I915_H
  7. #include "hda_component.h"
  8. #ifdef CONFIG_SND_HDA_I915
  9. void snd_hdac_i915_set_bclk(struct hdac_bus *bus);
  10. int snd_hdac_i915_init(struct hdac_bus *bus);
  11. #else
  12. static inline void snd_hdac_i915_set_bclk(struct hdac_bus *bus)
  13. {
  14. }
  15. static inline int snd_hdac_i915_init(struct hdac_bus *bus)
  16. {
  17. return -ENODEV;
  18. }
  19. #endif
  20. static inline int snd_hdac_i915_exit(struct hdac_bus *bus)
  21. {
  22. return snd_hdac_acomp_exit(bus);
  23. }
  24. #endif /* __SOUND_HDA_I915_H */