FIXME: Assorted of missed bits from merge
Subsystems (2)
cover FIXME: Assorted of missed bits from merge
Hello Mauro,
Here are the assorted bits and bobs that wound up missing due to the patchwork snafu.
One new patch is:
- cx231xx: Set mfe_shared if second frontend found
Due to your suggestion in regards to the shared tuner logic. I put the check in what seems like a sensical spot.
Brad Love (8):
lgdt3306a: remove symbol count mismatch fix
em28xx: Change hex to lower case
cx231xx: Use frontend i2c adapter with tuner
cx23885: Add tuner type and analog inputs to 1265
cx231xx: Set mfe_shared if second frontend found
cx231xx: Use constant instead of hard code for max
cx231xx: Add second i2c demod to Hauppauge 975
cx23885: Fix gpio on Hauppauge QuadHD PCIe cards
drivers/media/dvb-frontends/lgdt3306a.c | 10 ++---- drivers/media/pci/cx23885/cx23885-cards.c | 20 +++++++++-- drivers/media/usb/cx231xx/cx231xx-cards.c | 1 + drivers/media/usb/cx231xx/cx231xx-dvb.c | 60 ++++++++++++++++++++++++++++--- drivers/media/usb/em28xx/em28xx-core.c | 2 +- 5 files changed, 77 insertions(+), 16 deletions(-)
Signature · 1 line
2.7.4
PATCH 1/8 lgdt3306a: remove symbol count mismatch fix
This symbol mismatch is handled by NULL'ing out the release callback if the driver is loaded as an i2c device.
This patch reverts:
- 94448e21cf08b10f7dc7acdaca387594370396b0
- 835d66173a38538c072a7c393d02360dcfac8582
The symbol count mismatch is handled by:
- 5b3a8e906973540b61dbf402c6b6f8d64d4ae119
--- drivers/media/dvb-frontends/lgdt3306a.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-)
drivers/media/dvb-frontends/lgdt3306a.c +2 -8
@@ -1814,13 +1814,7 @@ static void lgdt3306a_release(struct dvb_frontend *fe)struct lgdt3306a_state *state = fe->demodulator_priv;dbg_info ("\n" ); - -/* -* If state->muxc is not NULL, then we are an i2c device -* and lgdt3306a_remove will clean up state -*/ -if (!state->muxc) -kfree (state); +kfree (state); }static const struct dvb_frontend_ops lgdt3306a_ops;
@@ -2221,7 +2215,7 @@ static int lgdt3306a_probe(struct i2c_client *client, sizeof(struct lgdt3306a_config)); config->i2c_addr = client->addr; - fe =dvb_attach (lgdt3306a_attach, config, client->adapter); + fe =lgdt3306a_attach (config, client->adapter);if (fe ==NULL ) { ret = -ENODEV ; goto err_fe;
Signature · 1 line
2.7.4
PATCH 2/8 em28xx: Change hex to lower case
In reply to Brad LoveCheckpatch fix.
--- drivers/media/usb/em28xx/em28xx-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/media/usb/em28xx/em28xx-core.c +1 -1
@@ -643,7 +643,7 @@ int em28xx_capture_start(struct em28xx *dev, int start)em28xx_write_reg (dev, (dev->ts ==PRIMARY_TS ) ?EM2874_R5D_TS1_PKT_SIZE :EM2874_R5E_TS2_PKT_SIZE , -0xFF ); +0xff ); }else {/* ISOC Maximum Transfer Size = 188 * 5 */ em28xx_write_reg(dev, (dev->ts == PRIMARY_TS) ?
Signature · 1 line
2.7.4
PATCH 3/8 cx231xx: Use frontend i2c adapter with tuner
In reply to Brad LoveUtilize the i2c mux adapter returned by the frontend.
--- drivers/media/usb/cx231xx/cx231xx-dvb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/media/usb/cx231xx/cx231xx-dvb.c +1 -1
@@ -1221,7 +1221,7 @@ static int dvb_init(struct cx231xx *dev) info.platform_data = &si2157_config;request_module ("si2157" ); - client =i2c_new_device (tuner_i2c, &info); + client =i2c_new_device (adapter, &info);if (client ==NULL || client->dev.driver ==NULL ) {module_put (dvb->i2c_client_demod[0 ]->dev.driver->owner);i2c_unregister_device (dvb->i2c_client_demod[0 ]);
Signature · 1 line
2.7.4
PATCH 4/8 cx23885: Add tuner type and analog inputs to 1265
In reply to Brad LoveMissing composite and s-video inputs
--- drivers/media/pci/cx23885/cx23885-cards.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+)
drivers/media/pci/cx23885/cx23885-cards.c +16 -0
@@ -788,8 +788,24 @@ struct cx23885_board cx23885_boards[] = { }, [CX23885_BOARD_HAUPPAUGE_HVR1265_K4] = { .name = "Hauppauge WinTV-HVR-1265(161111)", + .porta = CX23885_ANALOG_VIDEO, .portc = CX23885_MPEG_DVB, + .tuner_type = TUNER_ABSENT, .force_bff = 1, + .input = {{ + .type = CX23885_VMUX_COMPOSITE1, + .vmux = CX25840_VIN7_CH3 | + CX25840_VIN4_CH2 | + CX25840_VIN6_CH1, + .amux = CX25840_AUDIO7, + }, { + .type = CX23885_VMUX_SVIDEO, + .vmux = CX25840_VIN7_CH3 | + CX25840_VIN4_CH2 | + CX25840_VIN8_CH1 | + CX25840_SVIDEO_ON, + .amux = CX25840_AUDIO7, + } }, }, [CX23885_BOARD_HAUPPAUGE_STARBURST2] = { .name = "Hauppauge WinTV-Starburst2",
Signature · 1 line
2.7.4
PATCH 5/8 cx231xx: Set mfe_shared if second frontend found
In reply to Brad LoveIf frontend[1] exists, then enable the dvb adapter mfe lock system.
--- drivers/media/usb/cx231xx/cx231xx-dvb.c | 3 +++ 1 file changed, 3 insertions(+)
drivers/media/usb/cx231xx/cx231xx-dvb.c +3 -0
@@ -504,6 +504,9 @@ static int register_dvb(struct cx231xx_dvb *dvb, dev->name, result); goto fail_frontend1; } + +/* MFE lock */ + dvb->adapter.mfe_shared =1 ; }/* register demux stuff */
Signature · 1 line
2.7.4
PATCH 6/8 cx231xx: Use constant instead of hard code for max
In reply to Brad LoveNit regarding hard coded value.
--- drivers/media/usb/cx231xx/cx231xx-dvb.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/media/usb/cx231xx/cx231xx-dvb.c +2 -1
@@ -53,9 +53,10 @@ DVB_DEFINE_MOD_OPT_ADAPTER_NR(adapter_nr);#define CX231XX_DVB_NUM_BUFS 5#define CX231XX_DVB_MAX_PACKETSIZE 564#define CX231XX_DVB_MAX_PACKETS 64 +#define CX231XX_DVB_MAX_FRONTENDS 2struct cx231xx_dvb { -struct dvb_frontend *frontend[2 ]; +struct dvb_frontend *frontend[CX231XX_DVB_MAX_FRONTENDS ];/* feed count management */ struct mutex lock;
Signature · 1 line
2.7.4
PATCH 7/8 cx231xx: Add second i2c demod to Hauppauge 975
In reply to Brad LoveHauppauge HVR-975 is a hybrid, dual frontend, single tuner USB device. It contains lgdt3306a and si2168 frontends and one si2157 tuner. The lgdt3306a frontend is currently enabled. This creates the second demodulator and attaches it to the tuner.
Enables lgdt3306a|si2168 + si2157
--- drivers/media/usb/cx231xx/cx231xx-cards.c | 1 + drivers/media/usb/cx231xx/cx231xx-dvb.c | 52 +++++++++++++++++++++++++++++-- 2 files changed, 50 insertions(+), 3 deletions(-)
drivers/media/usb/cx231xx/cx231xx-cards.c +1 -0
@@ -979,6 +979,7 @@ struct cx231xx_board cx231xx_boards[] = { .demod_i2c_master = I2C_1_MUX_3, .has_dvb = 1, .demod_addr = 0x59, /* 0xb2 >> 1 */ + .demod_addr2 = 0x64, /* 0xc8 >> 1 */ .norm = V4L2_STD_ALL, .input = {{
drivers/media/usb/cx231xx/cx231xx-dvb.c +49 -3
92 lines not on this page · raw message
Signature · 1 line
2.7.4
PATCH 8/8 cx23885: Fix gpio on Hauppauge QuadHD PCIe cards
In reply to Brad LoveBug fix for gpios
--- drivers/media/pci/cx23885/cx23885-cards.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/media/pci/cx23885/cx23885-cards.c +2 -2
@@ -1828,8 +1828,6 @@ void cx23885_gpio_setup(struct cx23885_dev *dev)cx23885_gpio_set (dev,GPIO_2 );break ;case CX23885_BOARD_HAUPPAUGE_HVR5525 : -case CX23885_BOARD_HAUPPAUGE_QUADHD_DVB : -case CX23885_BOARD_HAUPPAUGE_QUADHD_ATSC :case CX23885_BOARD_HAUPPAUGE_STARBURST2 :/* * HVR5525 GPIO Details:
@@ -1861,7 +1859,9 @@ void cx23885_gpio_setup(struct cx23885_dev *dev)*/ break ;case CX23885_BOARD_HAUPPAUGE_HVR1265_K4 : +case CX23885_BOARD_HAUPPAUGE_QUADHD_DVB :case CX23885_BOARD_HAUPPAUGE_QUADHD_DVB_885 : +case CX23885_BOARD_HAUPPAUGE_QUADHD_ATSC :case CX23885_BOARD_HAUPPAUGE_QUADHD_ATSC_885 :/* * GPIO-08 TER1_RESN
Signature · 1 line
2.7.4