[Pxc] [patch] getvtype and setvtype in pxc_control

Alessandro Rubini rubini@gnu.org
Tue, 26 Sep 2000 18:41:45 +0200


This trivially adds getvtype and servtype in pxc_control.

Marius, if you "setvtype 0" on your Bt878 device you'll have color on.
I have to fix the default to match what "getvtype" reports.

The problem is in line 662 or so of main.c, within set_mux().  Here
the S-Video hack doesn't correctly change dev->vtype (which has been
added later).

In my opinion the "hack" should only be in place for PXC200 devices,
which suggest using input 1 for S-video (because of the connectors).
I'll deal with the issue another day, though, as my baby's coming
back home and I have to shut off all my hardware :)

It's already in CVS as well.

/alessandro

Index: pxc_control.c
===================================================================
RCS file: /home/develop/cvs/pxc/pxc_control.c,v
retrieving revision 1.5
diff -u -d -r1.5 pxc_control.c
--- pxc_control.c	2000/07/05 09:00:30	1.5
+++ pxc_control.c	2000/09/26 16:36:36
@@ -119,6 +119,8 @@
     COMMAND(  "setsatu",       PX_IOCSSATU,       1, do_long),
     COMMAND(  "getsatv",       PX_IOCGSATV,       0, do_long),
     COMMAND(  "setsatv",       PX_IOCSSATV,       1, do_long),
+    COMMAND(  "getvtype",      PX_IOCGVTYPE,      0, do_long),
+    COMMAND(  "setvtype",      PX_IOCSVTYPE,      1, do_long),
     {NULL,}
     };