2 * HD-Audio helpers to sync with i915 driver
4 #ifndef __SOUND_HDA_I915_H
5 #define __SOUND_HDA_I915_H
7 #include <drm/i915_component.h>
9 #ifdef CONFIG_SND_HDA_I915
10 int snd_hdac_set_codec_wakeup(struct hdac_bus
*bus
, bool enable
);
11 int snd_hdac_display_power(struct hdac_bus
*bus
, bool enable
);
12 int snd_hdac_get_display_clk(struct hdac_bus
*bus
);
13 int snd_hdac_sync_audio_rate(struct hdac_bus
*bus
, hda_nid_t nid
, int rate
);
14 int snd_hdac_acomp_get_eld(struct hdac_bus
*bus
, hda_nid_t nid
,
15 bool *audio_enabled
, char *buffer
, int max_bytes
);
16 int snd_hdac_i915_init(struct hdac_bus
*bus
);
17 int snd_hdac_i915_exit(struct hdac_bus
*bus
);
18 int snd_hdac_i915_register_notifier(const struct i915_audio_component_audio_ops
*);
20 static inline int snd_hdac_set_codec_wakeup(struct hdac_bus
*bus
, bool enable
)
24 static inline int snd_hdac_display_power(struct hdac_bus
*bus
, bool enable
)
28 static inline int snd_hdac_get_display_clk(struct hdac_bus
*bus
)
32 static inline int snd_hdac_sync_audio_rate(struct hdac_bus
*bus
, hda_nid_t nid
,
37 static inline int snd_hdac_acomp_get_eld(struct hdac_bus
*bus
, hda_nid_t nid
,
38 bool *audio_enabled
, char *buffer
,
43 static inline int snd_hdac_i915_init(struct hdac_bus
*bus
)
47 static inline int snd_hdac_i915_exit(struct hdac_bus
*bus
)
51 static inline int snd_hdac_i915_register_notifier(const struct i915_audio_component_audio_ops
*ops
)
57 #endif /* __SOUND_HDA_I915_H */