diff options
author | Antti Palosaari <crope@iki.fi> | 2015-03-23 19:32:39 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2015-04-02 21:25:52 -0400 |
commit | f31a6386000eb1459e89099867723e9bcc513fd6 (patch) | |
tree | afdd3b918d42f4c27ee1a060622120c4ee1b6c54 /drivers/media | |
parent | 2ad8dd417a6af899d6298869bf6d2f76b1eab6a6 (diff) |
[media] dvbsky: switch ts2022 to ts2020 driver
Change ts2022 driver to ts2020 driver. ts2020 driver supports
both tuner chip models.
Cc: Nibble Max <nibble.max@gmail.com>
Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'drivers/media')
-rw-r--r-- | drivers/media/usb/dvb-usb-v2/Kconfig | 2 | ||||
-rw-r--r-- | drivers/media/usb/dvb-usb-v2/dvbsky.c | 26 |
2 files changed, 12 insertions, 16 deletions
diff --git a/drivers/media/usb/dvb-usb-v2/Kconfig b/drivers/media/usb/dvb-usb-v2/Kconfig index 0982e734fab5..9facc92c8dea 100644 --- a/drivers/media/usb/dvb-usb-v2/Kconfig +++ b/drivers/media/usb/dvb-usb-v2/Kconfig | |||
@@ -146,7 +146,7 @@ config DVB_USB_DVBSKY | |||
146 | depends on DVB_USB_V2 | 146 | depends on DVB_USB_V2 |
147 | select DVB_M88DS3103 if MEDIA_SUBDRV_AUTOSELECT | 147 | select DVB_M88DS3103 if MEDIA_SUBDRV_AUTOSELECT |
148 | select DVB_SI2168 if MEDIA_SUBDRV_AUTOSELECT | 148 | select DVB_SI2168 if MEDIA_SUBDRV_AUTOSELECT |
149 | select MEDIA_TUNER_M88TS2022 if MEDIA_SUBDRV_AUTOSELECT | 149 | select DVB_TS2020 if MEDIA_SUBDRV_AUTOSELECT |
150 | select MEDIA_TUNER_SI2157 if MEDIA_SUBDRV_AUTOSELECT | 150 | select MEDIA_TUNER_SI2157 if MEDIA_SUBDRV_AUTOSELECT |
151 | select DVB_SP2 if MEDIA_SUBDRV_AUTOSELECT | 151 | select DVB_SP2 if MEDIA_SUBDRV_AUTOSELECT |
152 | help | 152 | help |
diff --git a/drivers/media/usb/dvb-usb-v2/dvbsky.c b/drivers/media/usb/dvb-usb-v2/dvbsky.c index 9b5add4499e3..cdf59bcd760c 100644 --- a/drivers/media/usb/dvb-usb-v2/dvbsky.c +++ b/drivers/media/usb/dvb-usb-v2/dvbsky.c | |||
@@ -20,7 +20,7 @@ | |||
20 | 20 | ||
21 | #include "dvb_usb.h" | 21 | #include "dvb_usb.h" |
22 | #include "m88ds3103.h" | 22 | #include "m88ds3103.h" |
23 | #include "m88ts2022.h" | 23 | #include "ts2020.h" |
24 | #include "sp2.h" | 24 | #include "sp2.h" |
25 | #include "si2168.h" | 25 | #include "si2168.h" |
26 | #include "si2157.h" | 26 | #include "si2157.h" |
@@ -315,9 +315,7 @@ static int dvbsky_s960_attach(struct dvb_usb_adapter *adap) | |||
315 | struct i2c_adapter *i2c_adapter; | 315 | struct i2c_adapter *i2c_adapter; |
316 | struct i2c_client *client; | 316 | struct i2c_client *client; |
317 | struct i2c_board_info info; | 317 | struct i2c_board_info info; |
318 | struct m88ts2022_config m88ts2022_config = { | 318 | struct ts2020_config ts2020_config = {}; |
319 | .clock = 27000000, | ||
320 | }; | ||
321 | memset(&info, 0, sizeof(struct i2c_board_info)); | 319 | memset(&info, 0, sizeof(struct i2c_board_info)); |
322 | 320 | ||
323 | /* attach demod */ | 321 | /* attach demod */ |
@@ -332,11 +330,11 @@ static int dvbsky_s960_attach(struct dvb_usb_adapter *adap) | |||
332 | } | 330 | } |
333 | 331 | ||
334 | /* attach tuner */ | 332 | /* attach tuner */ |
335 | m88ts2022_config.fe = adap->fe[0]; | 333 | ts2020_config.fe = adap->fe[0]; |
336 | strlcpy(info.type, "m88ts2022", I2C_NAME_SIZE); | 334 | strlcpy(info.type, "ts2020", I2C_NAME_SIZE); |
337 | info.addr = 0x60; | 335 | info.addr = 0x60; |
338 | info.platform_data = &m88ts2022_config; | 336 | info.platform_data = &ts2020_config; |
339 | request_module("m88ts2022"); | 337 | request_module("ts2020"); |
340 | client = i2c_new_device(i2c_adapter, &info); | 338 | client = i2c_new_device(i2c_adapter, &info); |
341 | if (client == NULL || client->dev.driver == NULL) { | 339 | if (client == NULL || client->dev.driver == NULL) { |
342 | dvb_frontend_detach(adap->fe[0]); | 340 | dvb_frontend_detach(adap->fe[0]); |
@@ -439,9 +437,7 @@ static int dvbsky_s960c_attach(struct dvb_usb_adapter *adap) | |||
439 | struct i2c_client *client_tuner, *client_ci; | 437 | struct i2c_client *client_tuner, *client_ci; |
440 | struct i2c_board_info info; | 438 | struct i2c_board_info info; |
441 | struct sp2_config sp2_config; | 439 | struct sp2_config sp2_config; |
442 | struct m88ts2022_config m88ts2022_config = { | 440 | struct ts2020_config ts2020_config = {}; |
443 | .clock = 27000000, | ||
444 | }; | ||
445 | memset(&info, 0, sizeof(struct i2c_board_info)); | 441 | memset(&info, 0, sizeof(struct i2c_board_info)); |
446 | 442 | ||
447 | /* attach demod */ | 443 | /* attach demod */ |
@@ -456,11 +452,11 @@ static int dvbsky_s960c_attach(struct dvb_usb_adapter *adap) | |||
456 | } | 452 | } |
457 | 453 | ||
458 | /* attach tuner */ | 454 | /* attach tuner */ |
459 | m88ts2022_config.fe = adap->fe[0]; | 455 | ts2020_config.fe = adap->fe[0]; |
460 | strlcpy(info.type, "m88ts2022", I2C_NAME_SIZE); | 456 | strlcpy(info.type, "ts2020", I2C_NAME_SIZE); |
461 | info.addr = 0x60; | 457 | info.addr = 0x60; |
462 | info.platform_data = &m88ts2022_config; | 458 | info.platform_data = &ts2020_config; |
463 | request_module("m88ts2022"); | 459 | request_module("ts2020"); |
464 | client_tuner = i2c_new_device(i2c_adapter, &info); | 460 | client_tuner = i2c_new_device(i2c_adapter, &info); |
465 | if (client_tuner == NULL || client_tuner->dev.driver == NULL) { | 461 | if (client_tuner == NULL || client_tuner->dev.driver == NULL) { |
466 | ret = -ENODEV; | 462 | ret = -ENODEV; |