1
0
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:
Ralph Metzler 2017-06-12 14:20:27 +02:00
parent 93e42deeaa
commit e6dd33deec

View File

@ -516,7 +516,7 @@ static int mod_fsm_setup(struct ddb *dev, u32 FrequencyPlan,
else
ddbwritel(dev, FSM_GAIN_N96, FSM_GAIN);
ddbwritel(dev, FSM_CONTROL_ENABLE, FSM_CONTROL);
dev->link[0].info->port_num = MaxUsedChannels;
return status;
}
@ -1635,7 +1635,6 @@ static int mod_init_2(struct ddb *dev, u32 Frequency)
pr_err("FSM setup failed!\n");
return -1;
}
for (i = 0; i < streams; 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_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);
return 0;
}