Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 333815
b: refs/heads/master
c: 1aeed35
h: refs/heads/master
i:
  333813: 8b82329
  333811: ab2dd6e
  333807: 0914bc7
v: v3
  • Loading branch information
Javier Martin authored and Mauro Carvalho Chehab committed Oct 6, 2012
1 parent 6d02571 commit 51b1564
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: eb3c311cde590cf28362019caafeb00a6d3e44db
refs/heads/master: 1aeed35575c39a4716cd7e0103cb1bb4fe6c8c8a
6 changes: 3 additions & 3 deletions trunk/drivers/media/platform/soc_camera/mx2_camera.c
Original file line number Diff line number Diff line change
Expand Up @@ -1376,6 +1376,7 @@ static int mx2_camera_try_fmt(struct soc_camera_device *icd,
__u32 pixfmt = pix->pixelformat;
struct soc_camera_host *ici = to_soc_camera_host(icd->parent);
struct mx2_camera_dev *pcdev = ici->priv;
struct mx2_fmt_cfg *emma_prp;
unsigned int width_limit;
int ret;

Expand Down Expand Up @@ -1438,12 +1439,11 @@ static int mx2_camera_try_fmt(struct soc_camera_device *icd,
__func__, pcdev->s_width, pcdev->s_height);

/* If the sensor does not support image size try PrP resizing */
pcdev->emma_prp = mx27_emma_prp_get_format(xlate->code,
emma_prp = mx27_emma_prp_get_format(xlate->code,
xlate->host_fmt->fourcc);

memset(pcdev->resizing, 0, sizeof(pcdev->resizing));
if ((mf.width != pix->width || mf.height != pix->height) &&
pcdev->emma_prp->cfg.in_fmt == PRP_CNTL_DATA_IN_YUV422) {
emma_prp->cfg.in_fmt == PRP_CNTL_DATA_IN_YUV422) {
if (mx2_emmaprp_resize(pcdev, &mf, pix, false) < 0)
dev_dbg(icd->parent, "%s: can't resize\n", __func__);
}
Expand Down

0 comments on commit 51b1564

Please sign in to comment.