Skip to content

Commit

Permalink
media: xilinx: csi2rxss: store format size
Browse files Browse the repository at this point in the history
Currently set_format does not store the dimensions when setting a
non-RAW format. Although they are irrelevant to the operation of the
CSI RX IP, this can cause link_validate to fail and also unexpected
results when calling get_format. Fix this by storing the format size.

Signed-off-by: Sam Bobrowicz <sam@elite-embedded.com>
Reviewed-by: Vishal Sagar <vishal.sagar@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
  • Loading branch information
sbobrowicz authored and Michal Simek committed Oct 15, 2018
1 parent ae16c64 commit 3534b0f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/media/platform/xilinx/xilinx-csi2rxss.c
Expand Up @@ -1327,6 +1327,8 @@ static int xcsi2rxss_set_format(struct v4l2_subdev *sd,
/* Restore the original pad format code */
fmt->format.code = code;
__format->code = code;
__format->width = fmt->format.width;
__format->height = fmt->format.height;
}

mutex_unlock(&xcsi2rxss->lock);
Expand Down

0 comments on commit 3534b0f

Please sign in to comment.