Mailing List archive

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

[linux-dvb] ves1820 & INVERSION_AUTO



  Hi!

  Some software seems to rely on INVERSION_AUTO being understood by
frontends, so maybe the following patch is in order in NEWSTRUCT branch.
Old branch used to do the same thing.  I have no datasheets, but this
works for me.

  The reason why for example vdr-1.1.* happens to work without this patch
with QAM_64 is that the reg0 default value includes setting for QAM_64,
and the fact that ves1820_setup_reg0() fails every time it is called
does not matter, because FE_RESET ioctl is called immediately after that.

  With this ves1820_setup_reg0() does not fail and QAM_128 works without
modifications to applications.

  Unless I am terribly wrong here..

Index: driver/frontends/ves1820.c
===================================================================
RCS file: /cvs/linuxtv/DVB/driver/frontends/Attic/ves1820.c,v
retrieving revision 1.1.2.12
diff -u -r1.1.2.12 ves1820.c
--- driver/frontends/ves1820.c	8 Sep 2002 16:53:35 -0000	1.1.2.12
+++ driver/frontends/ves1820.c	9 Sep 2002 17:28:50 -0000
@@ -224,6 +224,7 @@
 	u8 reg0 = (ves1820_inittab[0] & 0xe3) | (real_qam << 2);

 	switch (inversion) {
+	case INVERSION_AUTO:
 	case INVERSION_OFF:      /* XXX FIXME: reversed?? p. 25  */
 		reg0 |= 0x20;
 		break;

-- 
Foreca Ltd                                           Jaakko.Hyvatti@foreca.com
Pursimiehenkatu 29-31 B, FIN-00150 Helsinki, Finland     http://www.foreca.com



-- 
Info:
To unsubscribe send a mail to listar@linuxtv.org with "unsubscribe linux-dvb" as subject.



Home | Main Index | Thread Index