[Intel-gfx] [alsa-devel] [RFC] set up an sync channel between audio and display driver (i.e. ALSA and DRM)

Daniel Vetter daniel at ffwll.ch
Tue May 20 17:22:07 CEST 2014


On Tue, May 20, 2014 at 5:15 PM, Thierry Reding
<thierry.reding at gmail.com> wrote:
> The component/master helpers don't allow you to do that. Essentially
> what it does is provide a way to glue together multiple devices (the
> components) to produce a meta-device (the master). What you get is a
> pair of .bind()/.unbind() functions that are called on each of the
> components when the master binds or unbinds the meta-device. I don't
> see how that could be made to work for suspend/resume.

We'll we could add a pm_ops pointer to the master and auto-register a
pile of suspend/resume hooks to all the component devices. Then we'd
suspend the master as soon as the first component gets suspended and
resume it only when the last component is resumed. Should be doable
with a bunch of refcounts.

On top of that we should be able to use runtime pm to do fine-grained
pm control for each component. So in my naive world here (never used
the component stuff myself after all) this should all work out ;-)
-Daniel
-- 
Daniel Vetter
Software Engineer, Intel Corporation
+41 (0) 79 365 57 48 - http://blog.ffwll.ch



More information about the Intel-gfx mailing list