[PATCH] Fix stv0299 support in dw2102 USB DVB-S/S2 driver

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



# HG changeset patch
# User Igor M. Liplianin <liplianin@xxxxx>
# Date 1228394250 -7200
# Node ID 29523b6d6cc064bbece8df8b6b5627e9de43d968
# Parent  ca65077101a014e4976161daf36b3063e570a4c1
Fix stv0299 support in dw2102 USB DVB-S/S2 driver

From: Igor M. Liplianin <liplianin@xxxxx>

register 0x00 contains 0xa1 for STV0299 and STV0299B
register 0x00 might contain 0x80 when returning from standby

Signed-off-by: Igor M. Liplianin <liplianin@xxxxx>
Acked-by: Sergey Silkin <neovision@xxxxxxxxxx>

diff -r ca65077101a0 -r 29523b6d6cc0 linux/drivers/media/dvb/dvb-usb/dw2102.c
--- a/linux/drivers/media/dvb/dvb-usb/dw2102.c	Tue Nov 11 19:15:27 2008 +0200
+++ b/linux/drivers/media/dvb/dvb-usb/dw2102.c	Thu Dec 04 14:37:30 2008 +0200
@@ -660,7 +660,7 @@
 			/* check STV0299 frontend  */
 			dw210x_op_rw(dev, 0xb5, 0, 0, &reset16[0], 2,
 					DW210X_READ_MSG);
-			if (reset16[0] == 0xa1) {
+			if ((reset16[0] == 0xa1) || (reset16[0] == 0x80)) {
 				dw2102_properties.i2c_algo = &dw2102_i2c_algo;
 				dw2102_properties.adapter->tuner_attach = &dw2102_tuner_attach;
 				break;
# HG changeset patch
# User Igor M. Liplianin <liplianin@xxxxx>
# Date 1228394250 -7200
# Node ID 29523b6d6cc064bbece8df8b6b5627e9de43d968
# Parent  ca65077101a014e4976161daf36b3063e570a4c1
Fix stv0299 support in dw2102 USB DVB-S/S2 driver

From: Igor M. Liplianin <liplianin@xxxxx>

register 0x00 contains 0xa1 for STV0299 and STV0299B
register 0x00 might contain 0x80 when returning from standby

Signed-off-by: Igor M. Liplianin <liplianin@xxxxx>
Acked-by: Sergey Silkin <neovision@xxxxxxxxxx>

diff -r ca65077101a0 -r 29523b6d6cc0 linux/drivers/media/dvb/dvb-usb/dw2102.c
--- a/linux/drivers/media/dvb/dvb-usb/dw2102.c	Tue Nov 11 19:15:27 2008 +0200
+++ b/linux/drivers/media/dvb/dvb-usb/dw2102.c	Thu Dec 04 14:37:30 2008 +0200
@@ -660,7 +660,7 @@
 			/* check STV0299 frontend  */
 			dw210x_op_rw(dev, 0xb5, 0, 0, &reset16[0], 2,
 					DW210X_READ_MSG);
-			if (reset16[0] == 0xa1) {
+			if ((reset16[0] == 0xa1) || (reset16[0] == 0x80)) {
 				dw2102_properties.i2c_algo = &dw2102_i2c_algo;
 				dw2102_properties.adapter->tuner_attach = &dw2102_tuner_attach;
 				break;
_______________________________________________
linux-dvb mailing list
linux-dvb@xxxxxxxxxxx
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb

[Index of Archives]     [Linux Media]     [Video 4 Linux]     [Asterisk]     [Samba]     [Xorg]     [Xfree86]     [Linux USB]

  Powered by Linux