summaryrefslogtreecommitdiffstats
path: root/scripts/check-git
diff options
context:
space:
mode:
authorMichael Tretter <m.tretter@pengutronix.de>2023-07-06 09:15:10 +0200
committerHans Verkuil <hverkuil-cisco@xs4all.nl>2023-07-25 09:31:48 +0200
commitb3b4c9d3cb3bf8725a3ded26f7042b1a37f25333 (patch)
tree05254ea4422927db45e3e51bf9bb59eb6ee7eccf /scripts/check-git
parent3194d514ea5133b269c07d403fd6ddb4e1016e92 (diff)
downloadlinux-stable-b3b4c9d3cb3bf8725a3ded26f7042b1a37f25333.tar.gz
linux-stable-b3b4c9d3cb3bf8725a3ded26f7042b1a37f25333.tar.bz2
linux-stable-b3b4c9d3cb3bf8725a3ded26f7042b1a37f25333.zip
media: verisilicon: Fix TRY_FMT on encoder OUTPUT
Commit f100ce3bbd6a ("media: verisilicon: Fix crash when probing encoder") removed vpu_fmt from hantro_try_fmt(), since it was initialized from vpu_dst_fmt, which may not be initialized, when TRY_FMT is called. It was replaced by fmt, which is found using the pixelformat. For the encoder, this changed the fmt to contain the raw format instead of the coded format. The format constraints as of fmt->frmsize are only valid for the coded format and are 0 for the raw formats. Therefore, the size of a encoder OUTPUT device is constrained to 0 and the v4l2-compliance tests for G_FMT, TRY_FMT, and SET_FMT fail. Bring back vpu_fmt to use the coded format on an encoder OUTPUT device, but initialize it using the currently set pixelformat on dst_fmt, which is the coded format on an encoder. Fixes: f100ce3bbd6a ("media: verisilicon: Fix crash when probing encoder") Signed-off-by: Michael Tretter <m.tretter@pengutronix.de> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Diffstat (limited to 'scripts/check-git')
0 files changed, 0 insertions, 0 deletions