summaryrefslogtreecommitdiff
path: root/linux/drivers
diff options
context:
space:
mode:
authorJean-Francois Moine <moinejf@free.fr>2008-07-03 13:20:58 +0200
committerJean-Francois Moine <moinejf@free.fr>2008-07-03 13:20:58 +0200
commit7351f3bd89a0d621d0582d8836e04879f58bb68a (patch)
tree4bd307aa14610dd2ee7583a8c1de3e4a0d09fccc /linux/drivers
parent2dd61caa92b3da1a827cf5c84799ee51bd38d869 (diff)
downloadmediapointer-dvb-s2-7351f3bd89a0d621d0582d8836e04879f58bb68a.tar.gz
mediapointer-dvb-s2-7351f3bd89a0d621d0582d8836e04879f58bb68a.tar.bz2
gspca: Fix the format of the low resolution mode of spca561.
From: Hans de Goede <j.w.r.degoede@hhs.nl> The low (half) res modes of the spca561 are not spca561 compressed, but are raw bayer, this patches fixes this and adds a PIX_FMT define for the GBRG bayer format used by the spca561 in low res mode. Signed-off-by: Hans de Goede <j.w.r.degoede@hhs.nl> Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Diffstat (limited to 'linux/drivers')
-rw-r--r--linux/drivers/media/video/gspca/spca561.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/linux/drivers/media/video/gspca/spca561.c b/linux/drivers/media/video/gspca/spca561.c
index a94e62701..dbd1648a6 100644
--- a/linux/drivers/media/video/gspca/spca561.c
+++ b/linux/drivers/media/video/gspca/spca561.c
@@ -98,8 +98,8 @@ static struct ctrl sd_ctrls[] = {
};
static struct cam_mode sif_mode[] = {
- {V4L2_PIX_FMT_SPCA561, 160, 120, 3},
- {V4L2_PIX_FMT_SPCA561, 176, 144, 2},
+ {V4L2_PIX_FMT_SGBRG8, 160, 120, 3},
+ {V4L2_PIX_FMT_SGBRG8, 176, 144, 2},
{V4L2_PIX_FMT_SPCA561, 320, 240, 1},
{V4L2_PIX_FMT_SPCA561, 352, 288, 0},
};
@@ -808,7 +808,7 @@ static void sd_pkt_scan(struct gspca_dev *gspca_dev,
gspca_frame_add(gspca_dev, FIRST_PACKET,
frame, data, len);
} else {
- /*fixme: which format?*/
+ /* raw bayer (with a header, which we skip) */
data += 20;
len -= 20;
gspca_frame_add(gspca_dev, FIRST_PACKET,