[media] r820t: add a commented code for GPIO
authorMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 10 Apr 2013 21:35:17 +0000 (18:35 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 17 Apr 2013 00:33:23 +0000 (21:33 -0300)
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>
drivers/media/tuners/r820t.c

index fa2e9ae48c982699cf63edf5da6255374fccdcbf..0125de897c8d45c8bd1f455f05ee10873d4a8218 100644 (file)
@@ -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
  *
This page took 0.026504 seconds and 5 git commands to generate.