mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 03:40:35 +09:00
media: rockchip: vicap fixed size err when get input format
rkcif-mipi-lvds: ERROR: csi size err,intstat:0x2000000, lastline:0!! rkcif-mipi-lvds: ERROR: csi size err,intstat:0x2000000, lastline:0!! rkcif-mipi-lvds: ERROR: csi size err,intstat:0x2000000, lastline:0!! Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com> Change-Id: I85f63687b178bf2ecaddc13f49f3191e8edab46d
This commit is contained in:
@@ -3702,10 +3702,16 @@ static int rkcif_sanity_check_fmt(struct rkcif_stream *stream,
|
||||
struct v4l2_device *v4l2_dev = &dev->v4l2_dev;
|
||||
struct v4l2_rect input, *crop;
|
||||
|
||||
stream->cif_fmt_in = get_input_fmt(dev->active_sensor->sd,
|
||||
&input, stream->id, &dev->channels[stream->id]);
|
||||
if (!stream->cif_fmt_in) {
|
||||
v4l2_err(v4l2_dev, "Input fmt is invalid\n");
|
||||
if (dev->terminal_sensor.sd) {
|
||||
stream->cif_fmt_in = get_input_fmt(dev->terminal_sensor.sd,
|
||||
&input, stream->id,
|
||||
&dev->channels[stream->id]);
|
||||
if (!stream->cif_fmt_in) {
|
||||
v4l2_err(v4l2_dev, "Input fmt is invalid\n");
|
||||
return -EINVAL;
|
||||
}
|
||||
} else {
|
||||
v4l2_err(v4l2_dev, "terminal_sensor is invalid\n");
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user