]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
media: visl: Fix ERANGE error when setting enum controls
authorNicolas Dufresne <nicolas.dufresne@collabora.com>
Tue, 10 Dec 2024 21:02:53 +0000 (16:02 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 25 Apr 2025 08:45:23 +0000 (10:45 +0200)
commitbedb5a7b97830dd8437e482f6433b62f2f380c0c
tree1677405f59c2c91ca0f933d589224c06097cf80e
parent3eaf580cbaa35157aeff90cebd58edffa68ad800
media: visl: Fix ERANGE error when setting enum controls

commit d98e9213a768a3cc3a99f5e1abe09ad3baff2104 upstream.

The visl driver supports both frame and slice mode, with and without a
start-code. But, the range and default for these enum controls was not
set, which currently limits the decoder to enums with a value of 0. Fix
this by setting the decoder mode and start code controls for both the
H.264 and HEVC codecs.

Fixes: 0c078e310b6d ("media: visl: add virtual stateless decoder driver")
Cc: stable@vger.kernel.org
Signed-off-by: Nicolas Dufresne <nicolas.dufresne@collabora.com>
Signed-off-by: Sebastian Fricke <sebastian.fricke@collabora.com>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/media/test-drivers/visl/visl-core.c