“0d5aed7c6087477bafbff50f09ad26d2f37147a3”上不存在“index.html.tmp”
提交 7655a3ae 编写于 作者: M Matthias Schwarzott 提交者: Mauro Carvalho Chehab

[media] si2165: Reject DVB-T bandwidth auto mode

The si2165 does not support bandwidth auto-detection.
Reject the request.
Signed-off-by: NMatthias Schwarzott <zzam@gentoo.org>
Signed-off-by: NMauro Carvalho Chehab <mchehab@osg.samsung.com>
上级 a561d768
...@@ -825,19 +825,19 @@ static int si2165_set_frontend_dvbt(struct dvb_frontend *fe) ...@@ -825,19 +825,19 @@ static int si2165_set_frontend_dvbt(struct dvb_frontend *fe)
struct si2165_state *state = fe->demodulator_priv; struct si2165_state *state = fe->demodulator_priv;
u32 dvb_rate = 0; u32 dvb_rate = 0;
u16 bw10k; u16 bw10k;
u32 bw_hz = p->bandwidth_hz;
dprintk("%s: called\n", __func__); dprintk("%s: called\n", __func__);
if (!state->has_dvbt) if (!state->has_dvbt)
return -EINVAL; return -EINVAL;
if (p->bandwidth_hz > 0) { /* no bandwidth auto-detection */
dvb_rate = p->bandwidth_hz * 8 / 7; if (bw_hz == 0)
bw10k = p->bandwidth_hz / 10000; return -EINVAL;
} else {
dvb_rate = 8 * 8 / 7; dvb_rate = bw_hz * 8 / 7;
bw10k = 800; bw10k = bw_hz / 10000;
}
ret = si2165_adjust_pll_divl(state, 12); ret = si2165_adjust_pll_divl(state, 12);
if (ret < 0) if (ret < 0)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册