diff options
author | Hans de Goede <hdegoede@redhat.com> | 2011-12-31 08:52:02 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2012-01-06 07:45:47 -0500 |
commit | dc8a7e83aaf8bb1bcf7163bda8926a6dd29c409b (patch) | |
tree | a6f304a0d6a6d4c3883d3bc0865a68eaede3692d /drivers/media/video/pwc/pwc-uncompress.c | |
parent | 115f418bfa7575fbd1422d7fd274a2425260beb2 (diff) |
[media] pwc: Remove dead snapshot code
The in kernel version of the pwc driver has never supported snapshot
mode, and now that we no longer support the pixfmt.priv abuse there also
no longer is a way for userspace to request it, rendering all the code in
question dead (never called), so remove it.
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
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.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/drivers/media/video/pwc/pwc-uncompress.c b/drivers/media/video/pwc/pwc-uncompress.c index 51265092bd31..e55b568cbf3d 100644 --- a/drivers/media/video/pwc/pwc-uncompress.c +++ b/drivers/media/video/pwc/pwc-uncompress.c | |||
@@ -111,12 +111,6 @@ int pwc_decompress(struct pwc_device *pdev, struct pwc_frame_buf *fbuf) | |||
111 | * the decompressor routines will write the data in planar format | 111 | * the decompressor routines will write the data in planar format |
112 | * immediately. | 112 | * immediately. |
113 | */ | 113 | */ |
114 | if (pdev->vsize == PSZ_VGA && pdev->vframes == 5 && pdev->vsnapshot) { | ||
115 | PWC_ERROR("Mode Bayer is not supported for now\n"); | ||
116 | /* flags |= PWCX_FLAG_BAYER; */ | ||
117 | return -ENXIO; /* No such device or address: missing decompressor */ | ||
118 | } | ||
119 | |||
120 | if (DEVICE_USE_CODEC1(pdev->type)) { | 114 | if (DEVICE_USE_CODEC1(pdev->type)) { |
121 | 115 | ||
122 | /* TODO & FIXME */ | 116 | /* TODO & FIXME */ |
@@ -124,7 +118,7 @@ int pwc_decompress(struct pwc_device *pdev, struct pwc_frame_buf *fbuf) | |||
124 | return -ENXIO; /* No such device or address: missing decompressor */ | 118 | return -ENXIO; /* No such device or address: missing decompressor */ |
125 | 119 | ||
126 | } else { | 120 | } else { |
127 | pwc_dec23_decompress(pdev, yuv, image, PWCX_FLAG_PLANAR); | 121 | pwc_dec23_decompress(pdev, yuv, image); |
128 | } | 122 | } |
129 | return 0; | 123 | return 0; |
130 | } | 124 | } |