diff options
author | Antti Palosaari <crope@iki.fi> | 2015-03-23 17:33:29 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2015-04-02 21:24:25 -0400 |
commit | 83c1b6ce7562efe157faac04d388144e1fd3c053 (patch) | |
tree | a319df21a83be1c75451361bff9a98fc415550e0 /drivers/media | |
parent | dc245a5f9b5163511e0c164c8aa47848f07b75a9 (diff) |
[media] em28xx: switch PCTV 461e to ts2020 driver
Change ts2022 driver to ts2020 driver as ts2020 driver now supports
both models.
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/em28xx/Kconfig | 2 | ||||
-rw-r--r-- | drivers/media/usb/em28xx/em28xx-dvb.c | 13 |
2 files changed, 7 insertions, 8 deletions
diff --git a/drivers/media/usb/em28xx/Kconfig b/drivers/media/usb/em28xx/Kconfig index f5d7198753c7..e382210c4ada 100644 --- a/drivers/media/usb/em28xx/Kconfig +++ b/drivers/media/usb/em28xx/Kconfig | |||
@@ -55,7 +55,7 @@ config VIDEO_EM28XX_DVB | |||
55 | select MEDIA_TUNER_TDA18271 if MEDIA_SUBDRV_AUTOSELECT | 55 | select MEDIA_TUNER_TDA18271 if MEDIA_SUBDRV_AUTOSELECT |
56 | select MEDIA_TUNER_TDA18212 if MEDIA_SUBDRV_AUTOSELECT | 56 | select MEDIA_TUNER_TDA18212 if MEDIA_SUBDRV_AUTOSELECT |
57 | select DVB_M88DS3103 if MEDIA_SUBDRV_AUTOSELECT | 57 | select DVB_M88DS3103 if MEDIA_SUBDRV_AUTOSELECT |
58 | select MEDIA_TUNER_M88TS2022 if MEDIA_SUBDRV_AUTOSELECT | 58 | select DVB_TS2020 if MEDIA_SUBDRV_AUTOSELECT |
59 | select DVB_DRX39XYJ if MEDIA_SUBDRV_AUTOSELECT | 59 | select DVB_DRX39XYJ if MEDIA_SUBDRV_AUTOSELECT |
60 | select DVB_SI2168 if MEDIA_SUBDRV_AUTOSELECT | 60 | select DVB_SI2168 if MEDIA_SUBDRV_AUTOSELECT |
61 | select MEDIA_TUNER_SI2157 if MEDIA_SUBDRV_AUTOSELECT | 61 | select MEDIA_TUNER_SI2157 if MEDIA_SUBDRV_AUTOSELECT |
diff --git a/drivers/media/usb/em28xx/em28xx-dvb.c b/drivers/media/usb/em28xx/em28xx-dvb.c index 6bfe81d97eba..a5b22c5a240c 100644 --- a/drivers/media/usb/em28xx/em28xx-dvb.c +++ b/drivers/media/usb/em28xx/em28xx-dvb.c | |||
@@ -54,7 +54,7 @@ | |||
54 | #include "qt1010.h" | 54 | #include "qt1010.h" |
55 | #include "mb86a20s.h" | 55 | #include "mb86a20s.h" |
56 | #include "m88ds3103.h" | 56 | #include "m88ds3103.h" |
57 | #include "m88ts2022.h" | 57 | #include "ts2020.h" |
58 | #include "si2168.h" | 58 | #include "si2168.h" |
59 | #include "si2157.h" | 59 | #include "si2157.h" |
60 | 60 | ||
@@ -1492,8 +1492,7 @@ static int em28xx_dvb_init(struct em28xx *dev) | |||
1492 | struct i2c_adapter *i2c_adapter; | 1492 | struct i2c_adapter *i2c_adapter; |
1493 | struct i2c_client *client; | 1493 | struct i2c_client *client; |
1494 | struct i2c_board_info info; | 1494 | struct i2c_board_info info; |
1495 | struct m88ts2022_config m88ts2022_config = { | 1495 | struct ts2020_config ts2020_config = { |
1496 | .clock = 27000000, | ||
1497 | }; | 1496 | }; |
1498 | memset(&info, 0, sizeof(struct i2c_board_info)); | 1497 | memset(&info, 0, sizeof(struct i2c_board_info)); |
1499 | 1498 | ||
@@ -1508,11 +1507,11 @@ static int em28xx_dvb_init(struct em28xx *dev) | |||
1508 | } | 1507 | } |
1509 | 1508 | ||
1510 | /* attach tuner */ | 1509 | /* attach tuner */ |
1511 | m88ts2022_config.fe = dvb->fe[0]; | 1510 | ts2020_config.fe = dvb->fe[0]; |
1512 | strlcpy(info.type, "m88ts2022", I2C_NAME_SIZE); | 1511 | strlcpy(info.type, "ts2022", I2C_NAME_SIZE); |
1513 | info.addr = 0x60; | 1512 | info.addr = 0x60; |
1514 | info.platform_data = &m88ts2022_config; | 1513 | info.platform_data = &ts2020_config; |
1515 | request_module("m88ts2022"); | 1514 | request_module("ts2020"); |
1516 | client = i2c_new_device(i2c_adapter, &info); | 1515 | client = i2c_new_device(i2c_adapter, &info); |
1517 | if (client == NULL || client->dev.driver == NULL) { | 1516 | if (client == NULL || client->dev.driver == NULL) { |
1518 | dvb_frontend_detach(dvb->fe[0]); | 1517 | dvb_frontend_detach(dvb->fe[0]); |