linux_dsm_epyc7002/Documentation/media
Ezequiel Garcia 8fd390b89c media: Split v4l2_pipeline_pm_use into v4l2_pipeline_pm_{get, put}
Currently, v4l2_pipeline_pm_use() prototype is:

  int v4l2_pipeline_pm_use(struct media_entity *entity, int use)

Where the 'use' argument shall only be set to '1' for enable/power-on,
or to '0' for disable/power-off. The integer return is specified
as only meaningful when 'use' is set to '1'.

Let's enforce this semantic by splitting the function in two:
v4l2_pipeline_pm_get and v4l2_pipeline_pm_put. This is done
for several reasons.

It makes the API easier to use (or harder to misuse).
It removes the constraint on the values the 'use' argument
shall take. Also, it removes the need to constraint
the return value, by making v4l2_pipeline_pm_put void return.

And last, it's more consistent with other kernel APIs, such
as the runtime pm APIs, which makes the code more symmetric.

Signed-off-by: Ezequiel Garcia <ezequiel@collabora.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
2020-03-02 15:11:40 +01:00
..
cec-drivers
dvb-drivers
kapi media: Split v4l2_pipeline_pm_use into v4l2_pipeline_pm_{get, put} 2020-03-02 15:11:40 +01:00
uapi media: uapi: h264: Add DPB entry field reference flags 2020-03-02 11:19:13 +01:00
v4l-drivers media: ipu3.rst: add imgu pipe config tool link 2020-02-27 17:18:15 -03:00
.gitignore
audio.h.rst.exceptions
ca.h.rst.exceptions
cec.h.rst.exceptions media: uapi/linux/cec.h: add defines for the CEC UI Command Operand 2019-10-01 17:17:51 -03:00
conf_nitpick.py
dmx.h.rst.exceptions
frontend.h.rst.exceptions
index.rst
intro.rst
lirc.h.rst.exceptions
Makefile
media_kapi.rst
media_uapi.rst
media.h.rst.exceptions
net.h.rst.exceptions
typical_media_device.svg
video.h.rst.exceptions
videodev2.h.rst.exceptions media: v4l: Add definitions for HEVC stateless decoding 2019-10-24 18:09:18 -03:00