[media] mt2060: implement sleep
authorAntti Palosaari <crope@iki.fi>
Fri, 9 Dec 2016 17:11:09 +0000 (15:11 -0200)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Fri, 3 Feb 2017 08:55:46 +0000 (06:55 -0200)
commite11415c811047189a132c61c4c838ed7fd8431c8
tree062d6b6e594302ca1e74908c281316d9703d0c44
parentd4c554c374f3b7dd1d4e2560c303f050b318420b
[media] mt2060: implement sleep

I saw from ZyDAS ZD1301 sniffs it sets chip sleeping by using
REG_MISC_CTRL. That has very huge effect for power management, around
0.9W. Sleep is still disabled for all the old hardware just to avoid
possible regression as meaning of register bits are unknown.

I tested it also with some other devices and it seems to be working,
but I still consider it to be too risky to change it default.

Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/tuners/mt2060.c
drivers/media/tuners/mt2060_priv.h