diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/media/dvb-frontends/cx24110.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/media/dvb-frontends/cx24110.c b/drivers/media/dvb-frontends/cx24110.c index 95b981cd7115..e78e7893e8aa 100644 --- a/drivers/media/dvb-frontends/cx24110.c +++ b/drivers/media/dvb-frontends/cx24110.c | |||
@@ -181,16 +181,16 @@ static int cx24110_set_fec (struct cx24110_state* state, fe_code_rate_t fec) | |||
181 | { | 181 | { |
182 | /* fixme (low): error handling */ | 182 | /* fixme (low): error handling */ |
183 | 183 | ||
184 | static const int rate[]={-1,1,2,3,5,7,-1}; | 184 | static const int rate[FEC_AUTO] = {-1, 1, 2, 3, 5, 7, -1}; |
185 | static const int g1[]={-1,0x01,0x02,0x05,0x15,0x45,-1}; | 185 | static const int g1[FEC_AUTO] = {-1, 0x01, 0x02, 0x05, 0x15, 0x45, -1}; |
186 | static const int g2[]={-1,0x01,0x03,0x06,0x1a,0x7a,-1}; | 186 | static const int g2[FEC_AUTO] = {-1, 0x01, 0x03, 0x06, 0x1a, 0x7a, -1}; |
187 | 187 | ||
188 | /* Well, the AutoAcq engine of the cx24106 and 24110 automatically | 188 | /* Well, the AutoAcq engine of the cx24106 and 24110 automatically |
189 | searches all enabled viterbi rates, and can handle non-standard | 189 | searches all enabled viterbi rates, and can handle non-standard |
190 | rates as well. */ | 190 | rates as well. */ |
191 | 191 | ||
192 | if (fec>FEC_AUTO) | 192 | if (fec > FEC_AUTO) |
193 | fec=FEC_AUTO; | 193 | fec = FEC_AUTO; |
194 | 194 | ||
195 | if (fec==FEC_AUTO) { /* (re-)establish AutoAcq behaviour */ | 195 | if (fec==FEC_AUTO) { /* (re-)establish AutoAcq behaviour */ |
196 | cx24110_writereg(state,0x37,cx24110_readreg(state,0x37)&0xdf); | 196 | cx24110_writereg(state,0x37,cx24110_readreg(state,0x37)&0xdf); |