diff options
author | Olli Salonen <olli.salonen@iki.fi> | 2014-10-26 03:56:12 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2014-11-03 09:26:56 -0500 |
commit | e5f3d00c243177f4d7a0e86d17b7eaefd4a0c908 (patch) | |
tree | 724bc2a02542f4727f328689d1ccf1b8ae530d68 | |
parent | dcc33cc57d4ad095df694a102c54b8342b814582 (diff) |
[media] cxusb: TS mode setting for TT CT2-4400
There is a new version of the TechnoTrend CT2-4400 USB tuner. The difference is the demodulator that is used (Si2168-B40 instead of -A30).
For TT CT2-4400v2 a TS stream related parameter needs to be set, otherwise the stream becomes corrupted. The Windows driver for both CT2-4400 and CT2-4400v2 sets this as well. After this patch the driver works for both versions.
Signed-off-by: Olli Salonen <olli.salonen@iki.fi>
Reviewed-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
-rw-r--r-- | drivers/media/usb/dvb-usb/cxusb.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/media/usb/dvb-usb/cxusb.c b/drivers/media/usb/dvb-usb/cxusb.c index 356abb369c20..8925b3946994 100644 --- a/drivers/media/usb/dvb-usb/cxusb.c +++ b/drivers/media/usb/dvb-usb/cxusb.c | |||
@@ -1438,6 +1438,12 @@ static int cxusb_tt_ct2_4400_attach(struct dvb_usb_adapter *adap) | |||
1438 | si2168_config.i2c_adapter = &adapter; | 1438 | si2168_config.i2c_adapter = &adapter; |
1439 | si2168_config.fe = &adap->fe_adap[0].fe; | 1439 | si2168_config.fe = &adap->fe_adap[0].fe; |
1440 | si2168_config.ts_mode = SI2168_TS_PARALLEL; | 1440 | si2168_config.ts_mode = SI2168_TS_PARALLEL; |
1441 | |||
1442 | /* CT2-4400v2 TS gets corrupted without this */ | ||
1443 | if (d->udev->descriptor.idProduct == | ||
1444 | USB_PID_TECHNOTREND_TVSTICK_CT2_4400) | ||
1445 | si2168_config.ts_mode |= 0x40; | ||
1446 | |||
1441 | memset(&info, 0, sizeof(struct i2c_board_info)); | 1447 | memset(&info, 0, sizeof(struct i2c_board_info)); |
1442 | strlcpy(info.type, "si2168", I2C_NAME_SIZE); | 1448 | strlcpy(info.type, "si2168", I2C_NAME_SIZE); |
1443 | info.addr = 0x64; | 1449 | info.addr = 0x64; |