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:
Shunqian Zheng 2018-07-14 10:57:26 +08:00 committed by Tao Huang
parent 6b7277f0a3
commit d8a557f838

View File

@ -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;