Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

at v4.6-rc4 57 lines 1.6 kB view raw
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#include <drm/i915_component.h> 8 9#ifdef CONFIG_SND_HDA_I915 10int snd_hdac_set_codec_wakeup(struct hdac_bus *bus, bool enable); 11int snd_hdac_display_power(struct hdac_bus *bus, bool enable); 12int snd_hdac_get_display_clk(struct hdac_bus *bus); 13int snd_hdac_sync_audio_rate(struct hdac_bus *bus, hda_nid_t nid, int rate); 14int snd_hdac_acomp_get_eld(struct hdac_bus *bus, hda_nid_t nid, 15 bool *audio_enabled, char *buffer, int max_bytes); 16int snd_hdac_i915_init(struct hdac_bus *bus); 17int snd_hdac_i915_exit(struct hdac_bus *bus); 18int snd_hdac_i915_register_notifier(const struct i915_audio_component_audio_ops *); 19#else 20static inline int snd_hdac_set_codec_wakeup(struct hdac_bus *bus, bool enable) 21{ 22 return 0; 23} 24static inline int snd_hdac_display_power(struct hdac_bus *bus, bool enable) 25{ 26 return 0; 27} 28static inline int snd_hdac_get_display_clk(struct hdac_bus *bus) 29{ 30 return 0; 31} 32static inline int snd_hdac_sync_audio_rate(struct hdac_bus *bus, hda_nid_t nid, 33 int rate) 34{ 35 return 0; 36} 37static inline int snd_hdac_acomp_get_eld(struct hdac_bus *bus, hda_nid_t nid, 38 bool *audio_enabled, char *buffer, 39 int max_bytes) 40{ 41 return -ENODEV; 42} 43static inline int snd_hdac_i915_init(struct hdac_bus *bus) 44{ 45 return -ENODEV; 46} 47static inline int snd_hdac_i915_exit(struct hdac_bus *bus) 48{ 49 return 0; 50} 51static inline int snd_hdac_i915_register_notifier(const struct i915_audio_component_audio_ops *ops) 52{ 53 return -ENODEV; 54} 55#endif 56 57#endif /* __SOUND_HDA_I915_H */