--- Old +++ NTSC @@ -58,6 +58,8 @@ int dev_stk0408_select_input(struct usb_stk11xx *dev, int input); int dev_stk0408_write0(struct usb_stk11xx *dev, int mask, int val); +static int const NTSC = 1; + /** * @param dev Device structure * @@ -230,6 +232,7 @@ int dev_stk0408_set_resolution(struct usb_stk11xx *dev) { + if(NTSC) return 0; /* * These registers control the resolution of the capture buffer. * @@ -326,10 +329,17 @@ 0x111,0x112,0x113,0x114,0x115,0x116,0x117 }; - static const int values[] = { + const int values[] = { 0x04a,0x000,0x002,0x000,0x000,0x00e,0x046,0x014,0x000, - 0x012,0x02d,0x001,0x000,0x000,0x080,0x010,0x00f,0x008, - 0x000,0x013,0x000,0x008,0x005,0x003,0x001 + 0x012,0x02d,0x001,0x000,0x000,0x080,0x010,0x00f, + (NTSC ? 0x038 : 0x008), + 0x000, + (NTSC ? 0x003 : 0x013), + 0x000, + (NTSC ? 0x038 : 0x008), + 0x005, + (NTSC ? 0x0f3 : 0x003), + (NTSC ? 0x000 : 0x001) }; if (step != 1) @@ -686,10 +696,14 @@ 0x13,0x15,0x16,0x40,0x41,0x42,0x43,0x44,0x45,0x46,0x47,0x48,0x49,0x4a,0x4b,0x4c, 0x4d,0x4e,0x4f,0x50,0x51,0x52,0x53,0x54,0x55,0x56,0x57,0x58,0x59,0x5a,0x5b }; - static const int values[] = { - 0x08,0x33,0x00,0x00,0xe9,0x0d,0x38,0x80,0x47,0x40,0x00,0x01,0x2a,0x00,0x0c,0xe7, + const int values[] = { + 0x08,0x33,0x00,0x00,0xe9,0x0d, + (NTSC ? 0x78 : 0x38), + 0x80,0x47,0x40,0x00,0x01,0x2a,0x00,0x0c,0xe7, 0x00,0x00,0x00,0x02,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff, - 0xff,0xff,0xff,0xff,0xff,0xff,0xff,0x55,0xff,0xff,0xff,0x40,0x54,0x07,0x83 }; + 0xff,0xff,0xff,0xff,0xff,0xff,0xff,0x55,0xff,0xff,0xff,0x40,0x54, + (NTSC ? 0x0a : 0x07), + 0x83 }; asize = ARRAY_SIZE(values);