diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2010-02-26 20:16:20 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-02-26 20:16:20 -0500 |
commit | 2b8c70b2174402ca3dec13310ce56597233392d7 (patch) | |
tree | 0aed464521a2a671cbb7b4302b55fe72abc95d3d /drivers/media/dvb/dvb-core | |
parent | 29e1fa3565a7951cc415c634eb2b78dbdbee151d (diff) | |
parent | 3621263a4d9679726b7bc1e2546c1c03941a59b4 (diff) |
Merge branch 'v4l_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-2.6
* 'v4l_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-2.6: (362 commits)
V4L-DVB: cx88-dvb: remove extra attribution for core
V4L/DVB: v4l: soc_camera: fix bound checking of mbus_fmt[] index
V4L/DVB: Add support for SMT7020 to cx88
V4L/DVB: radio-si470x: Use UTF-8 encoding on a comment
V4L/DVB: MAINTAINERS: Telegent tlg2300 section fix
V4L/DVB: gspca_stv06xx: Add support for camera button
V4L/DVB: gspca_ov519: add support for the button on ov511 based cams
V4L/DVB: gspca_ov519: Add support for the button on ov518 based cams
V4L/DVB: gspca_ov519: add support for the button on ov519 based cams
V4L/DVB: gspca_main: Fix a compile error when CONFIG_INPUT is not set
V4L/DVB: gspca_main: some input error handling fixes
V4L/DVB: gspca_main: Allow use of input device creation code for non int. inputs
V4L/DVB: gspca_pac7302: much improved exposure control
V4L/DVB: gspca_sonixb: Make sonixb driver handle pas106 and pas202 cameras
V4L/DVB: gspca_sonixb: pas106: fixup bright ctrl and add gain and exposure ctrls
V4L/DVB: Documentation: gspca.txt: update known mr97310a cams
V4L/DVB: gspca_mr97310a: add support for the Sakar 1638x CyberPix
V4L/DVB: gscpa_sonixb: limit ov7630 max framerate at 640x480
V4L/DVB: gspca_sonixb: pas202: fixup brightness ctrl and add gain and exposure ctrls
V4L/DVB: gscpa_sonixb: Differentiate between sensors with a coarse and fine expo ctrl
...
Diffstat (limited to 'drivers/media/dvb/dvb-core')
-rw-r--r-- | drivers/media/dvb/dvb-core/dvb_frontend.c | 12 | ||||
-rw-r--r-- | drivers/media/dvb/dvb-core/dvb_ringbuffer.c | 1 |
2 files changed, 6 insertions, 7 deletions
diff --git a/drivers/media/dvb/dvb-core/dvb_frontend.c b/drivers/media/dvb/dvb-core/dvb_frontend.c index 07461222a7f5..55ea260572bf 100644 --- a/drivers/media/dvb/dvb-core/dvb_frontend.c +++ b/drivers/media/dvb/dvb-core/dvb_frontend.c | |||
@@ -1199,8 +1199,6 @@ static int dtv_property_process_get(struct dvb_frontend *fe, | |||
1199 | { | 1199 | { |
1200 | int r = 0; | 1200 | int r = 0; |
1201 | 1201 | ||
1202 | dtv_property_dump(tvp); | ||
1203 | |||
1204 | /* Allow the frontend to validate incoming properties */ | 1202 | /* Allow the frontend to validate incoming properties */ |
1205 | if (fe->ops.get_property) | 1203 | if (fe->ops.get_property) |
1206 | r = fe->ops.get_property(fe, tvp); | 1204 | r = fe->ops.get_property(fe, tvp); |
@@ -1323,6 +1321,8 @@ static int dtv_property_process_get(struct dvb_frontend *fe, | |||
1323 | r = -1; | 1321 | r = -1; |
1324 | } | 1322 | } |
1325 | 1323 | ||
1324 | dtv_property_dump(tvp); | ||
1325 | |||
1326 | return r; | 1326 | return r; |
1327 | } | 1327 | } |
1328 | 1328 | ||
@@ -1488,7 +1488,7 @@ static int dvb_frontend_ioctl(struct inode *inode, struct file *file, | |||
1488 | struct dvb_frontend_private *fepriv = fe->frontend_priv; | 1488 | struct dvb_frontend_private *fepriv = fe->frontend_priv; |
1489 | int err = -EOPNOTSUPP; | 1489 | int err = -EOPNOTSUPP; |
1490 | 1490 | ||
1491 | dprintk ("%s\n", __func__); | 1491 | dprintk("%s (%d)\n", __func__, _IOC_NR(cmd)); |
1492 | 1492 | ||
1493 | if (fepriv->exit) | 1493 | if (fepriv->exit) |
1494 | return -ENODEV; | 1494 | return -ENODEV; |
@@ -1536,8 +1536,7 @@ static int dvb_frontend_ioctl_properties(struct inode *inode, struct file *file, | |||
1536 | if ((tvps->num == 0) || (tvps->num > DTV_IOCTL_MAX_MSGS)) | 1536 | if ((tvps->num == 0) || (tvps->num > DTV_IOCTL_MAX_MSGS)) |
1537 | return -EINVAL; | 1537 | return -EINVAL; |
1538 | 1538 | ||
1539 | tvp = (struct dtv_property *) kmalloc(tvps->num * | 1539 | tvp = kmalloc(tvps->num * sizeof(struct dtv_property), GFP_KERNEL); |
1540 | sizeof(struct dtv_property), GFP_KERNEL); | ||
1541 | if (!tvp) { | 1540 | if (!tvp) { |
1542 | err = -ENOMEM; | 1541 | err = -ENOMEM; |
1543 | goto out; | 1542 | goto out; |
@@ -1569,8 +1568,7 @@ static int dvb_frontend_ioctl_properties(struct inode *inode, struct file *file, | |||
1569 | if ((tvps->num == 0) || (tvps->num > DTV_IOCTL_MAX_MSGS)) | 1568 | if ((tvps->num == 0) || (tvps->num > DTV_IOCTL_MAX_MSGS)) |
1570 | return -EINVAL; | 1569 | return -EINVAL; |
1571 | 1570 | ||
1572 | tvp = (struct dtv_property *) kmalloc(tvps->num * | 1571 | tvp = kmalloc(tvps->num * sizeof(struct dtv_property), GFP_KERNEL); |
1573 | sizeof(struct dtv_property), GFP_KERNEL); | ||
1574 | if (!tvp) { | 1572 | if (!tvp) { |
1575 | err = -ENOMEM; | 1573 | err = -ENOMEM; |
1576 | goto out; | 1574 | goto out; |
diff --git a/drivers/media/dvb/dvb-core/dvb_ringbuffer.c b/drivers/media/dvb/dvb-core/dvb_ringbuffer.c index 584bbd194dc8..a5712cd7c65f 100644 --- a/drivers/media/dvb/dvb-core/dvb_ringbuffer.c +++ b/drivers/media/dvb/dvb-core/dvb_ringbuffer.c | |||
@@ -89,6 +89,7 @@ void dvb_ringbuffer_flush(struct dvb_ringbuffer *rbuf) | |||
89 | rbuf->pread = rbuf->pwrite; | 89 | rbuf->pread = rbuf->pwrite; |
90 | rbuf->error = 0; | 90 | rbuf->error = 0; |
91 | } | 91 | } |
92 | EXPORT_SYMBOL(dvb_ringbuffer_flush); | ||
92 | 93 | ||
93 | void dvb_ringbuffer_reset(struct dvb_ringbuffer *rbuf) | 94 | void dvb_ringbuffer_reset(struct dvb_ringbuffer *rbuf) |
94 | { | 95 | { |