aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb/frontends/stv090x_priv.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/dvb/frontends/stv090x_priv.h')
-rw-r--r--drivers/media/dvb/frontends/stv090x_priv.h33
1 files changed, 14 insertions, 19 deletions
diff --git a/drivers/media/dvb/frontends/stv090x_priv.h b/drivers/media/dvb/frontends/stv090x_priv.h
index 9d536226e9f3..5a4a01740d88 100644
--- a/drivers/media/dvb/frontends/stv090x_priv.h
+++ b/drivers/media/dvb/frontends/stv090x_priv.h
@@ -77,7 +77,18 @@
77 77
78#define MAKEWORD16(__a, __b) (((__a) << 8) | (__b)) 78#define MAKEWORD16(__a, __b) (((__a) << 8) | (__b))
79 79
80#define STV090x_SEARCH_AGC2_TH 700 80#define MSB(__x) ((__x >> 8) & 0xff)
81#define LSB(__x) (__x & 0xff)
82
83
84#define STV090x_IQPOWER_THRESHOLD 30
85#define STV090x_SEARCH_AGC2_TH_CUT20 700
86#define STV090x_SEARCH_AGC2_TH_CUT30 1200
87
88#define STV090x_SEARCH_AGC2_TH(__ver) \
89 ((__ver <= 0x20) ? \
90 STV090x_SEARCH_AGC2_TH_CUT20 : \
91 STV090x_SEARCH_AGC2_TH_CUT30)
81 92
82enum stv090x_signal_state { 93enum stv090x_signal_state {
83 STV090x_NOCARRIER, 94 STV090x_NOCARRIER,
@@ -201,24 +212,8 @@ struct stv090x_long_frame_crloop {
201struct stv090x_short_frame_crloop { 212struct stv090x_short_frame_crloop {
202 enum stv090x_modulation modulation; 213 enum stv090x_modulation modulation;
203 214
204 u8 crl_cut12_2; /* Cut 1.2, SR <= 3M */ 215 u8 crl_2; /* SR < 3M */
205 u8 crl_cut20_2; /* Cut 2.0, SR < 3M */ 216 u8 crl_5; /* 3 < SR <= 7M */
206 u8 crl_cut12_5; /* Cut 1.2, 3 < SR <= 7M */
207 u8 crl_cut20_5; /* Cut 2.0, 3 < SR <= 7M */
208 u8 crl_cut12_10; /* Cut 1.2, 7 < SR <= 15M */
209 u8 crl_cut20_10; /* Cut 2.0, 7 < SR <= 15M */
210 u8 crl_cut12_20; /* Cut 1.2, 10 < SR <= 25M */
211 u8 crl_cut20_20; /* Cut 2.0, 10 < SR <= 25M */
212 u8 crl_cut12_30; /* Cut 1.2, 25 < SR <= 45M */
213 u8 crl_cut20_30; /* Cut 2.0, 10 < SR <= 45M */
214};
215
216
217struct stv090x_short_frame_vsmod_crloop {
218 enum stv090x_modulation modulation;
219
220 u8 crl_2; /* < 3M */
221 u8 crl_5; /* 3 < SR <= 7M */
222 u8 crl_10; /* 7 < SR <= 15M */ 217 u8 crl_10; /* 7 < SR <= 15M */
223 u8 crl_20; /* 10 < SR <= 25M */ 218 u8 crl_20; /* 10 < SR <= 25M */
224 u8 crl_30; /* 10 < SR <= 45M */ 219 u8 crl_30; /* 10 < SR <= 45M */