Lines Matching refs:bus
39 int snd_hdac_set_codec_wakeup(struct hdac_bus *bus, bool enable) in snd_hdac_set_codec_wakeup() argument
41 struct i915_audio_component *acomp = bus->audio_component; in snd_hdac_set_codec_wakeup()
47 dev_warn(bus->dev, in snd_hdac_set_codec_wakeup()
52 dev_dbg(bus->dev, "%s codec wakeup\n", in snd_hdac_set_codec_wakeup()
74 int snd_hdac_display_power(struct hdac_bus *bus, bool enable) in snd_hdac_display_power() argument
76 struct i915_audio_component *acomp = bus->audio_component; in snd_hdac_display_power()
81 dev_dbg(bus->dev, "display power %s\n", in snd_hdac_display_power()
85 if (!bus->i915_power_refcount++) { in snd_hdac_display_power()
87 snd_hdac_set_codec_wakeup(bus, true); in snd_hdac_display_power()
88 snd_hdac_set_codec_wakeup(bus, false); in snd_hdac_display_power()
91 WARN_ON(!bus->i915_power_refcount); in snd_hdac_display_power()
92 if (!--bus->i915_power_refcount) in snd_hdac_display_power()
110 int snd_hdac_get_display_clk(struct hdac_bus *bus) in snd_hdac_get_display_clk() argument
112 struct i915_audio_component *acomp = bus->audio_component; in snd_hdac_get_display_clk()
206 int snd_hdac_i915_init(struct hdac_bus *bus) in snd_hdac_i915_init() argument
209 struct device *dev = bus->dev; in snd_hdac_i915_init()
216 bus->audio_component = acomp; in snd_hdac_i915_init()
219 component_match_add(dev, &match, hdac_component_master_match, bus); in snd_hdac_i915_init()
242 bus->audio_component = NULL; in snd_hdac_i915_init()
260 int snd_hdac_i915_exit(struct hdac_bus *bus) in snd_hdac_i915_exit() argument
262 struct device *dev = bus->dev; in snd_hdac_i915_exit()
263 struct i915_audio_component *acomp = bus->audio_component; in snd_hdac_i915_exit()
268 WARN_ON(bus->i915_power_refcount); in snd_hdac_i915_exit()
269 if (bus->i915_power_refcount > 0 && acomp->ops) in snd_hdac_i915_exit()
275 bus->audio_component = NULL; in snd_hdac_i915_exit()