Lines Matching refs:acomp

41 	struct i915_audio_component *acomp = bus->audio_component;  in snd_hdac_set_codec_wakeup()  local
43 if (!acomp || !acomp->ops) in snd_hdac_set_codec_wakeup()
46 if (!acomp->ops->codec_wake_override) { in snd_hdac_set_codec_wakeup()
55 acomp->ops->codec_wake_override(acomp->dev, enable); in snd_hdac_set_codec_wakeup()
76 struct i915_audio_component *acomp = bus->audio_component; in snd_hdac_display_power() local
78 if (!acomp || !acomp->ops) in snd_hdac_display_power()
86 acomp->ops->get_power(acomp->dev); in snd_hdac_display_power()
93 acomp->ops->put_power(acomp->dev); in snd_hdac_display_power()
112 struct i915_audio_component *acomp = bus->audio_component; in snd_hdac_get_display_clk() local
114 if (!acomp || !acomp->ops) in snd_hdac_get_display_clk()
117 return acomp->ops->get_cdclk_freq(acomp->dev); in snd_hdac_get_display_clk()
123 struct i915_audio_component *acomp = hdac_acomp; in hdac_component_master_bind() local
126 ret = component_bind_all(dev, acomp); in hdac_component_master_bind()
130 if (WARN_ON(!(acomp->dev && acomp->ops && acomp->ops->get_power && in hdac_component_master_bind()
131 acomp->ops->put_power && acomp->ops->get_cdclk_freq))) { in hdac_component_master_bind()
140 if (!try_module_get(acomp->ops->owner)) { in hdac_component_master_bind()
148 component_unbind_all(dev, acomp); in hdac_component_master_bind()
155 struct i915_audio_component *acomp = hdac_acomp; in hdac_component_master_unbind() local
157 module_put(acomp->ops->owner); in hdac_component_master_unbind()
158 component_unbind_all(dev, acomp); in hdac_component_master_unbind()
159 WARN_ON(acomp->ops || acomp->dev); in hdac_component_master_unbind()
210 struct i915_audio_component *acomp; in snd_hdac_i915_init() local
213 acomp = kzalloc(sizeof(*acomp), GFP_KERNEL); in snd_hdac_i915_init()
214 if (!acomp) in snd_hdac_i915_init()
216 bus->audio_component = acomp; in snd_hdac_i915_init()
217 hdac_acomp = acomp; in snd_hdac_i915_init()
231 if (!acomp->ops) { in snd_hdac_i915_init()
241 kfree(acomp); in snd_hdac_i915_init()
263 struct i915_audio_component *acomp = bus->audio_component; in snd_hdac_i915_exit() local
265 if (!acomp) in snd_hdac_i915_exit()
269 if (bus->i915_power_refcount > 0 && acomp->ops) in snd_hdac_i915_exit()
270 acomp->ops->put_power(acomp->dev); in snd_hdac_i915_exit()
274 kfree(acomp); in snd_hdac_i915_exit()