Lines Matching refs:acomp
37 struct drm_audio_component *acomp = bus->audio_component; in snd_hdac_set_codec_wakeup() local
39 if (!acomp || !acomp->ops) in snd_hdac_set_codec_wakeup()
42 if (!acomp->ops->codec_wake_override) in snd_hdac_set_codec_wakeup()
48 acomp->ops->codec_wake_override(acomp->dev, enable); in snd_hdac_set_codec_wakeup()
69 struct drm_audio_component *acomp = bus->audio_component; in snd_hdac_display_power() local
71 if (!acomp || !acomp->ops) in snd_hdac_display_power()
79 if (acomp->ops->get_power) in snd_hdac_display_power()
80 acomp->ops->get_power(acomp->dev); in snd_hdac_display_power()
87 if (acomp->ops->put_power) in snd_hdac_display_power()
88 acomp->ops->put_power(acomp->dev); in snd_hdac_display_power()
112 struct drm_audio_component *acomp = bus->audio_component; in snd_hdac_sync_audio_rate() local
115 if (!acomp || !acomp->ops || !acomp->ops->sync_audio_rate) in snd_hdac_sync_audio_rate()
118 if (acomp->audio_ops && acomp->audio_ops->pin2port) { in snd_hdac_sync_audio_rate()
119 port = acomp->audio_ops->pin2port(codec, nid); in snd_hdac_sync_audio_rate()
124 return acomp->ops->sync_audio_rate(acomp->dev, port, pipe, rate); in snd_hdac_sync_audio_rate()
153 struct drm_audio_component *acomp = bus->audio_component; in snd_hdac_acomp_get_eld() local
156 if (!acomp || !acomp->ops || !acomp->ops->get_eld) in snd_hdac_acomp_get_eld()
160 if (acomp->audio_ops && acomp->audio_ops->pin2port) { in snd_hdac_acomp_get_eld()
161 port = acomp->audio_ops->pin2port(codec, nid); in snd_hdac_acomp_get_eld()
166 return acomp->ops->get_eld(acomp->dev, port, pipe, audio_enabled, in snd_hdac_acomp_get_eld()
173 struct drm_audio_component *acomp = hdac_get_acomp(dev); in hdac_component_master_bind() local
176 if (WARN_ON(!acomp)) in hdac_component_master_bind()
179 ret = component_bind_all(dev, acomp); in hdac_component_master_bind()
183 if (WARN_ON(!(acomp->dev && acomp->ops))) { in hdac_component_master_bind()
189 if (!try_module_get(acomp->ops->owner)) { in hdac_component_master_bind()
194 if (acomp->audio_ops && acomp->audio_ops->master_bind) { in hdac_component_master_bind()
195 ret = acomp->audio_ops->master_bind(dev, acomp); in hdac_component_master_bind()
203 module_put(acomp->ops->owner); in hdac_component_master_bind()
205 component_unbind_all(dev, acomp); in hdac_component_master_bind()
212 struct drm_audio_component *acomp = hdac_get_acomp(dev); in hdac_component_master_unbind() local
214 if (acomp->audio_ops && acomp->audio_ops->master_unbind) in hdac_component_master_unbind()
215 acomp->audio_ops->master_unbind(dev, acomp); in hdac_component_master_unbind()
216 module_put(acomp->ops->owner); in hdac_component_master_unbind()
217 component_unbind_all(dev, acomp); in hdac_component_master_unbind()
218 WARN_ON(acomp->ops || acomp->dev); in hdac_component_master_unbind()
274 struct drm_audio_component *acomp; in snd_hdac_acomp_init() local
280 acomp = devres_alloc(hdac_acomp_release, sizeof(*acomp) + extra_size, in snd_hdac_acomp_init()
282 if (!acomp) in snd_hdac_acomp_init()
284 acomp->audio_ops = aops; in snd_hdac_acomp_init()
285 bus->audio_component = acomp; in snd_hdac_acomp_init()
286 devres_add(dev, acomp); in snd_hdac_acomp_init()
319 struct drm_audio_component *acomp = bus->audio_component; in snd_hdac_acomp_exit() local
321 if (!acomp) in snd_hdac_acomp_exit()
325 if (bus->drm_power_refcount > 0 && acomp->ops) in snd_hdac_acomp_exit()
326 acomp->ops->put_power(acomp->dev); in snd_hdac_acomp_exit()