aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/pwc/pwc-uncompress.c
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil@xs4all.nl>2010-09-12 16:05:11 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2010-10-20 23:05:57 -0400
commit479567ce3af7b99d645a3c53b8ca2fc65e46efdc (patch)
treed16fd87d5eec337c82fd195cd03ed301e883b68f /drivers/media/video/pwc/pwc-uncompress.c
parenta1de2e4b72f27b906cb2eea3003fd62377dbf5ea (diff)
V4L/DVB: pwc: fully convert driver to V4L2
Remove the V4L1 API from this driver, making it fully V4L2. Also fix a bug where the /dev/videoX device was created too early, which led to initialization problems of the camera, making it unable to capture video. Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/pwc/pwc-uncompress.c')
-rw-r--r--drivers/media/video/pwc/pwc-uncompress.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/video/pwc/pwc-uncompress.c b/drivers/media/video/pwc/pwc-uncompress.c
index 5d82028ef942..3b73f295f032 100644
--- a/drivers/media/video/pwc/pwc-uncompress.c
+++ b/drivers/media/video/pwc/pwc-uncompress.c
@@ -54,7 +54,7 @@ int pwc_decompress(struct pwc_device *pdev)
54 yuv = fbuf->data + pdev->frame_header_size; /* Skip header */ 54 yuv = fbuf->data + pdev->frame_header_size; /* Skip header */
55 55
56 /* Raw format; that's easy... */ 56 /* Raw format; that's easy... */
57 if (pdev->vpalette == VIDEO_PALETTE_RAW) 57 if (pdev->pixfmt != V4L2_PIX_FMT_YUV420)
58 { 58 {
59 struct pwc_raw_frame *raw_frame = image; 59 struct pwc_raw_frame *raw_frame = image;
60 raw_frame->type = cpu_to_le16(pdev->type); 60 raw_frame->type = cpu_to_le16(pdev->type);