Merge tag 'fbdev-fixes-4.2' of git://git.kernel.org/pub/scm/linux/kernel/git/tomba...
[linux-2.6-block.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 */