mirror of
https://github.com/DigitalDevices/dddvb.git
synced 2023-10-10 13:37:43 +02:00
write really availalble modulator channels to port_num
This commit is contained in:
parent
93e42deeaa
commit
e6dd33deec
@ -516,7 +516,7 @@ static int mod_fsm_setup(struct ddb *dev, u32 FrequencyPlan,
|
|||||||
else
|
else
|
||||||
ddbwritel(dev, FSM_GAIN_N96, FSM_GAIN);
|
ddbwritel(dev, FSM_GAIN_N96, FSM_GAIN);
|
||||||
|
|
||||||
ddbwritel(dev, FSM_CONTROL_ENABLE, FSM_CONTROL);
|
dev->link[0].info->port_num = MaxUsedChannels;
|
||||||
|
|
||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
@ -1635,7 +1635,6 @@ static int mod_init_2(struct ddb *dev, u32 Frequency)
|
|||||||
pr_err("FSM setup failed!\n");
|
pr_err("FSM setup failed!\n");
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
for (i = 0; i < streams; i++) {
|
for (i = 0; i < streams; i++) {
|
||||||
struct ddb_mod *mod = &dev->mod[i];
|
struct ddb_mod *mod = &dev->mod[i];
|
||||||
|
|
||||||
@ -1644,13 +1643,6 @@ static int mod_init_2(struct ddb *dev, u32 Frequency)
|
|||||||
mod_set_symbolrate(mod, 6900000);
|
mod_set_symbolrate(mod, 6900000);
|
||||||
mod_set_frequency(mod, dev->mod_base.frequency + i * 8000000);
|
mod_set_frequency(mod, dev->mod_base.frequency + i * 8000000);
|
||||||
}
|
}
|
||||||
if (streams <= 8)
|
|
||||||
mod_set_vga(dev, RF_VGA_GAIN_N8);
|
|
||||||
else if (streams <= 16)
|
|
||||||
mod_set_vga(dev, RF_VGA_GAIN_N16);
|
|
||||||
else
|
|
||||||
mod_set_vga(dev, RF_VGA_GAIN_N24);
|
|
||||||
|
|
||||||
mod_set_attenuator(dev, 0);
|
mod_set_attenuator(dev, 0);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user