summaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb/frontends/it913x-fe.h
diff options
context:
space:
mode:
authorMalcolm Priestley <tvboxspy@gmail.com>2012-02-12 13:03:06 +0100
committerMauro Carvalho Chehab <mchehab@redhat.com>2012-03-08 12:53:39 +0100
commit6c5637e4eda58292f7d9ee6ee0b1f9aa4b0a7e7f (patch)
tree6af144c29824c2ba6b50811abd04798483f5d5c7 /drivers/media/dvb/frontends/it913x-fe.h
parent[media] it913x ver 1.27 Allow PID 8192 to turn PID filter off (diff)
downloadlinux-6c5637e4eda58292f7d9ee6ee0b1f9aa4b0a7e7f.tar.xz
linux-6c5637e4eda58292f7d9ee6ee0b1f9aa4b0a7e7f.zip
[media] it913x-fe ver 1.15 read signal strenght using reg VAR_P_INBAND
Read signal strength using VAR_P_INBAND and apply FEC preferred values. Note this does not work on IT9137 devices even with dvb-usb-it9135-01.fw firmware. Config read_sl allows switch between read signal strength and signal level. Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/dvb/frontends/it913x-fe.h')
-rw-r--r--drivers/media/dvb/frontends/it913x-fe.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/media/dvb/frontends/it913x-fe.h b/drivers/media/dvb/frontends/it913x-fe.h
index c4a908e354e0..07fa4594c12b 100644
--- a/drivers/media/dvb/frontends/it913x-fe.h
+++ b/drivers/media/dvb/frontends/it913x-fe.h
@@ -34,6 +34,8 @@ struct ite_config {
u8 tuner_id_1;
u8 dual_mode;
u8 adf;
+ /* option to read SIGNAL_LEVEL */
+ u8 read_slevel;
};
#if defined(CONFIG_DVB_IT913X_FE) || (defined(CONFIG_DVB_IT913X_FE_MODULE) && \
@@ -168,6 +170,8 @@ static inline struct dvb_frontend *it913x_fe_attach(
#define EST_SIGNAL_LEVEL 0x004a
#define FREE_BAND 0x004b
#define SUSPEND_FLAG 0x004c
+#define VAR_P_INBAND 0x00f7
+
/* Build in tuner types */
#define IT9137 0x38
#define IT9135_38 0x38