mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 11:26:02 +09:00
media: i2c: sensor adapter fixed get_selection bug
Fixed: 0ea608c ("media: i2c: sensor adapter fixed get_selection error")
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: Ie84a776f6b02d56014ae706e3e72af8e1ffa74ed
This commit is contained in:
@@ -1045,8 +1045,8 @@ static int sensor_get_selection(struct v4l2_subdev *sd,
|
||||
sensor->crop.top, sensor->crop.height);
|
||||
} else {
|
||||
sel->r.left = 0;
|
||||
sel->r.width = 0;
|
||||
sel->r.top = sensor->cur_mode->width;
|
||||
sel->r.width = sensor->cur_mode->width;
|
||||
sel->r.top = 0;
|
||||
sel->r.height = sensor->cur_mode->height;
|
||||
}
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user