Skip to content

Commit b2ab26a

Browse files
committed
Merge git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/v4l-dvb
* git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/v4l-dvb: (48 commits) V4L/DVB (8001): dib0070: fix dib0070_attach when !CONFIG_DVB_TUNER_DIB0070 V4L/DVB (8000): tda827x: fix NULL pointer in tda827xa_lna_gain V4L/DVB (7990): Fix entry for PowerColor RA 330 and make it run with firmware version 2.7 V4L/DVB (7983): tda18271_calc_rf_cal must return the return value of tda18271_lookup_map V4L/DVB (7978): cx18: explicitly test for XC2028 tuner V4L/DVB (7977): cx18: fix init order and remove duplicate open_on_first_use. V4L/DVB (7975): saa7134_empress V4L/DVB (7974): fix MEDIA_TUNER && FW_LOADER build error V4L/DVB (7972): or51132.c: unaligned V4L/DVB (7971): usb: unaligned V4L/DVB (7970): mix trivial endianness annotations V4L/DVB (7969): m920x: unaligned access V4L/DVB (7968): zoran: endianness annotations V4L/DVB (7967): bt8xx: unaligned access V4L/DVB (7966): cx18: direct dereferencing of iomem V4L/DVB (7965): annotate bcx_riscmem V4L/DVB (7964): cx18 iomem annotations V4L/DVB (7963): ivtv: trivial annotations V4L/DVB (7962): ttusb endianness annotations and fixes V4L/DVB (7961): fix endianness bug in dib0700_devices.c ...
2 parents 5965087 + be573e7 commit b2ab26a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

65 files changed

+434
-348
lines changed

Documentation/video4linux/CARDLIST.cx88

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
59 -> DViCO FusionHDTV 5 PCI nano [18ac:d530]
6161
60 -> Pinnacle Hybrid PCTV [12ab:1788]
6262
61 -> Winfast TV2000 XP Global [107d:6f18]
63-
62 -> PowerColor Real Angel 330 [14f1:ea3d]
63+
62 -> PowerColor RA330 [14f1:ea3d]
6464
63 -> Geniatech X8000-MT DVBT [14f1:8852]
6565
64 -> DViCO FusionHDTV DVB-T PRO [18ac:db30]
6666
65 -> DViCO FusionHDTV 7 Gold [18ac:d610]

Documentation/video4linux/cx18.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
Some notes regarding the cx18 driver for the Conexant CX23418 MPEG
22
encoder chip:
33

4-
1) The only hardware currently supported is the Hauppauge HVR-1600.
4+
1) The only hardware currently supported is the Hauppauge HVR-1600
5+
card and the Compro VideoMate H900 (note that this card only
6+
supports analog input, it has no digital tuner!).
57

68
2) Some people have problems getting the i2c bus to work. Cause unknown.
79
The symptom is that the eeprom cannot be read and the card is

drivers/media/Makefile

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,7 @@
22
# Makefile for the kernel multimedia device drivers.
33
#
44

5-
obj-y := common/
6-
7-
obj-$(CONFIG_VIDEO_MEDIA) += common/
8-
9-
# Since hybrid devices are here, should be compiled if DVB and/or V4L
10-
obj-$(CONFIG_VIDEO_MEDIA) += video/
5+
obj-y += common/ video/
116

127
obj-$(CONFIG_VIDEO_DEV) += radio/
138
obj-$(CONFIG_DVB_CORE) += dvb/

drivers/media/common/tuners/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ config MEDIA_TUNER
2121
tristate
2222
default VIDEO_MEDIA && I2C
2323
depends on VIDEO_MEDIA && I2C
24+
select FW_LOADER if !MEDIA_TUNER_CUSTOMIZE && HOTPLUG
2425
select MEDIA_TUNER_XC2028 if !MEDIA_TUNER_CUSTOMIZE && HOTPLUG
2526
select MEDIA_TUNER_XC5000 if !MEDIA_TUNER_CUSTOMIZE && HOTPLUG
2627
select MEDIA_TUNER_MT20XX if !MEDIA_TUNER_CUSTOMIZE

drivers/media/common/tuners/mxl5005s.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ enum {
101101
MXL_QAM,
102102
MXL_ANALOG_CABLE,
103103
MXL_ANALOG_OTA
104-
} tuner_modu_type;
104+
};
105105

106106
/* MXL5005 Tuner Register Struct */
107107
struct TunerReg {
@@ -194,7 +194,7 @@ enum {
194194
RFSYN_DIVM, /* 88 */
195195
DN_BYPASS_AGC_I2C /* 89 */
196196
#endif
197-
} MXL5005_ControlName;
197+
};
198198

199199
/*
200200
* The following context is source code provided by MaxLinear.

drivers/media/common/tuners/tda18271-common.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -648,11 +648,11 @@ int tda18271_calc_rf_cal(struct dvb_frontend *fe, u32 *freq)
648648
unsigned char *regs = priv->tda18271_regs;
649649
u8 val;
650650

651-
tda18271_lookup_map(fe, RF_CAL, freq, &val);
651+
int ret = tda18271_lookup_map(fe, RF_CAL, freq, &val);
652652

653653
regs[R_EB14] = val;
654654

655-
return 0;
655+
return ret;
656656
}
657657

658658
/*

drivers/media/common/tuners/tda827x.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -418,13 +418,13 @@ static void tda827xa_lna_gain(struct dvb_frontend *fe, int high,
418418
unsigned char buf[] = {0x22, 0x01};
419419
int arg;
420420
int gp_func;
421-
struct i2c_msg msg = { .addr = priv->cfg->switch_addr, .flags = 0,
422-
.buf = buf, .len = sizeof(buf) };
421+
struct i2c_msg msg = { .flags = 0, .buf = buf, .len = sizeof(buf) };
423422

424423
if (NULL == priv->cfg) {
425424
dprintk("tda827x_config not defined, cannot set LNA gain!\n");
426425
return;
427426
}
427+
msg.addr = priv->cfg->switch_addr;
428428
if (priv->cfg->config) {
429429
if (high)
430430
dprintk("setting LNA to high gain\n");

drivers/media/common/tuners/tea5761.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ struct dvb_frontend *tea5761_attach(struct dvb_frontend *fe,
295295
{
296296
struct tea5761_priv *priv = NULL;
297297

298-
if (tea5761_autodetection(i2c_adap, i2c_addr) == EINVAL)
298+
if (tea5761_autodetection(i2c_adap, i2c_addr) != 0)
299299
return NULL;
300300

301301
priv = kzalloc(sizeof(struct tea5761_priv), GFP_KERNEL);

drivers/media/common/tuners/tuner-i2c.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,4 +170,12 @@ __fail: \
170170
__ret; \
171171
})
172172

173+
#define hybrid_tuner_report_instance_count(state) \
174+
({ \
175+
int __ret = 0; \
176+
if (state) \
177+
__ret = state->i2c_props.count; \
178+
__ret; \
179+
})
180+
173181
#endif /* __TUNER_I2C_H__ */

drivers/media/common/tuners/tuner-simple.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1018,8 +1018,10 @@ struct dvb_frontend *simple_tuner_attach(struct dvb_frontend *fe,
10181018
fe->ops.i2c_gate_ctrl(fe, 1);
10191019

10201020
if (1 != i2c_transfer(i2c_adap, &msg, 1))
1021-
tuner_warn("unable to probe %s, proceeding anyway.",
1022-
tuners[type].name);
1021+
printk(KERN_WARNING "tuner-simple %d-%04x: "
1022+
"unable to probe %s, proceeding anyway.",
1023+
i2c_adapter_id(i2c_adap), i2c_addr,
1024+
tuners[type].name);
10231025

10241026
if (fe->ops.i2c_gate_ctrl)
10251027
fe->ops.i2c_gate_ctrl(fe, 0);

0 commit comments

Comments
 (0)