diff options
Diffstat (limited to 'drivers/media/dvb')
-rw-r--r-- | drivers/media/dvb/dvb-core/dvbdev.c | 3 | ||||
-rw-r--r-- | drivers/media/dvb/dvb-usb/gp8psk.c | 2 | ||||
-rw-r--r-- | drivers/media/dvb/frontends/cx24116.c | 1 | ||||
-rw-r--r-- | drivers/media/dvb/frontends/cx24116.h | 3 | ||||
-rw-r--r-- | drivers/media/dvb/frontends/stb0899_drv.c | 1 | ||||
-rw-r--r-- | drivers/media/dvb/frontends/zl10353.c | 7 | ||||
-rw-r--r-- | drivers/media/dvb/siano/sms-cards.c | 19 | ||||
-rw-r--r-- | drivers/media/dvb/ttpci/av7110_v4l.c | 4 | ||||
-rw-r--r-- | drivers/media/dvb/ttpci/budget-av.c | 2 | ||||
-rw-r--r-- | drivers/media/dvb/ttusb-budget/Kconfig | 2 | ||||
-rw-r--r-- | drivers/media/dvb/ttusb-dec/Kconfig | 2 |
11 files changed, 33 insertions, 13 deletions
diff --git a/drivers/media/dvb/dvb-core/dvbdev.c b/drivers/media/dvb/dvb-core/dvbdev.c index 6c571d9f011c..65d69665f1fc 100644 --- a/drivers/media/dvb/dvb-core/dvbdev.c +++ b/drivers/media/dvb/dvb-core/dvbdev.c | |||
@@ -436,8 +436,9 @@ static int dvb_uevent(struct device *dev, struct kobj_uevent_env *env) | |||
436 | { | 436 | { |
437 | struct dvb_device *dvbdev = dev_get_drvdata(dev); | 437 | struct dvb_device *dvbdev = dev_get_drvdata(dev); |
438 | 438 | ||
439 | add_uevent_var(env, "DVB_DEVICE_NUM=%d", dvbdev->id); | ||
440 | add_uevent_var(env, "DVB_ADAPTER_NUM=%d", dvbdev->adapter->num); | 439 | add_uevent_var(env, "DVB_ADAPTER_NUM=%d", dvbdev->adapter->num); |
440 | add_uevent_var(env, "DVB_DEVICE_TYPE=%s", dnames[dvbdev->type]); | ||
441 | add_uevent_var(env, "DVB_DEVICE_NUM=%d", dvbdev->id); | ||
441 | return 0; | 442 | return 0; |
442 | } | 443 | } |
443 | 444 | ||
diff --git a/drivers/media/dvb/dvb-usb/gp8psk.c b/drivers/media/dvb/dvb-usb/gp8psk.c index c1da962cc886..3dd6843864ed 100644 --- a/drivers/media/dvb/dvb-usb/gp8psk.c +++ b/drivers/media/dvb/dvb-usb/gp8psk.c | |||
@@ -187,7 +187,7 @@ int gp8psk_bcm4500_reload(struct dvb_usb_device *d) | |||
187 | /* load BCM4500 firmware */ | 187 | /* load BCM4500 firmware */ |
188 | if (gp_product_id == USB_PID_GENPIX_8PSK_REV_1_WARM) | 188 | if (gp_product_id == USB_PID_GENPIX_8PSK_REV_1_WARM) |
189 | if (gp8psk_load_bcm4500fw(d)) | 189 | if (gp8psk_load_bcm4500fw(d)) |
190 | return EINVAL; | 190 | return -EINVAL; |
191 | return 0; | 191 | return 0; |
192 | } | 192 | } |
193 | 193 | ||
diff --git a/drivers/media/dvb/frontends/cx24116.c b/drivers/media/dvb/frontends/cx24116.c index 9b6c89e93f16..4f514d39b98f 100644 --- a/drivers/media/dvb/frontends/cx24116.c +++ b/drivers/media/dvb/frontends/cx24116.c | |||
@@ -1463,6 +1463,7 @@ static struct dvb_frontend_ops cx24116_ops = { | |||
1463 | FE_CAN_FEC_1_2 | FE_CAN_FEC_2_3 | FE_CAN_FEC_3_4 | | 1463 | FE_CAN_FEC_1_2 | FE_CAN_FEC_2_3 | FE_CAN_FEC_3_4 | |
1464 | FE_CAN_FEC_4_5 | FE_CAN_FEC_5_6 | FE_CAN_FEC_6_7 | | 1464 | FE_CAN_FEC_4_5 | FE_CAN_FEC_5_6 | FE_CAN_FEC_6_7 | |
1465 | FE_CAN_FEC_7_8 | FE_CAN_FEC_AUTO | | 1465 | FE_CAN_FEC_7_8 | FE_CAN_FEC_AUTO | |
1466 | FE_CAN_2G_MODULATION | | ||
1466 | FE_CAN_QPSK | FE_CAN_RECOVER | 1467 | FE_CAN_QPSK | FE_CAN_RECOVER |
1467 | }, | 1468 | }, |
1468 | 1469 | ||
diff --git a/drivers/media/dvb/frontends/cx24116.h b/drivers/media/dvb/frontends/cx24116.h index 4cb3ddd6c626..b1b76b47a14c 100644 --- a/drivers/media/dvb/frontends/cx24116.h +++ b/drivers/media/dvb/frontends/cx24116.h | |||
@@ -37,7 +37,8 @@ struct cx24116_config { | |||
37 | u8 mpg_clk_pos_pol:0x02; | 37 | u8 mpg_clk_pos_pol:0x02; |
38 | }; | 38 | }; |
39 | 39 | ||
40 | #if defined(CONFIG_DVB_CX24116) || defined(CONFIG_DVB_CX24116_MODULE) | 40 | #if defined(CONFIG_DVB_CX24116) || \ |
41 | (defined(CONFIG_DVB_CX24116_MODULE) && defined(MODULE)) | ||
41 | extern struct dvb_frontend *cx24116_attach( | 42 | extern struct dvb_frontend *cx24116_attach( |
42 | const struct cx24116_config *config, | 43 | const struct cx24116_config *config, |
43 | struct i2c_adapter *i2c); | 44 | struct i2c_adapter *i2c); |
diff --git a/drivers/media/dvb/frontends/stb0899_drv.c b/drivers/media/dvb/frontends/stb0899_drv.c index 528820170228..bee28f77b93f 100644 --- a/drivers/media/dvb/frontends/stb0899_drv.c +++ b/drivers/media/dvb/frontends/stb0899_drv.c | |||
@@ -1618,6 +1618,7 @@ static struct dvb_frontend_ops stb0899_ops = { | |||
1618 | 1618 | ||
1619 | .caps = FE_CAN_INVERSION_AUTO | | 1619 | .caps = FE_CAN_INVERSION_AUTO | |
1620 | FE_CAN_FEC_AUTO | | 1620 | FE_CAN_FEC_AUTO | |
1621 | FE_CAN_2G_MODULATION | | ||
1621 | FE_CAN_QPSK | 1622 | FE_CAN_QPSK |
1622 | }, | 1623 | }, |
1623 | 1624 | ||
diff --git a/drivers/media/dvb/frontends/zl10353.c b/drivers/media/dvb/frontends/zl10353.c index 5506f80e180e..170720b02815 100644 --- a/drivers/media/dvb/frontends/zl10353.c +++ b/drivers/media/dvb/frontends/zl10353.c | |||
@@ -587,8 +587,15 @@ static int zl10353_init(struct dvb_frontend *fe) | |||
587 | 587 | ||
588 | static int zl10353_i2c_gate_ctrl(struct dvb_frontend* fe, int enable) | 588 | static int zl10353_i2c_gate_ctrl(struct dvb_frontend* fe, int enable) |
589 | { | 589 | { |
590 | struct zl10353_state *state = fe->demodulator_priv; | ||
590 | u8 val = 0x0a; | 591 | u8 val = 0x0a; |
591 | 592 | ||
593 | if (state->config.no_tuner) { | ||
594 | /* No tuner attached to the internal I2C bus */ | ||
595 | /* If set enable I2C bridge, the main I2C bus stopped hardly */ | ||
596 | return 0; | ||
597 | } | ||
598 | |||
592 | if (enable) | 599 | if (enable) |
593 | val |= 0x10; | 600 | val |= 0x10; |
594 | 601 | ||
diff --git a/drivers/media/dvb/siano/sms-cards.c b/drivers/media/dvb/siano/sms-cards.c index fd62e0b85621..4307e4e8aa34 100644 --- a/drivers/media/dvb/siano/sms-cards.c +++ b/drivers/media/dvb/siano/sms-cards.c | |||
@@ -120,7 +120,7 @@ static struct sms_board sms_boards[] = { | |||
120 | .name = "Hauppauge WinTV MiniCard", | 120 | .name = "Hauppauge WinTV MiniCard", |
121 | .type = SMS_NOVA_B0, | 121 | .type = SMS_NOVA_B0, |
122 | .fw[DEVICE_MODE_DVBT_BDA] = "sms1xxx-hcw-55xxx-dvbt-02.fw", | 122 | .fw[DEVICE_MODE_DVBT_BDA] = "sms1xxx-hcw-55xxx-dvbt-02.fw", |
123 | .lna_ctrl = 1, | 123 | .lna_ctrl = -1, |
124 | }, | 124 | }, |
125 | }; | 125 | }; |
126 | 126 | ||
@@ -131,9 +131,10 @@ struct sms_board *sms_get_board(int id) | |||
131 | return &sms_boards[id]; | 131 | return &sms_boards[id]; |
132 | } | 132 | } |
133 | 133 | ||
134 | static int sms_set_gpio(struct smscore_device_t *coredev, u32 pin, int enable) | 134 | static int sms_set_gpio(struct smscore_device_t *coredev, int pin, int enable) |
135 | { | 135 | { |
136 | int ret; | 136 | int lvl, ret; |
137 | u32 gpio; | ||
137 | struct smscore_gpio_config gpioconfig = { | 138 | struct smscore_gpio_config gpioconfig = { |
138 | .direction = SMS_GPIO_DIRECTION_OUTPUT, | 139 | .direction = SMS_GPIO_DIRECTION_OUTPUT, |
139 | .pullupdown = SMS_GPIO_PULLUPDOWN_NONE, | 140 | .pullupdown = SMS_GPIO_PULLUPDOWN_NONE, |
@@ -145,12 +146,20 @@ static int sms_set_gpio(struct smscore_device_t *coredev, u32 pin, int enable) | |||
145 | if (pin == 0) | 146 | if (pin == 0) |
146 | return -EINVAL; | 147 | return -EINVAL; |
147 | 148 | ||
148 | ret = smscore_configure_gpio(coredev, pin, &gpioconfig); | 149 | if (pin < 0) { |
150 | /* inverted gpio */ | ||
151 | gpio = pin * -1; | ||
152 | lvl = enable ? 0 : 1; | ||
153 | } else { | ||
154 | gpio = pin; | ||
155 | lvl = enable ? 1 : 0; | ||
156 | } | ||
149 | 157 | ||
158 | ret = smscore_configure_gpio(coredev, gpio, &gpioconfig); | ||
150 | if (ret < 0) | 159 | if (ret < 0) |
151 | return ret; | 160 | return ret; |
152 | 161 | ||
153 | return smscore_set_gpio(coredev, pin, enable); | 162 | return smscore_set_gpio(coredev, gpio, lvl); |
154 | } | 163 | } |
155 | 164 | ||
156 | int sms_board_setup(struct smscore_device_t *coredev) | 165 | int sms_board_setup(struct smscore_device_t *coredev) |
diff --git a/drivers/media/dvb/ttpci/av7110_v4l.c b/drivers/media/dvb/ttpci/av7110_v4l.c index b4a0cc5dc935..c5b9c70563dc 100644 --- a/drivers/media/dvb/ttpci/av7110_v4l.c +++ b/drivers/media/dvb/ttpci/av7110_v4l.c | |||
@@ -316,7 +316,7 @@ static int av7110_dvb_c_switch(struct saa7146_fh *fh) | |||
316 | return 0; | 316 | return 0; |
317 | } | 317 | } |
318 | 318 | ||
319 | static int av7110_ioctl(struct saa7146_fh *fh, unsigned int cmd, void *arg) | 319 | static long av7110_ioctl(struct saa7146_fh *fh, unsigned int cmd, void *arg) |
320 | { | 320 | { |
321 | struct saa7146_dev *dev = fh->dev; | 321 | struct saa7146_dev *dev = fh->dev; |
322 | struct av7110 *av7110 = (struct av7110*) dev->ext_priv; | 322 | struct av7110 *av7110 = (struct av7110*) dev->ext_priv; |
@@ -567,7 +567,7 @@ static int av7110_ioctl(struct saa7146_fh *fh, unsigned int cmd, void *arg) | |||
567 | return 0; | 567 | return 0; |
568 | } | 568 | } |
569 | 569 | ||
570 | static int av7110_vbi_reset(struct inode *inode, struct file *file) | 570 | static int av7110_vbi_reset(struct file *file) |
571 | { | 571 | { |
572 | struct saa7146_fh *fh = file->private_data; | 572 | struct saa7146_fh *fh = file->private_data; |
573 | struct saa7146_dev *dev = fh->dev; | 573 | struct saa7146_dev *dev = fh->dev; |
diff --git a/drivers/media/dvb/ttpci/budget-av.c b/drivers/media/dvb/ttpci/budget-av.c index f996cef79ec1..4182121d7e5d 100644 --- a/drivers/media/dvb/ttpci/budget-av.c +++ b/drivers/media/dvb/ttpci/budget-av.c | |||
@@ -1493,7 +1493,7 @@ static struct saa7146_extension_ioctls ioctls[] = { | |||
1493 | {0, 0} | 1493 | {0, 0} |
1494 | }; | 1494 | }; |
1495 | 1495 | ||
1496 | static int av_ioctl(struct saa7146_fh *fh, unsigned int cmd, void *arg) | 1496 | static long av_ioctl(struct saa7146_fh *fh, unsigned int cmd, void *arg) |
1497 | { | 1497 | { |
1498 | struct saa7146_dev *dev = fh->dev; | 1498 | struct saa7146_dev *dev = fh->dev; |
1499 | struct budget_av *budget_av = (struct budget_av *) dev->ext_priv; | 1499 | struct budget_av *budget_av = (struct budget_av *) dev->ext_priv; |
diff --git a/drivers/media/dvb/ttusb-budget/Kconfig b/drivers/media/dvb/ttusb-budget/Kconfig index f546bccdb997..2663ae39b886 100644 --- a/drivers/media/dvb/ttusb-budget/Kconfig +++ b/drivers/media/dvb/ttusb-budget/Kconfig | |||
@@ -1,6 +1,6 @@ | |||
1 | config DVB_TTUSB_BUDGET | 1 | config DVB_TTUSB_BUDGET |
2 | tristate "Technotrend/Hauppauge Nova-USB devices" | 2 | tristate "Technotrend/Hauppauge Nova-USB devices" |
3 | depends on DVB_CORE && USB && I2C | 3 | depends on DVB_CORE && USB && I2C && PCI |
4 | select DVB_CX22700 if !DVB_FE_CUSTOMISE | 4 | select DVB_CX22700 if !DVB_FE_CUSTOMISE |
5 | select DVB_TDA1004X if !DVB_FE_CUSTOMISE | 5 | select DVB_TDA1004X if !DVB_FE_CUSTOMISE |
6 | select DVB_VES1820 if !DVB_FE_CUSTOMISE | 6 | select DVB_VES1820 if !DVB_FE_CUSTOMISE |
diff --git a/drivers/media/dvb/ttusb-dec/Kconfig b/drivers/media/dvb/ttusb-dec/Kconfig index d5f48a3102bd..290254ab06db 100644 --- a/drivers/media/dvb/ttusb-dec/Kconfig +++ b/drivers/media/dvb/ttusb-dec/Kconfig | |||
@@ -1,6 +1,6 @@ | |||
1 | config DVB_TTUSB_DEC | 1 | config DVB_TTUSB_DEC |
2 | tristate "Technotrend/Hauppauge USB DEC devices" | 2 | tristate "Technotrend/Hauppauge USB DEC devices" |
3 | depends on DVB_CORE && USB && INPUT | 3 | depends on DVB_CORE && USB && INPUT && PCI |
4 | select CRC32 | 4 | select CRC32 |
5 | help | 5 | help |
6 | Support for external USB adapters designed by Technotrend and | 6 | Support for external USB adapters designed by Technotrend and |