media: mediatek: vcodec: Report supported bitrate modes
authorHirokazu Honda <hiroh@chromium.org>
Wed, 22 Jun 2022 08:36:24 +0000 (09:36 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Mon, 27 Jun 2022 08:31:41 +0000 (09:31 +0100)
commitd8e8aa866ed8636fd6c1017c3d9453eab2922496
tree4582262c0089aad02e9fb19a6ecc62a8f329c461
parentc2cc2aa1d06b9c06495380b7d332680a992531f0
media: mediatek: vcodec: Report supported bitrate modes

The media driver supports constant bitrate mode only.
The supported rate control mode is reported through querymenu() and
s_ctrl() fails if non constant bitrate mode (e.g. VBR) is requested.

Signed-off-by: Hirokazu Honda <hiroh@chromium.org>
Reviewed-by: Irui Wang <irui.wang@mediatek.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/platform/mediatek/vcodec/mtk_vcodec_enc.c