1 #include <lib/driver/avswitch.h>
7 #include <lib/base/init.h>
8 #include <lib/base/init_num.h>
9 #include <lib/base/econfig.h>
10 #include <lib/base/eerror.h>
12 eAVSwitch *eAVSwitch::instance = 0;
14 eAVSwitch::eAVSwitch()
19 avsfd = open("/dev/dbox/avs0", O_RDWR);
21 //enable colors on thedoc's tv
22 ioctl(avsfd, 0x1000 | 35, 2);
23 ioctl(avsfd, 0x1000 | 9, 1);
26 eAVSwitch::~eAVSwitch()
32 eAVSwitch *eAVSwitch::getInstance()
37 void eAVSwitch::setColorFormat(int format)
39 printf("eAVSwitch::setColorFormat(%d)\n",format);
40 /*there are no ioctl for controling this in avs - scart api needed
41 no, not the gillem one */
44 //FIXME: correct "run/startlevel"
45 eAutoInitP0<eAVSwitch> init_avswitch(eAutoInitNumbers::rc, "AVSwitch Driver");