media: allegro: make QP configurable
authorMichael Tretter <m.tretter@pengutronix.de>
Mon, 16 Mar 2020 15:26:32 +0000 (16:26 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Fri, 20 Mar 2020 08:24:48 +0000 (09:24 +0100)
commit80c8449fc71c807e488709ffb5fb0e3182c95c52
tree8246f013c8218afd87313c068530d1df67805206
parent6179184020301c9e63fe37dab7e194b65ff0dfe0
media: allegro: make QP configurable

The V4L2_CID_MPEG_VIDEO_FRAME_RC_ENABLE control allows to enable/disable
rate control on a channel. When rate control is disabled, the driver
shall use constant QP, which are set by the application. Also implement
the controls for configuring the QP.

Signed-off-by: Michael Tretter <m.tretter@pengutronix.de>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/staging/media/allegro-dvt/allegro-core.c