V4L/DVB (11805): au0828: send command to power down tuner when done with analog
authorDevin Heitmueller <dheitmueller@kernellabs.com>
Wed, 6 May 2009 23:54:00 +0000 (20:54 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 16 Jun 2009 21:21:07 +0000 (18:21 -0300)
Make sure the au0828 issues the command to power down the tuner when the
user is done using analog support.

Signed-off-by: Devin Heitmueller <dheitmueller@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/au0828/au0828-video.c

index 27bedc6c779114da92758f7efb494fa3ca6582f0..f42f3deaa03b21b90169f50f88de0ab20a36d0fb 100644 (file)
@@ -829,6 +829,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);