Commit 85b63704 authored by Michael Grzeschik's avatar Michael Grzeschik Committed by Treehugger Robot
Browse files

UPSTREAM: usb: gadget: uvc: also use try_format in set_format



Since e219a712 (usb: gadget: uvc: add v4l2 try_format api call) the
try_format function is available. With this function includes checks for
valid configurations programmed in the configfs. We use this function to
ensure to return valid values on the set_format callback.

Signed-off-by: default avatarMichael Grzeschik <m.grzeschik@pengutronix.de>
Fixes: e219a712 ("usb: gadget: uvc: add v4l2 try_format api call")
Link: https://lore.kernel.org/r/20221026182240.363055-1-m.grzeschik@pengutronix.de


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>

(cherry picked from commit 181babf7)
Bug: 259171206
Change-Id: I404c8d01dc53dcf3b400c0f9e1888992d9f65db8
Signed-off-by: default avatarAvichal Rakesh <arakesh@google.com>
(cherry picked from commit f64a2b78)
parent 0a1c1e4f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment