mirror of
https://github.com/DigitalDevices/dddvb.git
synced 2023-10-10 13:37:43 +02:00
handle bandwidth also if mangled by dvb-core
This commit is contained in:
parent
154ea8f3c9
commit
569674e427
@ -94,17 +94,12 @@ static int search_c(struct dvb_frontend *fe)
|
|||||||
|
|
||||||
memset(&cmd, 0, sizeof(cmd));
|
memset(&cmd, 0, sizeof(cmd));
|
||||||
cmd.command = MCI_CMD_SEARCH_DVBC;
|
cmd.command = MCI_CMD_SEARCH_DVBC;
|
||||||
switch (p->bandwidth_hz) {
|
if (p->bandwidth_hz <= 6000000)
|
||||||
case 6000000:
|
|
||||||
cmd.dvbc_search.bandwidth = MCI_BANDWIDTH_6MHZ;
|
cmd.dvbc_search.bandwidth = MCI_BANDWIDTH_6MHZ;
|
||||||
break;
|
else if (p->bandwidth_hz <= 7000000)
|
||||||
case 7000000:
|
|
||||||
cmd.dvbc_search.bandwidth = MCI_BANDWIDTH_7MHZ;
|
cmd.dvbc_search.bandwidth = MCI_BANDWIDTH_7MHZ;
|
||||||
break;
|
else
|
||||||
default:
|
|
||||||
cmd.dvbc_search.bandwidth = MCI_BANDWIDTH_8MHZ;
|
cmd.dvbc_search.bandwidth = MCI_BANDWIDTH_8MHZ;
|
||||||
break;
|
|
||||||
}
|
|
||||||
cmd.dvbc_search.retry = 0;
|
cmd.dvbc_search.retry = 0;
|
||||||
cmd.dvbc_search.frequency = p->frequency;
|
cmd.dvbc_search.frequency = p->frequency;
|
||||||
cmd.tuner = state->mci.tuner;
|
cmd.tuner = state->mci.tuner;
|
||||||
|
Loading…
Reference in New Issue
Block a user