Set port_num to software limit for modulators (fixes #8118)

This commit is contained in:
Frederic Cand 2017-09-01 15:02:29 +02:00 committed by Richard Bérichon
parent 0d9752284e
commit a9f1cb3e5a

View File

@ -490,7 +490,10 @@ static int mod_fsm_setup(struct ddb *dev, u32 MaxUsedChannels)
return -1; return -1;
if (MaxUsedChannels == 0) if (MaxUsedChannels == 0)
{
MaxUsedChannels = (Capacity & FSM_CAPACITY_CUR) >> 16; MaxUsedChannels = (Capacity & FSM_CAPACITY_CUR) >> 16;
dev->port_num = MaxUsedChannels;
}
if (MaxUsedChannels <= 1) if (MaxUsedChannels <= 1)
ddbwritel(dev, FSM_GAIN_N1, FSM_GAIN); ddbwritel(dev, FSM_GAIN_N1, FSM_GAIN);