aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/pci
diff options
context:
space:
mode:
authorAntti Palosaari <crope@iki.fi>2015-03-23 17:52:46 -0400
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>2015-04-02 21:24:52 -0400
commitd76e08784cb8c08669613b6c1103452b5e4094c0 (patch)
tree00684e1962466847fa8da6fd7939164dfc660ee7 /drivers/media/pci
parent83c1b6ce7562efe157faac04d388144e1fd3c053 (diff)
[media] cx23885: switch ts2022 to ts2020 driver
Change ts2022 driver to ts2020 driver. ts2020 driver supports both chip models. Cc: Olli Salonen <olli.salonen@iki.fi> Cc: Nibble Max <nibble.max@gmail.com> Tested-by: David Howells <dhowells@redhat.com> Signed-off-by: Antti Palosaari <crope@iki.fi> Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'drivers/media/pci')
-rw-r--r--drivers/media/pci/cx23885/Kconfig1
-rw-r--r--drivers/media/pci/cx23885/cx23885-dvb.c30
2 files changed, 13 insertions, 18 deletions
diff --git a/drivers/media/pci/cx23885/Kconfig b/drivers/media/pci/cx23885/Kconfig
index 74d774e5227b..2e1b88ccdbf2 100644
--- a/drivers/media/pci/cx23885/Kconfig
+++ b/drivers/media/pci/cx23885/Kconfig
@@ -40,7 +40,6 @@ config VIDEO_CX23885
40 select MEDIA_TUNER_TDA18271 if MEDIA_SUBDRV_AUTOSELECT 40 select MEDIA_TUNER_TDA18271 if MEDIA_SUBDRV_AUTOSELECT
41 select MEDIA_TUNER_XC5000 if MEDIA_SUBDRV_AUTOSELECT 41 select MEDIA_TUNER_XC5000 if MEDIA_SUBDRV_AUTOSELECT
42 select MEDIA_TUNER_SI2157 if MEDIA_SUBDRV_AUTOSELECT 42 select MEDIA_TUNER_SI2157 if MEDIA_SUBDRV_AUTOSELECT
43 select MEDIA_TUNER_M88TS2022 if MEDIA_SUBDRV_AUTOSELECT
44 select MEDIA_TUNER_M88RS6000T if MEDIA_SUBDRV_AUTOSELECT 43 select MEDIA_TUNER_M88RS6000T if MEDIA_SUBDRV_AUTOSELECT
45 select DVB_TUNER_DIB0070 if MEDIA_SUBDRV_AUTOSELECT 44 select DVB_TUNER_DIB0070 if MEDIA_SUBDRV_AUTOSELECT
46 ---help--- 45 ---help---
diff --git a/drivers/media/pci/cx23885/cx23885-dvb.c b/drivers/media/pci/cx23885/cx23885-dvb.c
index 45fbe1e4d2d0..745caabe3397 100644
--- a/drivers/media/pci/cx23885/cx23885-dvb.c
+++ b/drivers/media/pci/cx23885/cx23885-dvb.c
@@ -73,7 +73,6 @@
73#include "si2157.h" 73#include "si2157.h"
74#include "sp2.h" 74#include "sp2.h"
75#include "m88ds3103.h" 75#include "m88ds3103.h"
76#include "m88ts2022.h"
77#include "m88rs6000t.h" 76#include "m88rs6000t.h"
78 77
79static unsigned int debug; 78static unsigned int debug;
@@ -1187,7 +1186,7 @@ static int dvb_register(struct cx23885_tsport *port)
1187 struct vb2_dvb_frontend *fe0, *fe1 = NULL; 1186 struct vb2_dvb_frontend *fe0, *fe1 = NULL;
1188 struct si2168_config si2168_config; 1187 struct si2168_config si2168_config;
1189 struct si2157_config si2157_config; 1188 struct si2157_config si2157_config;
1190 struct m88ts2022_config m88ts2022_config; 1189 struct ts2020_config ts2020_config;
1191 struct i2c_board_info info; 1190 struct i2c_board_info info;
1192 struct i2c_adapter *adapter; 1191 struct i2c_adapter *adapter;
1193 struct i2c_client *client_demod = NULL, *client_tuner = NULL; 1192 struct i2c_client *client_demod = NULL, *client_tuner = NULL;
@@ -1856,13 +1855,12 @@ static int dvb_register(struct cx23885_tsport *port)
1856 break; 1855 break;
1857 1856
1858 /* attach tuner */ 1857 /* attach tuner */
1859 memset(&m88ts2022_config, 0, sizeof(m88ts2022_config)); 1858 memset(&ts2020_config, 0, sizeof(ts2020_config));
1860 m88ts2022_config.fe = fe0->dvb.frontend; 1859 ts2020_config.fe = fe0->dvb.frontend;
1861 m88ts2022_config.clock = 27000000;
1862 memset(&info, 0, sizeof(struct i2c_board_info)); 1860 memset(&info, 0, sizeof(struct i2c_board_info));
1863 strlcpy(info.type, "m88ts2022", I2C_NAME_SIZE); 1861 strlcpy(info.type, "ts2020", I2C_NAME_SIZE);
1864 info.addr = 0x60; 1862 info.addr = 0x60;
1865 info.platform_data = &m88ts2022_config; 1863 info.platform_data = &ts2020_config;
1866 request_module(info.type); 1864 request_module(info.type);
1867 client_tuner = i2c_new_device(adapter, &info); 1865 client_tuner = i2c_new_device(adapter, &info);
1868 if (client_tuner == NULL || 1866 if (client_tuner == NULL ||
@@ -1986,13 +1984,12 @@ static int dvb_register(struct cx23885_tsport *port)
1986 break; 1984 break;
1987 1985
1988 /* attach tuner */ 1986 /* attach tuner */
1989 memset(&m88ts2022_config, 0, sizeof(m88ts2022_config)); 1987 memset(&ts2020_config, 0, sizeof(ts2020_config));
1990 m88ts2022_config.fe = fe0->dvb.frontend; 1988 ts2020_config.fe = fe0->dvb.frontend;
1991 m88ts2022_config.clock = 27000000;
1992 memset(&info, 0, sizeof(struct i2c_board_info)); 1989 memset(&info, 0, sizeof(struct i2c_board_info));
1993 strlcpy(info.type, "m88ts2022", I2C_NAME_SIZE); 1990 strlcpy(info.type, "ts2020", I2C_NAME_SIZE);
1994 info.addr = 0x60; 1991 info.addr = 0x60;
1995 info.platform_data = &m88ts2022_config; 1992 info.platform_data = &ts2020_config;
1996 request_module(info.type); 1993 request_module(info.type);
1997 client_tuner = i2c_new_device(adapter, &info); 1994 client_tuner = i2c_new_device(adapter, &info);
1998 if (client_tuner == NULL || client_tuner->dev.driver == NULL) 1995 if (client_tuner == NULL || client_tuner->dev.driver == NULL)
@@ -2032,13 +2029,12 @@ static int dvb_register(struct cx23885_tsport *port)
2032 break; 2029 break;
2033 2030
2034 /* attach tuner */ 2031 /* attach tuner */
2035 memset(&m88ts2022_config, 0, sizeof(m88ts2022_config)); 2032 memset(&ts2020_config, 0, sizeof(ts2020_config));
2036 m88ts2022_config.fe = fe0->dvb.frontend; 2033 ts2020_config.fe = fe0->dvb.frontend;
2037 m88ts2022_config.clock = 27000000;
2038 memset(&info, 0, sizeof(struct i2c_board_info)); 2034 memset(&info, 0, sizeof(struct i2c_board_info));
2039 strlcpy(info.type, "m88ts2022", I2C_NAME_SIZE); 2035 strlcpy(info.type, "ts2020", I2C_NAME_SIZE);
2040 info.addr = 0x60; 2036 info.addr = 0x60;
2041 info.platform_data = &m88ts2022_config; 2037 info.platform_data = &ts2020_config;
2042 request_module(info.type); 2038 request_module(info.type);
2043 client_tuner = i2c_new_device(adapter, &info); 2039 client_tuner = i2c_new_device(adapter, &info);
2044 if (client_tuner == NULL || client_tuner->dev.driver == NULL) 2040 if (client_tuner == NULL || client_tuner->dev.driver == NULL)