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:Michael 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:
Greg Kroah-Hartman <gregkh@linuxfoundation.org> (cherry picked from commit 181babf7) Bug: 259171206 Change-Id: I404c8d01dc53dcf3b400c0f9e1888992d9f65db8 Signed-off-by:
Avichal Rakesh <arakesh@google.com>
Loading