The 2 argument version of v4l2_subdev_state_get_format() takes the pad as second argument, not the stream.
Fixes: bc0e8d91feec ("media: v4l: subdev: Switch to stream-aware state functions") Cc: stable@vger.kernel.org Signed-off-by: Hans de Goede hansg@kernel.org --- Note the problem pre-exists the Fixes: commit but backporting further will require manual backports and seems unnecessary. --- drivers/media/i2c/ov01a10.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/media/i2c/ov01a10.c b/drivers/media/i2c/ov01a10.c index f92867f542f0..0405ec7c75fd 100644 --- a/drivers/media/i2c/ov01a10.c +++ b/drivers/media/i2c/ov01a10.c @@ -731,7 +731,7 @@ static int ov01a10_set_format(struct v4l2_subdev *sd, h_blank); }
- format = v4l2_subdev_state_get_format(sd_state, fmt->stream); + format = v4l2_subdev_state_get_format(sd_state, fmt->pad); *format = fmt->format;
return 0;
Hi Hans,
Thank you for the patches!
On Tue, Oct 14, 2025 at 07:40:13PM +0200, Hans de Goede wrote:
The 2 argument version of v4l2_subdev_state_get_format() takes the pad as second argument, not the stream.
Tested-by: Mehdi Djait mehdi.djait@linux.intel.com # Dell XPS 9315 Reviewed-by: Mehdi Djait mehdi.djait@linux.intel.com
Fixes: bc0e8d91feec ("media: v4l: subdev: Switch to stream-aware state functions") Cc: stable@vger.kernel.org Signed-off-by: Hans de Goede hansg@kernel.org
linux-stable-mirror@lists.linaro.org