media: mediatek: vcodec: Skip non CBR bitrate mode
authorHirokazu Honda <hiroh@chromium.org>
Tue, 2 Aug 2022 04:42:42 +0000 (06:42 +0200)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Tue, 30 Aug 2022 12:41:15 +0000 (14:41 +0200)
commite7bfdf0a854037e8c0597f1f44f72651869c424d
tree2c60c9f0c34e5656cc245542051e7412195b695c
parentb813e39a6906908e2169574063cace9a03bd8ed6
media: mediatek: vcodec: Skip non CBR bitrate mode

V4L2_MPEG_VIDEO_BITRATE_MODE_CBR is the only bitrate mode supported
by the mediatek driver. The other bitrates must be skipped in
QUERY_MENU.

Fixes: d8e8aa866ed8 ("media: mediatek: vcodec: Report supported bitrate modes")
Signed-off-by: Hirokazu Honda <hiroh@chromium.org>
Reviewed-by: Chen-Yu Tsai <wenst@chromium.org>
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