V4L/DVB (11790): xc5000: restore sleep routine
authorDevin Heitmueller <devin.heitmueller@gmail.com>
Sun, 16 Nov 2008 23:41:07 +0000 (20:41 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 16 Jun 2009 21:21:05 +0000 (18:21 -0300)
commit8e4c67972e6c7d65903a31a2d9969da38157860b
treef131f55e7b98d362469c1768bffdf548e7a356a4
parent7988fc216d41dfc8325d192360ccb702736b3e69
V4L/DVB (11790): xc5000: restore sleep routine

Bring back the code that puts the xc5000 to sleep.  For the Pinnacle 801e
this results in power consumption at idle dropping from 325ma to 124ma.

If there are *actually* any devices that don't work in this configuration,
they should set dvb_frontend.ops.tuner_ops.sleep to NULL (per mkrufky's
suggestion)

Also, had to make sure we were making sure the firmware was loaded in the
digital version of set_params, or else we end up get i2c errors if the
device is asleep

Signed-off-by: Devin Heitmueller <devin.heitmueller@gmail.com>
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/common/tuners/xc5000.c