Re: si2157 driver

2016-06-29 Thread Oleh Kravchenko
Hi Olli,
thanks for fast reply.

It's possible to improve driver to support analog mode?

I try to find datasheet for this chip,
but looks like only short version is a public.


On 29.06.16 07:42, Olli Salonen wrote:
> Hi Oleg,
> 
> Correct, only digital TV is supported currently by the driver.
> 
> Cheers,
> -olli
> 
> On 28 June 2016 at 23:22, Oleh Kravchenko  wrote:
>> Hello linux media developers!
>>
>> I try add support for usb hybrid tuner, it based on:
>> CX23102-112, Si2158, Si2168
>>
>> I updated cx231xx-cards.c with valid ids, but I don't have idea how to
>> use Si2158.
>> It is not listed in tuner-types.c
>>
>> Why si2157.c is absent in tuner-types.c?
>> Or at the current state si2157.c don't have analog support?
>> --
>> To unsubscribe from this list: send the line "unsubscribe linux-media" in
>> the body of a message to majord...@vger.kernel.org
>> More majordomo info at  http://vger.kernel.org/majordomo-info.html
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: si2157 driver

2016-06-28 Thread Olli Salonen
Hi Oleg,

Correct, only digital TV is supported currently by the driver.

Cheers,
-olli

On 28 June 2016 at 23:22, Oleh Kravchenko  wrote:
> Hello linux media developers!
>
> I try add support for usb hybrid tuner, it based on:
> CX23102-112, Si2158, Si2168
>
> I updated cx231xx-cards.c with valid ids, but I don't have idea how to
> use Si2158.
> It is not listed in tuner-types.c
>
> Why si2157.c is absent in tuner-types.c?
> Or at the current state si2157.c don't have analog support?
> --
> To unsubscribe from this list: send the line "unsubscribe linux-media" in
> the body of a message to majord...@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


si2157 driver

2016-06-28 Thread Oleh Kravchenko
Hello linux media developers!

I try add support for usb hybrid tuner, it based on:
CX23102-112, Si2158, Si2168

I updated cx231xx-cards.c with valid ids, but I don't have idea how to
use Si2158.
It is not listed in tuner-types.c

Why si2157.c is absent in tuner-types.c?
Or at the current state si2157.c don't have analog support?
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [PATCH 1/3] cxusb: Prepare for si2157 driver getting more parameters

2014-07-18 Thread Antti Palosaari

Patch applied.

http://git.linuxtv.org/cgit.cgi/anttip/media_tree.git/log/?h=silabs

Antti

On 07/15/2014 10:34 PM, Matthias Schwarzott wrote:

Modify all users of si2157_config to correctly initialize all not
listed values to 0.

Signed-off-by: Matthias Schwarzott z...@gentoo.org
---
  drivers/media/usb/dvb-usb/cxusb.c | 1 +
  1 file changed, 1 insertion(+)

diff --git a/drivers/media/usb/dvb-usb/cxusb.c 
b/drivers/media/usb/dvb-usb/cxusb.c
index ad20c39..285213c 100644
--- a/drivers/media/usb/dvb-usb/cxusb.c
+++ b/drivers/media/usb/dvb-usb/cxusb.c
@@ -1371,6 +1371,7 @@ static int cxusb_tt_ct2_4400_attach(struct 
dvb_usb_adapter *adap)
st-i2c_client_demod = client_demod;

/* attach tuner */
+   memset(si2157_config, 0, sizeof(si2157_config));
si2157_config.fe = adap-fe_adap[0].fe;
memset(info, 0, sizeof(struct i2c_board_info));
strlcpy(info.type, si2157, I2C_NAME_SIZE);



--
http://palosaari.fi/
--
To unsubscribe from this list: send the line unsubscribe linux-media in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [PATCH 2/3] em28xx-dvb: Prepare for si2157 driver getting more parameters

2014-07-18 Thread Antti Palosaari

Patch applied.

http://git.linuxtv.org/cgit.cgi/anttip/media_tree.git/log/?h=silabs

Antti


On 07/15/2014 10:34 PM, Matthias Schwarzott wrote:

Modify all users of si2157_config to correctly initialize all not
listed values to 0.

Signed-off-by: Matthias Schwarzott z...@gentoo.org
---
  drivers/media/usb/em28xx/em28xx-dvb.c | 1 +
  1 file changed, 1 insertion(+)

diff --git a/drivers/media/usb/em28xx/em28xx-dvb.c 
b/drivers/media/usb/em28xx/em28xx-dvb.c
index a121ed9..96a0bdb 100644
--- a/drivers/media/usb/em28xx/em28xx-dvb.c
+++ b/drivers/media/usb/em28xx/em28xx-dvb.c
@@ -1545,6 +1545,7 @@ static int em28xx_dvb_init(struct em28xx *dev)
dvb-i2c_client_demod = client;

/* attach tuner */
+   memset(si2157_config, 0, sizeof(si2157_config));
si2157_config.fe = dvb-fe[0];
memset(info, 0, sizeof(struct i2c_board_info));
strlcpy(info.type, si2157, I2C_NAME_SIZE);



--
http://palosaari.fi/
--
To unsubscribe from this list: send the line unsubscribe linux-media in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[PATCH 07/10] cxusb: Prepare for si2157 driver getting more parameters

2014-07-18 Thread Antti Palosaari
From: Matthias Schwarzott z...@gentoo.org

Modify all users of si2157_config to correctly initialize all not
listed values to 0.

Signed-off-by: Matthias Schwarzott z...@gentoo.org
Signed-off-by: Antti Palosaari cr...@iki.fi
---
 drivers/media/usb/dvb-usb/cxusb.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/media/usb/dvb-usb/cxusb.c 
b/drivers/media/usb/dvb-usb/cxusb.c
index ad20c39..285213c 100644
--- a/drivers/media/usb/dvb-usb/cxusb.c
+++ b/drivers/media/usb/dvb-usb/cxusb.c
@@ -1371,6 +1371,7 @@ static int cxusb_tt_ct2_4400_attach(struct 
dvb_usb_adapter *adap)
st-i2c_client_demod = client_demod;
 
/* attach tuner */
+   memset(si2157_config, 0, sizeof(si2157_config));
si2157_config.fe = adap-fe_adap[0].fe;
memset(info, 0, sizeof(struct i2c_board_info));
strlcpy(info.type, si2157, I2C_NAME_SIZE);
-- 
1.9.3

--
To unsubscribe from this list: send the line unsubscribe linux-media in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[PATCH 08/10] em28xx-dvb: Prepare for si2157 driver getting more parameters

2014-07-18 Thread Antti Palosaari
From: Matthias Schwarzott z...@gentoo.org

Modify all users of si2157_config to correctly initialize all not
listed values to 0.

Signed-off-by: Matthias Schwarzott z...@gentoo.org
Signed-off-by: Antti Palosaari cr...@iki.fi
---
 drivers/media/usb/em28xx/em28xx-dvb.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/media/usb/em28xx/em28xx-dvb.c 
b/drivers/media/usb/em28xx/em28xx-dvb.c
index a121ed9..96a0bdb 100644
--- a/drivers/media/usb/em28xx/em28xx-dvb.c
+++ b/drivers/media/usb/em28xx/em28xx-dvb.c
@@ -1545,6 +1545,7 @@ static int em28xx_dvb_init(struct em28xx *dev)
dvb-i2c_client_demod = client;
 
/* attach tuner */
+   memset(si2157_config, 0, sizeof(si2157_config));
si2157_config.fe = dvb-fe[0];
memset(info, 0, sizeof(struct i2c_board_info));
strlcpy(info.type, si2157, I2C_NAME_SIZE);
-- 
1.9.3

--
To unsubscribe from this list: send the line unsubscribe linux-media in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[PATCH 1/3] cxusb: Prepare for si2157 driver getting more parameters

2014-07-15 Thread Matthias Schwarzott
Modify all users of si2157_config to correctly initialize all not
listed values to 0.

Signed-off-by: Matthias Schwarzott z...@gentoo.org
---
 drivers/media/usb/dvb-usb/cxusb.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/media/usb/dvb-usb/cxusb.c 
b/drivers/media/usb/dvb-usb/cxusb.c
index ad20c39..285213c 100644
--- a/drivers/media/usb/dvb-usb/cxusb.c
+++ b/drivers/media/usb/dvb-usb/cxusb.c
@@ -1371,6 +1371,7 @@ static int cxusb_tt_ct2_4400_attach(struct 
dvb_usb_adapter *adap)
st-i2c_client_demod = client_demod;
 
/* attach tuner */
+   memset(si2157_config, 0, sizeof(si2157_config));
si2157_config.fe = adap-fe_adap[0].fe;
memset(info, 0, sizeof(struct i2c_board_info));
strlcpy(info.type, si2157, I2C_NAME_SIZE);
-- 
2.0.0

--
To unsubscribe from this list: send the line unsubscribe linux-media in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[PATCH 2/3] em28xx-dvb: Prepare for si2157 driver getting more parameters

2014-07-15 Thread Matthias Schwarzott
Modify all users of si2157_config to correctly initialize all not
listed values to 0.

Signed-off-by: Matthias Schwarzott z...@gentoo.org
---
 drivers/media/usb/em28xx/em28xx-dvb.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/media/usb/em28xx/em28xx-dvb.c 
b/drivers/media/usb/em28xx/em28xx-dvb.c
index a121ed9..96a0bdb 100644
--- a/drivers/media/usb/em28xx/em28xx-dvb.c
+++ b/drivers/media/usb/em28xx/em28xx-dvb.c
@@ -1545,6 +1545,7 @@ static int em28xx_dvb_init(struct em28xx *dev)
dvb-i2c_client_demod = client;
 
/* attach tuner */
+   memset(si2157_config, 0, sizeof(si2157_config));
si2157_config.fe = dvb-fe[0];
memset(info, 0, sizeof(struct i2c_board_info));
strlcpy(info.type, si2157, I2C_NAME_SIZE);
-- 
2.0.0

--
To unsubscribe from this list: send the line unsubscribe linux-media in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[PATCH 10/10] MAINTAINERS: add si2157 driver

2014-04-15 Thread Antti Palosaari
Silicon Labs Si2157 silicon tuner driver.

Signed-off-by: Antti Palosaari cr...@iki.fi
---
 MAINTAINERS | 10 ++
 1 file changed, 10 insertions(+)

diff --git a/MAINTAINERS b/MAINTAINERS
index c44c914..9322a3a 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -7813,6 +7813,16 @@ M:   Robin Holt robinmh...@gmail.com
 S: Maintained
 F: drivers/misc/sgi-xp/
 
+SI2157 MEDIA DRIVER
+M: Antti Palosaari cr...@iki.fi
+L: linux-media@vger.kernel.org
+W: http://linuxtv.org/
+W: http://palosaari.fi/linux/
+Q: http://patchwork.linuxtv.org/project/linux-media/list/
+T: git git://linuxtv.org/anttip/media_tree.git
+S: Maintained
+F: drivers/media/tuners/si2157*
+
 SI2168 MEDIA DRIVER
 M: Antti Palosaari cr...@iki.fi
 L: linux-media@vger.kernel.org
-- 
1.9.0

--
To unsubscribe from this list: send the line unsubscribe linux-media in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html