aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb/siano/smsdvb.c
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2009-12-25 05:29:06 -0500
committerMauro Carvalho Chehab <mchehab@redhat.com>2010-02-26 13:10:26 -0500
commit643e15a0f44156fa05d163f202a9dffb264d2078 (patch)
tree8b6e8195a9dc337c23f67cfce0d878728baf0fa9 /drivers/media/dvb/siano/smsdvb.c
parente85c97a050f07bc5d2fe1382b994f063614af75b (diff)
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>
Diffstat (limited to 'drivers/media/dvb/siano/smsdvb.c')
-rw-r--r--drivers/media/dvb/siano/smsdvb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/dvb/siano/smsdvb.c b/drivers/media/dvb/siano/smsdvb.c
index 36f886768aa..2f675cda947 100644
--- a/drivers/media/dvb/siano/smsdvb.c
+++ b/drivers/media/dvb/siano/smsdvb.c
@@ -507,7 +507,7 @@ static int smsdvb_dvbt_set_frontend(struct dvb_frontend *fe,
507 sms_info("%s: freq %d band %d", __func__, c->frequency, 507 sms_info("%s: freq %d band %d", __func__, c->frequency,
508 c->bandwidth_hz); 508 c->bandwidth_hz);
509 509
510 switch (c->bandwidth_hz / 1000) { 510 switch (c->bandwidth_hz / 1000000) {
511 case 8: 511 case 8:
512 Msg.Data[1] = BW_8_MHZ; 512 Msg.Data[1] = BW_8_MHZ;
513 break; 513 break;
@@ -575,7 +575,7 @@ static int smsdvb_isdbt_set_frontend(struct dvb_frontend *fe,
575 Msg.Data[1] = BW_ISDBT_1SEG; 575 Msg.Data[1] = BW_ISDBT_1SEG;
576 break; 576 break;
577 case 0: /* AUTO */ 577 case 0: /* AUTO */
578 switch (c->bandwidth_hz / 1000) { 578 switch (c->bandwidth_hz / 1000000) {
579 case 8: 579 case 8:
580 case 7: 580 case 7:
581 c->isdbt_sb_segment_count = 3; 581 c->isdbt_sb_segment_count = 3;