mirror of
https://github.com/torvalds/linux.git
synced 2026-06-06 05:27:07 +02:00
media: i2c: ov01a10: Fix passing stream instead of pad to v4l2_subdev_state_get_format()
The 2 argument version of v4l2_subdev_state_get_format() takes the pad
as second argument, not the stream.
Fixes: bc0e8d91fe ("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>
This commit is contained in:
parent
0dfec6e30c
commit
f8563a375e
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user