Lines Matching defs:acomp
38 struct drm_audio_component *acomp = bus->audio_component;
40 if (!acomp || !acomp->ops)
43 if (!acomp->ops->codec_wake_override)
48 acomp->ops->codec_wake_override(acomp->dev, enable);
68 struct drm_audio_component *acomp = bus->audio_component;
78 if (!acomp || !acomp->ops)
85 if (acomp->ops->get_power)
86 cookie = acomp->ops->get_power(acomp->dev);
96 if (acomp->ops->put_power)
97 acomp->ops->put_power(acomp->dev, cookie);
122 struct drm_audio_component *acomp = bus->audio_component;
125 if (!acomp || !acomp->ops || !acomp->ops->sync_audio_rate)
128 if (acomp->audio_ops && acomp->audio_ops->pin2port) {
129 port = acomp->audio_ops->pin2port(codec, nid);
134 return acomp->ops->sync_audio_rate(acomp->dev, port, pipe, rate);
163 struct drm_audio_component *acomp = bus->audio_component;
166 if (!acomp || !acomp->ops || !acomp->ops->get_eld)
170 if (acomp->audio_ops && acomp->audio_ops->pin2port) {
171 port = acomp->audio_ops->pin2port(codec, nid);
176 return acomp->ops->get_eld(acomp->dev, port, pipe, audio_enabled,
183 struct drm_audio_component *acomp = hdac_get_acomp(dev);
186 if (WARN_ON(!acomp))
189 ret = component_bind_all(dev, acomp);
193 if (WARN_ON(!(acomp->dev && acomp->ops))) {
199 if (!try_module_get(acomp->ops->owner)) {
204 if (acomp->audio_ops && acomp->audio_ops->master_bind) {
205 ret = acomp->audio_ops->master_bind(dev, acomp);
210 complete_all(&acomp->master_bind_complete);
214 module_put(acomp->ops->owner);
216 component_unbind_all(dev, acomp);
217 complete_all(&acomp->master_bind_complete);
224 struct drm_audio_component *acomp = hdac_get_acomp(dev);
226 if (acomp->audio_ops && acomp->audio_ops->master_unbind)
227 acomp->audio_ops->master_unbind(dev, acomp);
228 module_put(acomp->ops->owner);
229 component_unbind_all(dev, acomp);
230 WARN_ON(acomp->ops || acomp->dev);
287 struct drm_audio_component *acomp;
293 acomp = devres_alloc(hdac_acomp_release, sizeof(*acomp) + extra_size,
295 if (!acomp)
297 acomp->audio_ops = aops;
298 init_completion(&acomp->master_bind_complete);
299 bus->audio_component = acomp;
300 devres_add(dev, acomp);
333 struct drm_audio_component *acomp = bus->audio_component;
335 if (!acomp)
338 if (WARN_ON(bus->display_power_active) && acomp->ops)
339 acomp->ops->put_power(acomp->dev, bus->display_power_active);