aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/tuners
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2013-04-10 17:35:17 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2013-04-16 20:33:23 -0400
commit6596e88043e2c55d934f43701c3ca9860f009b06 (patch)
tree2566e5a5a5cdb66eaaaa366d1850946f58014fa8 /drivers/media/tuners
parent25cf4d462abd6d78d224b564de82dcdab7973673 (diff)
[media] r820t: add a commented code for GPIO
Add the code to set the GPIO for this tuner. This code is currently unused, so it is kept there only for completeness. With this patch there are just two things that got left from the original driver: - At standby, there's another mode, not used by rtl2832u. Not sure if it might be needed in the future, but I suspect it is not used at all; - There is a "fast tune" mode. As nor DVB or V4L API supports it, it seems an overkill to implement it. Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com> Tested-by: Antti Palosaari <crope@iki.fi>
Diffstat (limited to 'drivers/media/tuners')
-rw-r--r--drivers/media/tuners/r820t.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/media/tuners/r820t.c b/drivers/media/tuners/r820t.c
index fa2e9ae48c98..0125de897c8d 100644
--- a/drivers/media/tuners/r820t.c
+++ b/drivers/media/tuners/r820t.c
@@ -2055,6 +2055,14 @@ static int r820t_imr_callibrate(struct r820t_priv *priv)
2055 return 0; 2055 return 0;
2056} 2056}
2057 2057
2058#if 0
2059/* Not used, for now */
2060static int r820t_gpio(struct r820t_priv *priv, bool enable)
2061{
2062 return r820t_write_reg_mask(priv, 0x0f, enable ? 1 : 0, 0x01);
2063}
2064#endif
2065
2058/* 2066/*
2059 * r820t frontend operations and tuner attach code 2067 * r820t frontend operations and tuner attach code
2060 * 2068 *