summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/au0828
diff options
context:
space:
mode:
authorDevin Heitmueller <dheitmueller@kernellabs.com>2009-05-06 19:54:00 -0400
committerDevin Heitmueller <dheitmueller@kernellabs.com>2009-05-06 19:54:00 -0400
commita46ec326b79a229fdb0205fa793525ba8d234907 (patch)
tree4f65bdb5dbc939be9996e09d3d9830682b634ecc /linux/drivers/media/video/au0828
parentc69585fadf77969b8eb7eee245fcb38f300227dd (diff)
downloadmediapointer-dvb-s2-a46ec326b79a229fdb0205fa793525ba8d234907.tar.gz
mediapointer-dvb-s2-a46ec326b79a229fdb0205fa793525ba8d234907.tar.bz2
au0828: send command to power down tuner when done with analog
From: Devin Heitmueller <dheitmueller@kernellabs.com> Make sure the au0828 issues the command to power down the tuner when the user is done using analog support. Priority: normal Signed-off-by: Devin Heitmueller <dheitmueller@kernellabs.com>
Diffstat (limited to 'linux/drivers/media/video/au0828')
-rw-r--r--linux/drivers/media/video/au0828/au0828-video.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/linux/drivers/media/video/au0828/au0828-video.c b/linux/drivers/media/video/au0828/au0828-video.c
index 8bc0f0481..f73212415 100644
--- a/linux/drivers/media/video/au0828/au0828-video.c
+++ b/linux/drivers/media/video/au0828/au0828-video.c
@@ -834,6 +834,9 @@ static int au0828_v4l2_close(struct file *filp)
au0828_uninit_isoc(dev);
+ /* Save some power by putting tuner to sleep */
+ v4l2_device_call_all(&dev->v4l2_dev, 0, tuner, s_standby);
+
/* When close the device, set the usb intf0 into alt0 to free
USB bandwidth */
ret = usb_set_interface(dev->usbdev, 0, 0);