blob: adb5ba5cbd9d02622b49369d26036952fa9d7255 [file] [log] [blame]
Mengdong Lin98d8fc62015-05-19 22:29:30 +08001/*
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
8int snd_hdac_set_codec_wakeup(struct hdac_bus *bus, bool enable);
9int snd_hdac_display_power(struct hdac_bus *bus, bool enable);
10int snd_hdac_get_display_clk(struct hdac_bus *bus);
11int snd_hdac_i915_init(struct hdac_bus *bus);
12int snd_hdac_i915_exit(struct hdac_bus *bus);
13#else
14static int snd_hdac_set_codec_wakeup(struct hdac_bus *bus, bool enable)
15{
16 return 0;
17}
18static inline int snd_hdac_display_power(struct hdac_bus *bus, bool enable)
19{
20 return 0;
21}
22static inline int snd_hdac_get_display_clk(struct hdac_bus *bus)
23{
24 return 0;
25}
26static inline int snd_hdac_i915_init(struct hdac_bus *bus)
27{
28 return -ENODEV;
29}
30static inline int snd_hdac_i915_exit(struct hdac_bus *bus)
31{
32 return 0;
33}
34#endif
35
36#endif /* __SOUND_HDA_I915_H */