mirror of
https://github.com/torvalds/linux.git
synced 2026-06-08 06:25:52 +02:00
media: rockchip: isp1: fix wrong fmt of isp_sd .get_fmt
The isp_sd .get_fmt of source pad return format of input by mistake. It should be the *out_fmt of isp_sd. Change-Id: I9f592a2906275ef58dc564d68de63aac393c8690 Signed-off-by: Shunqian Zheng <zhengsq@rock-chips.com>
This commit is contained in:
parent
6b7277f0a3
commit
d8a557f838
|
|
@ -691,7 +691,7 @@ static int rkisp1_isp_sd_get_fmt(struct v4l2_subdev *sd,
|
|||
*mf = isp_sd->in_frm;
|
||||
} else if (fmt->pad == RKISP1_ISP_PAD_SOURCE_PATH) {
|
||||
/* format of source pad */
|
||||
*mf = isp_sd->in_frm;
|
||||
mf->code = isp_sd->out_fmt.mbus_code;
|
||||
/* window size of source pad */
|
||||
mf->width = isp_sd->out_crop.width;
|
||||
mf->height = isp_sd->out_crop.height;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user