diff options
author | Antti Palosaari <crope@iki.fi> | 2015-03-23 19:22:28 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2015-04-02 21:25:14 -0400 |
commit | 2ad8dd417a6af899d6298869bf6d2f76b1eab6a6 (patch) | |
tree | f790e50f0fc326798c7e1dd7a108e2b15ac2719b | |
parent | d76e08784cb8c08669613b6c1103452b5e4094c0 (diff) |
[media] smipcie: 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>
-rw-r--r-- | drivers/media/pci/smipcie/Kconfig | 2 | ||||
-rw-r--r-- | drivers/media/pci/smipcie/smipcie.c | 12 |
2 files changed, 6 insertions, 8 deletions
diff --git a/drivers/media/pci/smipcie/Kconfig b/drivers/media/pci/smipcie/Kconfig index c8de53f5ea28..21a1583dbd8f 100644 --- a/drivers/media/pci/smipcie/Kconfig +++ b/drivers/media/pci/smipcie/Kconfig | |||
@@ -4,7 +4,7 @@ config DVB_SMIPCIE | |||
4 | select I2C_ALGOBIT | 4 | select I2C_ALGOBIT |
5 | select DVB_M88DS3103 if MEDIA_SUBDRV_AUTOSELECT | 5 | select DVB_M88DS3103 if MEDIA_SUBDRV_AUTOSELECT |
6 | select DVB_SI2168 if MEDIA_SUBDRV_AUTOSELECT | 6 | select DVB_SI2168 if MEDIA_SUBDRV_AUTOSELECT |
7 | select MEDIA_TUNER_M88TS2022 if MEDIA_SUBDRV_AUTOSELECT | 7 | select DVB_TS2020 if MEDIA_SUBDRV_AUTOSELECT |
8 | select MEDIA_TUNER_M88RS6000T if MEDIA_SUBDRV_AUTOSELECT | 8 | select MEDIA_TUNER_M88RS6000T if MEDIA_SUBDRV_AUTOSELECT |
9 | select MEDIA_TUNER_SI2157 if MEDIA_SUBDRV_AUTOSELECT | 9 | select MEDIA_TUNER_SI2157 if MEDIA_SUBDRV_AUTOSELECT |
10 | help | 10 | help |
diff --git a/drivers/media/pci/smipcie/smipcie.c b/drivers/media/pci/smipcie/smipcie.c index 36c8ed77309c..411592524c63 100644 --- a/drivers/media/pci/smipcie/smipcie.c +++ b/drivers/media/pci/smipcie/smipcie.c | |||
@@ -16,7 +16,7 @@ | |||
16 | 16 | ||
17 | #include "smipcie.h" | 17 | #include "smipcie.h" |
18 | #include "m88ds3103.h" | 18 | #include "m88ds3103.h" |
19 | #include "m88ts2022.h" | 19 | #include "ts2020.h" |
20 | #include "m88rs6000t.h" | 20 | #include "m88rs6000t.h" |
21 | #include "si2168.h" | 21 | #include "si2168.h" |
22 | #include "si2157.h" | 22 | #include "si2157.h" |
@@ -532,9 +532,7 @@ static int smi_dvbsky_m88ds3103_fe_attach(struct smi_port *port) | |||
532 | struct i2c_adapter *tuner_i2c_adapter; | 532 | struct i2c_adapter *tuner_i2c_adapter; |
533 | struct i2c_client *tuner_client; | 533 | struct i2c_client *tuner_client; |
534 | struct i2c_board_info tuner_info; | 534 | struct i2c_board_info tuner_info; |
535 | struct m88ts2022_config m88ts2022_config = { | 535 | struct ts2020_config ts2020_config = {}; |
536 | .clock = 27000000, | ||
537 | }; | ||
538 | memset(&tuner_info, 0, sizeof(struct i2c_board_info)); | 536 | memset(&tuner_info, 0, sizeof(struct i2c_board_info)); |
539 | i2c = (port->idx == 0) ? &dev->i2c_bus[0] : &dev->i2c_bus[1]; | 537 | i2c = (port->idx == 0) ? &dev->i2c_bus[0] : &dev->i2c_bus[1]; |
540 | 538 | ||
@@ -546,10 +544,10 @@ static int smi_dvbsky_m88ds3103_fe_attach(struct smi_port *port) | |||
546 | return ret; | 544 | return ret; |
547 | } | 545 | } |
548 | /* attach tuner */ | 546 | /* attach tuner */ |
549 | m88ts2022_config.fe = port->fe; | 547 | ts2020_config.fe = port->fe; |
550 | strlcpy(tuner_info.type, "m88ts2022", I2C_NAME_SIZE); | 548 | strlcpy(tuner_info.type, "ts2020", I2C_NAME_SIZE); |
551 | tuner_info.addr = 0x60; | 549 | tuner_info.addr = 0x60; |
552 | tuner_info.platform_data = &m88ts2022_config; | 550 | tuner_info.platform_data = &ts2020_config; |
553 | tuner_client = smi_add_i2c_client(tuner_i2c_adapter, &tuner_info); | 551 | tuner_client = smi_add_i2c_client(tuner_i2c_adapter, &tuner_info); |
554 | if (!tuner_client) { | 552 | if (!tuner_client) { |
555 | ret = -ENODEV; | 553 | ret = -ENODEV; |