summaryrefslogtreecommitdiffstats
path: root/drivers/media
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2013-04-10 18:35:17 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2013-04-16 21:33:23 -0300
commit6596e88043e2c55d934f43701c3ca9860f009b06 (patch)
tree2566e5a5a5cdb66eaaaa366d1850946f58014fa8 /drivers/media
parent25cf4d462abd6d78d224b564de82dcdab7973673 (diff)
downloadlinux-6596e88043e2c55d934f43701c3ca9860f009b06.tar.bz2
[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')
-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)
return 0;
}
+#if 0
+/* Not used, for now */
+static int r820t_gpio(struct r820t_priv *priv, bool enable)
+{
+ return r820t_write_reg_mask(priv, 0x0f, enable ? 1 : 0, 0x01);
+}
+#endif
+
/*
* r820t frontend operations and tuner attach code
*