Merge tag 'sunxi-late-for-4.2' of https://git.kernel.org/pub/scm/linux/kernel/git...
[deliverable/linux.git] / include / sound / hda_i915.h
1 /*
2 * HD-Audio helpers to sync with i915 driver
3 */
4 #ifndef __SOUND_HDA_I915_H
5 #define __SOUND_HDA_I915_H
6
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 #else
14 static int snd_hdac_set_codec_wakeup(struct hdac_bus *bus, bool enable)
15 {
16 return 0;
17 }
18 static inline int snd_hdac_display_power(struct hdac_bus *bus, bool enable)
19 {
20 return 0;
21 }
22 static inline int snd_hdac_get_display_clk(struct hdac_bus *bus)
23 {
24 return 0;
25 }
26 static inline int snd_hdac_i915_init(struct hdac_bus *bus)
27 {
28 return -ENODEV;
29 }
30 static inline int snd_hdac_i915_exit(struct hdac_bus *bus)
31 {
32 return 0;
33 }
34 #endif
35
36 #endif /* __SOUND_HDA_I915_H */
This page took 0.034624 seconds and 6 git commands to generate.