V4L/DVB (13845): smsdvb: Fix the frequency switch that broke with v5 API conversion
Bandwidth is in Hz, not in kHz.
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
diff --git a/drivers/media/dvb/siano/smsdvb.c b/drivers/media/dvb/siano/smsdvb.c
index 36f8867..2f675cd 100644
--- a/drivers/media/dvb/siano/smsdvb.c
+++ b/drivers/media/dvb/siano/smsdvb.c
@@ -507,7 +507,7 @@
sms_info("%s: freq %d band %d", __func__, c->frequency,
c->bandwidth_hz);
- switch (c->bandwidth_hz / 1000) {
+ switch (c->bandwidth_hz / 1000000) {
case 8:
Msg.Data[1] = BW_8_MHZ;
break;
@@ -575,7 +575,7 @@
Msg.Data[1] = BW_ISDBT_1SEG;
break;
case 0: /* AUTO */
- switch (c->bandwidth_hz / 1000) {
+ switch (c->bandwidth_hz / 1000000) {
case 8:
case 7:
c->isdbt_sb_segment_count = 3;