pipewire: implement DPMS
authorMichael Olbrich <m.olbrich@pengutronix.de>
Wed, 19 Aug 2020 06:43:15 +0000 (08:43 +0200)
committerMichael Olbrich <m.olbrich@pengutronix.de>
Wed, 19 Aug 2020 06:50:45 +0000 (08:50 +0200)
commita24a326bb19ec53d7405fc2ed474de99a111e289
tree2e3df9d822168ba44c3e57efea84941e1cdcc91c
parentd70e712c2f63c5af7483ea5053e57bfa83d7d7e7
pipewire: implement DPMS

Pipewire doesn't need to wait for any hardware. The finish_frame() callback is
just artifically delayed to generate the desired framerate.

So when the DPMS level changes, we can just call finish_frame() immediately if
necessary and cancel the timer.

Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
pipewire/pipewire-plugin.c