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