提交 82f4b5b6 编写于 作者: A Antti Palosaari 提交者: Mauro Carvalho Chehab

[media] af9013: fix AF9013 TDA18271 IF config

IF freq	for DVB-T 7 MHz	and 8 MHz was set slightly wrong. Due to that it
didn't worked at all (?) for 7 MHz channels and most likely performance
was dropped for 8 MHz channels.

That bug was pointed by few people during last two months. Thank you.

Trivial fix. Compile tested only due to lack of proper HW and signal.
Signed-off-by: NAntti Palosaari <crope@iki.fi>
Cc: Romolo Manfredini <romoloman@hotmail.com>
Cc: Alireza Moini <alireza.moini@silverbrookresearch.com>
Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
上级 424852f4
...@@ -334,11 +334,11 @@ static int af9013_set_freq_ctrl(struct af9013_state *state, fe_bandwidth_t bw) ...@@ -334,11 +334,11 @@ static int af9013_set_freq_ctrl(struct af9013_state *state, fe_bandwidth_t bw)
if_sample_freq = 3300000; /* 3.3 MHz */ if_sample_freq = 3300000; /* 3.3 MHz */
break; break;
case BANDWIDTH_7_MHZ: case BANDWIDTH_7_MHZ:
if_sample_freq = 3800000; /* 3.8 MHz */ if_sample_freq = 3500000; /* 3.5 MHz */
break; break;
case BANDWIDTH_8_MHZ: case BANDWIDTH_8_MHZ:
default: default:
if_sample_freq = 4300000; /* 4.3 MHz */ if_sample_freq = 4000000; /* 4.0 MHz */
break; break;
} }
} else if (state->config.tuner == AF9013_TUNER_TDA18218) { } else if (state->config.tuner == AF9013_TUNER_TDA18218) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册