set legacy signal strength workaround according to channel number

This commit is contained in:
internal 2022-10-25 19:33:25 +02:00
parent 24801ab41a
commit be79cec76e
1 changed files with 1 additions and 1 deletions

View File

@ -643,7 +643,7 @@ static int mod_set_attenuator(struct ddb *dev, u32 Value)
.mod_stream = 0,
.mod_setup_output = {
.connector = MOD_CONNECTOR_F,
.num_channels = 24,
.num_channels = dev->link[0].info->port_num,
.unit = MOD_UNIT_DBUV,
.channel_power = 9000 - Value * 100,
},