]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
media: i2c: ov01a10: Fix passing stream instead of pad to v4l2_subdev_state_get_format()
authorHans de Goede <hansg@kernel.org>
Tue, 14 Oct 2025 17:40:13 +0000 (19:40 +0200)
committerHans Verkuil <hverkuil+cisco@kernel.org>
Tue, 13 Jan 2026 11:28:48 +0000 (12:28 +0100)
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>
Tested-by: Mehdi Djait <mehdi.djait@linux.intel.com> # Dell XPS 9315
Reviewed-by: Mehdi Djait <mehdi.djait@linux.intel.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
drivers/media/i2c/ov01a10.c

index 1e22df12989aee30eeaca3c29a154054dc26c568..dd2b6d381175adc4d9ca0dccec3919e71fd4a48d 100644 (file)
@@ -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;