rtc: sunxi: use of_device_get_match_data
[linux-2.6/btrfs-unstable.git] / include / sound / hda_i915.h
blob930b41e5acf4cb9a9008cfc7394dad61d87895a9
1 /*
2 * HD-Audio helpers to sync with i915 driver
3 */
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_i915_init(struct hdac_bus *bus);
14 int snd_hdac_i915_exit(struct hdac_bus *bus);
15 int snd_hdac_i915_register_notifier(const struct i915_audio_component_audio_ops *);
16 #else
17 static inline int snd_hdac_set_codec_wakeup(struct hdac_bus *bus, bool enable)
19 return 0;
21 static inline int snd_hdac_display_power(struct hdac_bus *bus, bool enable)
23 return 0;
25 static inline int snd_hdac_get_display_clk(struct hdac_bus *bus)
27 return 0;
29 static inline int snd_hdac_i915_init(struct hdac_bus *bus)
31 return -ENODEV;
33 static inline int snd_hdac_i915_exit(struct hdac_bus *bus)
35 return 0;
37 static inline int snd_hdac_i915_register_notifier(const struct i915_audio_component_audio_ops *ops)
39 return -ENODEV;
41 #endif
43 #endif /* __SOUND_HDA_I915_H */