diff options
Diffstat (limited to 'drivers/media/dvb/frontends/af9013.c')
-rw-r--r-- | drivers/media/dvb/frontends/af9013.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/drivers/media/dvb/frontends/af9013.c b/drivers/media/dvb/frontends/af9013.c index dac917f7bb7f..a780c32ebce4 100644 --- a/drivers/media/dvb/frontends/af9013.c +++ b/drivers/media/dvb/frontends/af9013.c | |||
@@ -486,6 +486,19 @@ static int af9013_set_freq_ctrl(struct af9013_state *state, fe_bandwidth_t bw) | |||
486 | if_sample_freq = 4300000; /* 4.3 MHz */ | 486 | if_sample_freq = 4300000; /* 4.3 MHz */ |
487 | break; | 487 | break; |
488 | } | 488 | } |
489 | } else if (state->config.tuner == AF9013_TUNER_TDA18218) { | ||
490 | switch (bw) { | ||
491 | case BANDWIDTH_6_MHZ: | ||
492 | if_sample_freq = 3000000; /* 3 MHz */ | ||
493 | break; | ||
494 | case BANDWIDTH_7_MHZ: | ||
495 | if_sample_freq = 3500000; /* 3.5 MHz */ | ||
496 | break; | ||
497 | case BANDWIDTH_8_MHZ: | ||
498 | default: | ||
499 | if_sample_freq = 4000000; /* 4 MHz */ | ||
500 | break; | ||
501 | } | ||
489 | } | 502 | } |
490 | 503 | ||
491 | while (if_sample_freq > (adc_freq / 2)) | 504 | while (if_sample_freq > (adc_freq / 2)) |
@@ -1393,6 +1406,7 @@ static int af9013_init(struct dvb_frontend *fe) | |||
1393 | init = tuner_init_mt2060_2; | 1406 | init = tuner_init_mt2060_2; |
1394 | break; | 1407 | break; |
1395 | case AF9013_TUNER_TDA18271: | 1408 | case AF9013_TUNER_TDA18271: |
1409 | case AF9013_TUNER_TDA18218: | ||
1396 | len = ARRAY_SIZE(tuner_init_tda18271); | 1410 | len = ARRAY_SIZE(tuner_init_tda18271); |
1397 | init = tuner_init_tda18271; | 1411 | init = tuner_init_tda18271; |
1398 | break; | 1412 | break; |