Merge tag 'driver-core-4.3-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git...
[deliverable/linux.git] / include / sound / hda_i915.h
CommitLineData
98d8fc6c
ML
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
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 */
This page took 0.036076 seconds and 5 git commands to generate.