Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 219205
b: refs/heads/master
c: 7c3a206
h: refs/heads/master
i:
  219203: 4a13d85
v: v3
  • Loading branch information
Michael Grzeschik authored and Mauro Carvalho Chehab committed Oct 21, 2010
1 parent d068d3b commit 5eda9d0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 11 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: ec73365bd47bb7e113f66d0d617676722c9447b1
refs/heads/master: 7c3a2066aa99b9e6c725803fd153ee8895219dba
15 changes: 5 additions & 10 deletions trunk/drivers/media/video/mx2_camera.c
Original file line number Diff line number Diff line change
Expand Up @@ -716,8 +716,11 @@ static void mx27_camera_emma_buf_init(struct soc_camera_device *icd,
/*
* We only use the EMMA engine to get rid of the broken
* DMA Engine. No color space consversion at the moment.
* We adjust incoming and outgoing pixelformat to rgb16
* and adjust the bytesperline accordingly.
* We set the incomming and outgoing pixelformat to an
* 16 Bit wide format and adjust the bytesperline
* accordingly. With this configuration the inputdata
* will not be changed by the emma and could be any type
* of 16 Bit Pixelformat.
*/
writel(PRP_CNTL_CH1EN |
PRP_CNTL_CSIEN |
Expand Down Expand Up @@ -903,10 +906,6 @@ static int mx2_camera_set_fmt(struct soc_camera_device *icd,
return -EINVAL;
}

/* eMMA can only do RGB565 */
if (mx27_camera_emma(pcdev) && pix->pixelformat != V4L2_PIX_FMT_RGB565)
return -EINVAL;

mf.width = pix->width;
mf.height = pix->height;
mf.field = pix->field;
Expand Down Expand Up @@ -950,10 +949,6 @@ static int mx2_camera_try_fmt(struct soc_camera_device *icd,

/* FIXME: implement MX27 limits */

/* eMMA can only do RGB565 */
if (mx27_camera_emma(pcdev) && pixfmt != V4L2_PIX_FMT_RGB565)
return -EINVAL;

/* limit to MX25 hardware capabilities */
if (cpu_is_mx25()) {
if (xlate->host_fmt->bits_per_sample <= 8)
Expand Down

0 comments on commit 5eda9d0

Please sign in to comment.