diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2010-08-04 13:38:08 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-08-04 13:38:08 -0400 |
commit | f63b759c44b0561c76a67894c734157df3313b42 (patch) | |
tree | 4e9638f6c1aa5c0faa62ad4213282cc7cb39772a /drivers/media/video/gspca/mars.c | |
parent | 4a35cee066df1b1958e25e71595b3845d06b192e (diff) | |
parent | 844a9e93d7fcd910cd94f6eb262e2cc43cacbe56 (diff) |
Merge branch 'v4l_for_2.6.35' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-2.6
* 'v4l_for_2.6.35' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-2.6: (243 commits)
V4L/DVB: sms: Convert IR support to use the Remote Controller core
V4L/DVB: sms: properly initialize IR phys and IR name
V4L/DVB: standardize names at rc-dib0700 tables
V4L/DVB: smsusb: enable IR port for Hauppauge WinTV MiniStick
V4L/DVB: dib0700: Fix RC protocol logic to properly handle NEC/NECx and RC-5
V4L/DVB: dib0700: properly implement IR change_protocol
V4L/DVB: dib0700: break keytable into NEC and RC-5 variants
V4L/DVB: dib0700: avoid bad repeat
V4L/DVB: Port dib0700 to rc-core
V4L/DVB: Add a keymap file with dib0700 table
V4L/DVB: dvb-usb: add support for rc-core mode
V4L/DVB: dvb-usb: prepare drivers for using rc-core
V4L/DVB: dvb-usb: get rid of struct dvb_usb_rc_key
V4L/DVB: rj54n1cb0c: fix a comment in the driver
V4L/DVB: V4L2: sh_vou: VOU does support the full PAL resolution too
V4L/DVB: V4L2: sh_mobile_camera_ceu: add support for CSI2
V4L/DVB: V4L2: soc-camera: add a MIPI CSI-2 driver for SH-Mobile platforms
V4L/DVB: V4L2: soc-camera: export soc-camera bus type for notifications
V4L/DVB: V4L2: mediabus: add 12-bit Bayer and YUV420 pixel formats
V4L/DVB: mediabus: fix ambiguous pixel code names
...
Diffstat (limited to 'drivers/media/video/gspca/mars.c')
-rw-r--r-- | drivers/media/video/gspca/mars.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/media/video/gspca/mars.c b/drivers/media/video/gspca/mars.c index 3d9229e22b25..031f7195ce0d 100644 --- a/drivers/media/video/gspca/mars.c +++ b/drivers/media/video/gspca/mars.c | |||
@@ -41,7 +41,7 @@ struct sd { | |||
41 | #define QUALITY_MAX 70 | 41 | #define QUALITY_MAX 70 |
42 | #define QUALITY_DEF 50 | 42 | #define QUALITY_DEF 50 |
43 | 43 | ||
44 | u8 *jpeg_hdr; | 44 | u8 jpeg_hdr[JPEG_HDR_SZ]; |
45 | }; | 45 | }; |
46 | 46 | ||
47 | /* V4L2 controls supported by the driver */ | 47 | /* V4L2 controls supported by the driver */ |
@@ -200,9 +200,6 @@ static int sd_start(struct gspca_dev *gspca_dev) | |||
200 | int i; | 200 | int i; |
201 | 201 | ||
202 | /* create the JPEG header */ | 202 | /* create the JPEG header */ |
203 | sd->jpeg_hdr = kmalloc(JPEG_HDR_SZ, GFP_KERNEL); | ||
204 | if (!sd->jpeg_hdr) | ||
205 | return -ENOMEM; | ||
206 | jpeg_define(sd->jpeg_hdr, gspca_dev->height, gspca_dev->width, | 203 | jpeg_define(sd->jpeg_hdr, gspca_dev->height, gspca_dev->width, |
207 | 0x21); /* JPEG 422 */ | 204 | 0x21); /* JPEG 422 */ |
208 | jpeg_set_qual(sd->jpeg_hdr, sd->quality); | 205 | jpeg_set_qual(sd->jpeg_hdr, sd->quality); |
@@ -317,13 +314,6 @@ static void sd_stopN(struct gspca_dev *gspca_dev) | |||
317 | PDEBUG(D_ERR, "Camera Stop failed"); | 314 | PDEBUG(D_ERR, "Camera Stop failed"); |
318 | } | 315 | } |
319 | 316 | ||
320 | static void sd_stop0(struct gspca_dev *gspca_dev) | ||
321 | { | ||
322 | struct sd *sd = (struct sd *) gspca_dev; | ||
323 | |||
324 | kfree(sd->jpeg_hdr); | ||
325 | } | ||
326 | |||
327 | static void sd_pkt_scan(struct gspca_dev *gspca_dev, | 317 | static void sd_pkt_scan(struct gspca_dev *gspca_dev, |
328 | u8 *data, /* isoc packet */ | 318 | u8 *data, /* isoc packet */ |
329 | int len) /* iso packet length */ | 319 | int len) /* iso packet length */ |
@@ -486,7 +476,6 @@ static const struct sd_desc sd_desc = { | |||
486 | .init = sd_init, | 476 | .init = sd_init, |
487 | .start = sd_start, | 477 | .start = sd_start, |
488 | .stopN = sd_stopN, | 478 | .stopN = sd_stopN, |
489 | .stop0 = sd_stop0, | ||
490 | .pkt_scan = sd_pkt_scan, | 479 | .pkt_scan = sd_pkt_scan, |
491 | .get_jcomp = sd_get_jcomp, | 480 | .get_jcomp = sd_get_jcomp, |
492 | .set_jcomp = sd_set_jcomp, | 481 | .set_jcomp = sd_set_jcomp, |