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

Igor M. Liplianin liplianin at tut.by
Thu Dec 4 13:49:23 CET 2008


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

From: Igor M. Liplianin <liplianin at me.by>

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

Signed-off-by: Igor M. Liplianin <liplianin at me.by>
Acked-by: Sergey Silkin <neovision at rambler.ru>

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;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 9576.patch
Type: text/x-diff
Size: 1079 bytes
Desc: not available
Url : http://www.linuxtv.org/pipermail/linux-dvb/attachments/20081204/8e9450e9/attachment.patch 


More information about the linux-dvb mailing list