1
0
mirror of https://github.com/DigitalDevices/dddvb.git synced 2023-10-10 13:37:43 +02:00

set vga according to ouputs

This commit is contained in:
Ralph Metzler 2016-08-02 21:08:40 +02:00
parent 8c82d0166c
commit 1567d804b1

View File

@ -1527,20 +1527,17 @@ static int mod_ioctl_2(struct file *file, unsigned int cmd, void *parg)
static int mod_init_2(struct ddb *dev, u32 Frequency) static int mod_init_2(struct ddb *dev, u32 Frequency)
{ {
int status; int status;
printk("mod_init_2\n"); int streams = dev->link[0].info->port_num;
dev->mod_base.frequency = Frequency; dev->mod_base.frequency = Frequency;
mod_TemperatureMonitorInit(dev, 1); mod_TemperatureMonitorInit(dev, 1);
status = mod_fsm_setup(dev, 0, 0); status = mod_fsm_setup(dev, 0, 0);
pr_info("fsm_setup = %d\n", status);
#if 0 if (streams <= 8)
if (pdx->NumOutputStreams <= 8)
mod_set_vga(dev, RF_VGA_GAIN_N8); mod_set_vga(dev, RF_VGA_GAIN_N8);
else if (pdx->NumOutputStreams <= 16) else if (streams <= 16)
mod_set_vga(dev, RF_VGA_GAIN_N16); mod_set_vga(dev, RF_VGA_GAIN_N16);
else else
#endif
mod_set_vga(dev, RF_VGA_GAIN_N24); mod_set_vga(dev, RF_VGA_GAIN_N24);
mod_set_attenuator(dev, 0); mod_set_attenuator(dev, 0);