diff options
author | Malcolm Priestley <tvboxspy@gmail.com> | 2012-02-12 07:03:06 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2012-03-08 06:53:39 -0500 |
commit | 6c5637e4eda58292f7d9ee6ee0b1f9aa4b0a7e7f (patch) | |
tree | 6af144c29824c2ba6b50811abd04798483f5d5c7 /drivers/media/dvb/frontends/it913x-fe.h | |
parent | aaa589fc5e768eb8df1a7552e37f9c767ce5e384 (diff) |
[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.h | 4 |
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 { | |||
34 | u8 tuner_id_1; | 34 | u8 tuner_id_1; |
35 | u8 dual_mode; | 35 | u8 dual_mode; |
36 | u8 adf; | 36 | u8 adf; |
37 | /* option to read SIGNAL_LEVEL */ | ||
38 | u8 read_slevel; | ||
37 | }; | 39 | }; |
38 | 40 | ||
39 | #if defined(CONFIG_DVB_IT913X_FE) || (defined(CONFIG_DVB_IT913X_FE_MODULE) && \ | 41 | #if defined(CONFIG_DVB_IT913X_FE) || (defined(CONFIG_DVB_IT913X_FE_MODULE) && \ |
@@ -168,6 +170,8 @@ static inline struct dvb_frontend *it913x_fe_attach( | |||
168 | #define EST_SIGNAL_LEVEL 0x004a | 170 | #define EST_SIGNAL_LEVEL 0x004a |
169 | #define FREE_BAND 0x004b | 171 | #define FREE_BAND 0x004b |
170 | #define SUSPEND_FLAG 0x004c | 172 | #define SUSPEND_FLAG 0x004c |
173 | #define VAR_P_INBAND 0x00f7 | ||
174 | |||
171 | /* Build in tuner types */ | 175 | /* Build in tuner types */ |
172 | #define IT9137 0x38 | 176 | #define IT9137 0x38 |
173 | #define IT9135_38 0x38 | 177 | #define IT9135_38 0x38 |