Commit 643e15a0 authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab

V4L/DVB (13845): smsdvb: Fix the frequency switch that broke with v5 API conversion

Bandwidth is in Hz, not in kHz.
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent e85c97a0
...@@ -507,7 +507,7 @@ static int smsdvb_dvbt_set_frontend(struct dvb_frontend *fe, ...@@ -507,7 +507,7 @@ static int smsdvb_dvbt_set_frontend(struct dvb_frontend *fe,
sms_info("%s: freq %d band %d", __func__, c->frequency, sms_info("%s: freq %d band %d", __func__, c->frequency,
c->bandwidth_hz); c->bandwidth_hz);
switch (c->bandwidth_hz / 1000) { switch (c->bandwidth_hz / 1000000) {
case 8: case 8:
Msg.Data[1] = BW_8_MHZ; Msg.Data[1] = BW_8_MHZ;
break; break;
...@@ -575,7 +575,7 @@ static int smsdvb_isdbt_set_frontend(struct dvb_frontend *fe, ...@@ -575,7 +575,7 @@ static int smsdvb_isdbt_set_frontend(struct dvb_frontend *fe,
Msg.Data[1] = BW_ISDBT_1SEG; Msg.Data[1] = BW_ISDBT_1SEG;
break; break;
case 0: /* AUTO */ case 0: /* AUTO */
switch (c->bandwidth_hz / 1000) { switch (c->bandwidth_hz / 1000000) {
case 8: case 8:
case 7: case 7:
c->isdbt_sb_segment_count = 3; c->isdbt_sb_segment_count = 3;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment