• Home
  • Raw
  • Download

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()
68 struct drm_audio_component *acomp = bus->audio_component; in snd_hdac_display_power() local
79 if (!acomp || !acomp->ops) in snd_hdac_display_power()
86 if (acomp->ops->get_power) in snd_hdac_display_power()
87 cookie = acomp->ops->get_power(acomp->dev); in snd_hdac_display_power()
97 if (acomp->ops->put_power) in snd_hdac_display_power()
98 acomp->ops->put_power(acomp->dev, cookie); in snd_hdac_display_power()
125 struct drm_audio_component *acomp = bus->audio_component; in snd_hdac_sync_audio_rate() local
128 if (!acomp || !acomp->ops || !acomp->ops->sync_audio_rate) in snd_hdac_sync_audio_rate()
131 if (acomp->audio_ops && acomp->audio_ops->pin2port) { in snd_hdac_sync_audio_rate()
132 port = acomp->audio_ops->pin2port(codec, nid); in snd_hdac_sync_audio_rate()
137 return acomp->ops->sync_audio_rate(acomp->dev, port, pipe, rate); in snd_hdac_sync_audio_rate()
166 struct drm_audio_component *acomp = bus->audio_component; in snd_hdac_acomp_get_eld() local
169 if (!acomp || !acomp->ops || !acomp->ops->get_eld) in snd_hdac_acomp_get_eld()
173 if (acomp->audio_ops && acomp->audio_ops->pin2port) { in snd_hdac_acomp_get_eld()
174 port = acomp->audio_ops->pin2port(codec, nid); in snd_hdac_acomp_get_eld()
179 return acomp->ops->get_eld(acomp->dev, port, pipe, audio_enabled, in snd_hdac_acomp_get_eld()
186 struct drm_audio_component *acomp = hdac_get_acomp(dev); in hdac_component_master_bind() local
189 if (WARN_ON(!acomp)) in hdac_component_master_bind()
192 ret = component_bind_all(dev, acomp); in hdac_component_master_bind()
196 if (WARN_ON(!(acomp->dev && acomp->ops))) { in hdac_component_master_bind()
202 if (!try_module_get(acomp->ops->owner)) { in hdac_component_master_bind()
207 if (acomp->audio_ops && acomp->audio_ops->master_bind) { in hdac_component_master_bind()
208 ret = acomp->audio_ops->master_bind(dev, acomp); in hdac_component_master_bind()
213 complete_all(&acomp->master_bind_complete); in hdac_component_master_bind()
217 module_put(acomp->ops->owner); in hdac_component_master_bind()
219 component_unbind_all(dev, acomp); in hdac_component_master_bind()
220 complete_all(&acomp->master_bind_complete); in hdac_component_master_bind()
227 struct drm_audio_component *acomp = hdac_get_acomp(dev); in hdac_component_master_unbind() local
229 if (acomp->audio_ops && acomp->audio_ops->master_unbind) in hdac_component_master_unbind()
230 acomp->audio_ops->master_unbind(dev, acomp); in hdac_component_master_unbind()
231 module_put(acomp->ops->owner); in hdac_component_master_unbind()
232 component_unbind_all(dev, acomp); in hdac_component_master_unbind()
233 WARN_ON(acomp->ops || acomp->dev); in hdac_component_master_unbind()
290 struct drm_audio_component *acomp; in snd_hdac_acomp_init() local
296 acomp = devres_alloc(hdac_acomp_release, sizeof(*acomp) + extra_size, in snd_hdac_acomp_init()
298 if (!acomp) in snd_hdac_acomp_init()
300 acomp->audio_ops = aops; in snd_hdac_acomp_init()
301 init_completion(&acomp->master_bind_complete); in snd_hdac_acomp_init()
302 bus->audio_component = acomp; in snd_hdac_acomp_init()
303 devres_add(dev, acomp); in snd_hdac_acomp_init()
336 struct drm_audio_component *acomp = bus->audio_component; in snd_hdac_acomp_exit() local
338 if (!acomp) in snd_hdac_acomp_exit()
341 if (WARN_ON(bus->display_power_active) && acomp->ops) in snd_hdac_acomp_exit()
342 acomp->ops->put_power(acomp->dev, bus->display_power_active); in snd_hdac_acomp_exit()