aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/em28xx/em28xx-cards.c
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2008-11-27 07:10:40 -0500
committerMauro Carvalho Chehab <mchehab@redhat.com>2008-12-29 14:53:43 -0500
commit2fe3e2ee72ef17daad1d3769321bb7dd69a003a9 (patch)
tree1d2e7a225417759a5ad55408d76416af5e7e6eb8 /drivers/media/video/em28xx/em28xx-cards.c
parentf502e861849ade3a128964410c87acedf437a6a1 (diff)
V4L/DVB (9764): em28xx: Add support for suspend the device when not used
Several chips may be turned off when the device is not used, like audio, video and dvb demods. This patch adds a gpio callback at the core structs to allow turning off such devices. Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/em28xx/em28xx-cards.c')
-rw-r--r--drivers/media/video/em28xx/em28xx-cards.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/video/em28xx/em28xx-cards.c b/drivers/media/video/em28xx/em28xx-cards.c
index be78485c1664..a4b61e5a7635 100644
--- a/drivers/media/video/em28xx/em28xx-cards.c
+++ b/drivers/media/video/em28xx/em28xx-cards.c
@@ -1456,7 +1456,7 @@ void em28xx_pre_card_setup(struct em28xx *dev)
1456 em28xx_set_mode(dev, EM28XX_ANALOG_MODE); 1456 em28xx_set_mode(dev, EM28XX_ANALOG_MODE);
1457 1457
1458 /* Unlock device */ 1458 /* Unlock device */
1459 em28xx_set_mode(dev, EM28XX_MODE_UNDEFINED); 1459 em28xx_set_mode(dev, EM28XX_SUSPEND);
1460} 1460}
1461 1461
1462static void em28xx_setup_xc3028(struct em28xx *dev, struct xc2028_ctrl *ctl) 1462static void em28xx_setup_xc3028(struct em28xx *dev, struct xc2028_ctrl *ctl)