V4L/DVB (3599c): Whitespace cleanups under Documentation/video4linux
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
c-qcam - Connectix Color QuickCam video4linux kernel driver
|
c-qcam - Connectix Color QuickCam video4linux kernel driver
|
||||||
|
|
||||||
Copyright (C) 1999 Dave Forrest <drf5n@virginia.edu>
|
Copyright (C) 1999 Dave Forrest <drf5n@virginia.edu>
|
||||||
released under GNU GPL.
|
released under GNU GPL.
|
||||||
|
|
||||||
1999-12-08 Dave Forrest, written with kernel version 2.2.12 in mind
|
1999-12-08 Dave Forrest, written with kernel version 2.2.12 in mind
|
||||||
|
|
||||||
@@ -128,9 +128,9 @@ system (CONFIG_PROC_FS), the parallel printer support
|
|||||||
(CONFIG_PRINTER), the IEEE 1284 system,(CONFIG_PRINTER_READBACK), you
|
(CONFIG_PRINTER), the IEEE 1284 system,(CONFIG_PRINTER_READBACK), you
|
||||||
should be able to read some identification from your quickcam with
|
should be able to read some identification from your quickcam with
|
||||||
|
|
||||||
modprobe -v parport
|
modprobe -v parport
|
||||||
modprobe -v parport_probe
|
modprobe -v parport_probe
|
||||||
cat /proc/parport/PORTNUMBER/autoprobe
|
cat /proc/parport/PORTNUMBER/autoprobe
|
||||||
Returns:
|
Returns:
|
||||||
CLASS:MEDIA;
|
CLASS:MEDIA;
|
||||||
MODEL:Color QuickCam 2.0;
|
MODEL:Color QuickCam 2.0;
|
||||||
@@ -152,16 +152,16 @@ video4linux mailing list and archive for more current information.
|
|||||||
3.1 Checklist:
|
3.1 Checklist:
|
||||||
|
|
||||||
Can you get an image?
|
Can you get an image?
|
||||||
v4lgrab >qcam.ppm ; wc qcam.ppm ; xv qcam.ppm
|
v4lgrab >qcam.ppm ; wc qcam.ppm ; xv qcam.ppm
|
||||||
|
|
||||||
Is a working c-qcam connected to the port?
|
Is a working c-qcam connected to the port?
|
||||||
grep ^ /proc/parport/?/autoprobe
|
grep ^ /proc/parport/?/autoprobe
|
||||||
|
|
||||||
Do the /dev/video* files exist?
|
Do the /dev/video* files exist?
|
||||||
ls -lad /dev/video
|
ls -lad /dev/video
|
||||||
|
|
||||||
Is the c-qcam module loaded?
|
Is the c-qcam module loaded?
|
||||||
modprobe -v c-qcam ; lsmod
|
modprobe -v c-qcam ; lsmod
|
||||||
|
|
||||||
Does the camera work with alternate programs? cqcam, etc?
|
Does the camera work with alternate programs? cqcam, etc?
|
||||||
|
|
||||||
@@ -225,54 +225,54 @@ produced this picture of me at
|
|||||||
|
|
||||||
#define READ_VIDEO_PIXEL(buf, format, depth, r, g, b) \
|
#define READ_VIDEO_PIXEL(buf, format, depth, r, g, b) \
|
||||||
{ \
|
{ \
|
||||||
switch (format) \
|
switch (format) \
|
||||||
{ \
|
{ \
|
||||||
case VIDEO_PALETTE_GREY: \
|
case VIDEO_PALETTE_GREY: \
|
||||||
switch (depth) \
|
switch (depth) \
|
||||||
{ \
|
{ \
|
||||||
case 4: \
|
case 4: \
|
||||||
case 6: \
|
case 6: \
|
||||||
case 8: \
|
case 8: \
|
||||||
(r) = (g) = (b) = (*buf++ << 8);\
|
(r) = (g) = (b) = (*buf++ << 8);\
|
||||||
break; \
|
break; \
|
||||||
\
|
\
|
||||||
case 16: \
|
case 16: \
|
||||||
(r) = (g) = (b) = \
|
(r) = (g) = (b) = \
|
||||||
*((unsigned short *) buf); \
|
*((unsigned short *) buf); \
|
||||||
buf += 2; \
|
buf += 2; \
|
||||||
break; \
|
break; \
|
||||||
} \
|
} \
|
||||||
break; \
|
break; \
|
||||||
\
|
\
|
||||||
\
|
\
|
||||||
case VIDEO_PALETTE_RGB565: \
|
case VIDEO_PALETTE_RGB565: \
|
||||||
{ \
|
{ \
|
||||||
unsigned short tmp = *(unsigned short *)buf; \
|
unsigned short tmp = *(unsigned short *)buf; \
|
||||||
(r) = tmp&0xF800; \
|
(r) = tmp&0xF800; \
|
||||||
(g) = (tmp<<5)&0xFC00; \
|
(g) = (tmp<<5)&0xFC00; \
|
||||||
(b) = (tmp<<11)&0xF800; \
|
(b) = (tmp<<11)&0xF800; \
|
||||||
buf += 2; \
|
buf += 2; \
|
||||||
} \
|
} \
|
||||||
break; \
|
break; \
|
||||||
\
|
\
|
||||||
case VIDEO_PALETTE_RGB555: \
|
case VIDEO_PALETTE_RGB555: \
|
||||||
(r) = (buf[0]&0xF8)<<8; \
|
(r) = (buf[0]&0xF8)<<8; \
|
||||||
(g) = ((buf[0] << 5 | buf[1] >> 3)&0xF8)<<8; \
|
(g) = ((buf[0] << 5 | buf[1] >> 3)&0xF8)<<8; \
|
||||||
(b) = ((buf[1] << 2 ) & 0xF8)<<8; \
|
(b) = ((buf[1] << 2 ) & 0xF8)<<8; \
|
||||||
buf += 2; \
|
buf += 2; \
|
||||||
break; \
|
break; \
|
||||||
\
|
\
|
||||||
case VIDEO_PALETTE_RGB24: \
|
case VIDEO_PALETTE_RGB24: \
|
||||||
(r) = buf[0] << 8; (g) = buf[1] << 8; \
|
(r) = buf[0] << 8; (g) = buf[1] << 8; \
|
||||||
(b) = buf[2] << 8; \
|
(b) = buf[2] << 8; \
|
||||||
buf += 3; \
|
buf += 3; \
|
||||||
break; \
|
break; \
|
||||||
\
|
\
|
||||||
default: \
|
default: \
|
||||||
fprintf(stderr, \
|
fprintf(stderr, \
|
||||||
"Format %d not yet supported\n", \
|
"Format %d not yet supported\n", \
|
||||||
format); \
|
format); \
|
||||||
} \
|
} \
|
||||||
}
|
}
|
||||||
|
|
||||||
int get_brightness_adj(unsigned char *image, long size, int *brightness) {
|
int get_brightness_adj(unsigned char *image, long size, int *brightness) {
|
||||||
@@ -324,12 +324,12 @@ int main(int argc, char ** argv)
|
|||||||
if(ioctl(fd, VIDIOCSPICT, &vpic) < 0) {
|
if(ioctl(fd, VIDIOCSPICT, &vpic) < 0) {
|
||||||
vpic.depth=6;
|
vpic.depth=6;
|
||||||
if(ioctl(fd, VIDIOCSPICT, &vpic) < 0) {
|
if(ioctl(fd, VIDIOCSPICT, &vpic) < 0) {
|
||||||
vpic.depth=4;
|
vpic.depth=4;
|
||||||
if(ioctl(fd, VIDIOCSPICT, &vpic) < 0) {
|
if(ioctl(fd, VIDIOCSPICT, &vpic) < 0) {
|
||||||
fprintf(stderr, "Unable to find a supported capture format.\n");
|
fprintf(stderr, "Unable to find a supported capture format.\n");
|
||||||
close(fd);
|
close(fd);
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
@@ -341,13 +341,13 @@ int main(int argc, char ** argv)
|
|||||||
vpic.depth=16;
|
vpic.depth=16;
|
||||||
|
|
||||||
if(ioctl(fd, VIDIOCSPICT, &vpic)==-1) {
|
if(ioctl(fd, VIDIOCSPICT, &vpic)==-1) {
|
||||||
vpic.palette=VIDEO_PALETTE_RGB555;
|
vpic.palette=VIDEO_PALETTE_RGB555;
|
||||||
vpic.depth=15;
|
vpic.depth=15;
|
||||||
|
|
||||||
if(ioctl(fd, VIDIOCSPICT, &vpic)==-1) {
|
if(ioctl(fd, VIDIOCSPICT, &vpic)==-1) {
|
||||||
fprintf(stderr, "Unable to find a supported capture format.\n");
|
fprintf(stderr, "Unable to find a supported capture format.\n");
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -365,8 +365,8 @@ int main(int argc, char ** argv)
|
|||||||
if (f) {
|
if (f) {
|
||||||
vpic.brightness += (newbright << 8);
|
vpic.brightness += (newbright << 8);
|
||||||
if(ioctl(fd, VIDIOCSPICT, &vpic)==-1) {
|
if(ioctl(fd, VIDIOCSPICT, &vpic)==-1) {
|
||||||
perror("VIDIOSPICT");
|
perror("VIDIOSPICT");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} while (f);
|
} while (f);
|
||||||
|
@@ -87,7 +87,7 @@ hardware configuration of the parport. You can give the boot-parameter
|
|||||||
at the LILO-prompt or specify it in lilo.conf. I use the following
|
at the LILO-prompt or specify it in lilo.conf. I use the following
|
||||||
append-line in lilo.conf:
|
append-line in lilo.conf:
|
||||||
|
|
||||||
append="parport=0x378,7,3"
|
append="parport=0x378,7,3"
|
||||||
|
|
||||||
See Documentation/parport.txt for more information about the
|
See Documentation/parport.txt for more information about the
|
||||||
configuration of the parport and the values given above. Do not simply
|
configuration of the parport and the values given above. Do not simply
|
||||||
|
@@ -28,7 +28,7 @@ Iomega Buz:
|
|||||||
* Philips saa7111 TV decoder
|
* Philips saa7111 TV decoder
|
||||||
* Philips saa7185 TV encoder
|
* Philips saa7185 TV encoder
|
||||||
Drivers to use: videodev, i2c-core, i2c-algo-bit,
|
Drivers to use: videodev, i2c-core, i2c-algo-bit,
|
||||||
videocodec, saa7111, saa7185, zr36060, zr36067
|
videocodec, saa7111, saa7185, zr36060, zr36067
|
||||||
Inputs/outputs: Composite and S-video
|
Inputs/outputs: Composite and S-video
|
||||||
Norms: PAL, SECAM (720x576 @ 25 fps), NTSC (720x480 @ 29.97 fps)
|
Norms: PAL, SECAM (720x576 @ 25 fps), NTSC (720x480 @ 29.97 fps)
|
||||||
Card number: 7
|
Card number: 7
|
||||||
@@ -39,7 +39,7 @@ Linux Media Labs LML33:
|
|||||||
* Brooktree bt819 TV decoder
|
* Brooktree bt819 TV decoder
|
||||||
* Brooktree bt856 TV encoder
|
* Brooktree bt856 TV encoder
|
||||||
Drivers to use: videodev, i2c-core, i2c-algo-bit,
|
Drivers to use: videodev, i2c-core, i2c-algo-bit,
|
||||||
videocodec, bt819, bt856, zr36060, zr36067
|
videocodec, bt819, bt856, zr36060, zr36067
|
||||||
Inputs/outputs: Composite and S-video
|
Inputs/outputs: Composite and S-video
|
||||||
Norms: PAL (720x576 @ 25 fps), NTSC (720x480 @ 29.97 fps)
|
Norms: PAL (720x576 @ 25 fps), NTSC (720x480 @ 29.97 fps)
|
||||||
Card number: 5
|
Card number: 5
|
||||||
@@ -50,7 +50,7 @@ Linux Media Labs LML33R10:
|
|||||||
* Philips saa7114 TV decoder
|
* Philips saa7114 TV decoder
|
||||||
* Analog Devices adv7170 TV encoder
|
* Analog Devices adv7170 TV encoder
|
||||||
Drivers to use: videodev, i2c-core, i2c-algo-bit,
|
Drivers to use: videodev, i2c-core, i2c-algo-bit,
|
||||||
videocodec, saa7114, adv7170, zr36060, zr36067
|
videocodec, saa7114, adv7170, zr36060, zr36067
|
||||||
Inputs/outputs: Composite and S-video
|
Inputs/outputs: Composite and S-video
|
||||||
Norms: PAL (720x576 @ 25 fps), NTSC (720x480 @ 29.97 fps)
|
Norms: PAL (720x576 @ 25 fps), NTSC (720x480 @ 29.97 fps)
|
||||||
Card number: 6
|
Card number: 6
|
||||||
@@ -61,7 +61,7 @@ Pinnacle/Miro DC10(new):
|
|||||||
* Philips saa7110a TV decoder
|
* Philips saa7110a TV decoder
|
||||||
* Analog Devices adv7176 TV encoder
|
* Analog Devices adv7176 TV encoder
|
||||||
Drivers to use: videodev, i2c-core, i2c-algo-bit,
|
Drivers to use: videodev, i2c-core, i2c-algo-bit,
|
||||||
videocodec, saa7110, adv7175, zr36060, zr36067
|
videocodec, saa7110, adv7175, zr36060, zr36067
|
||||||
Inputs/outputs: Composite, S-video and Internal
|
Inputs/outputs: Composite, S-video and Internal
|
||||||
Norms: PAL, SECAM (768x576 @ 25 fps), NTSC (640x480 @ 29.97 fps)
|
Norms: PAL, SECAM (768x576 @ 25 fps), NTSC (640x480 @ 29.97 fps)
|
||||||
Card number: 1
|
Card number: 1
|
||||||
@@ -84,7 +84,7 @@ Pinnacle/Miro DC10(old): *
|
|||||||
* Micronas vpx3220a TV decoder
|
* Micronas vpx3220a TV decoder
|
||||||
* mse3000 TV encoder or Analog Devices adv7176 TV encoder *
|
* mse3000 TV encoder or Analog Devices adv7176 TV encoder *
|
||||||
Drivers to use: videodev, i2c-core, i2c-algo-bit,
|
Drivers to use: videodev, i2c-core, i2c-algo-bit,
|
||||||
videocodec, vpx3220, mse3000/adv7175, zr36050, zr36016, zr36067
|
videocodec, vpx3220, mse3000/adv7175, zr36050, zr36016, zr36067
|
||||||
Inputs/outputs: Composite, S-video and Internal
|
Inputs/outputs: Composite, S-video and Internal
|
||||||
Norms: PAL, SECAM (768x576 @ 25 fps), NTSC (640x480 @ 29.97 fps)
|
Norms: PAL, SECAM (768x576 @ 25 fps), NTSC (640x480 @ 29.97 fps)
|
||||||
Card number: 0
|
Card number: 0
|
||||||
@@ -96,7 +96,7 @@ Pinnacle/Miro DC30: *
|
|||||||
* Micronas vpx3225d/vpx3220a/vpx3216b TV decoder
|
* Micronas vpx3225d/vpx3220a/vpx3216b TV decoder
|
||||||
* Analog Devices adv7176 TV encoder
|
* Analog Devices adv7176 TV encoder
|
||||||
Drivers to use: videodev, i2c-core, i2c-algo-bit,
|
Drivers to use: videodev, i2c-core, i2c-algo-bit,
|
||||||
videocodec, vpx3220/vpx3224, adv7175, zr36050, zr36016, zr36067
|
videocodec, vpx3220/vpx3224, adv7175, zr36050, zr36016, zr36067
|
||||||
Inputs/outputs: Composite, S-video and Internal
|
Inputs/outputs: Composite, S-video and Internal
|
||||||
Norms: PAL, SECAM (768x576 @ 25 fps), NTSC (640x480 @ 29.97 fps)
|
Norms: PAL, SECAM (768x576 @ 25 fps), NTSC (640x480 @ 29.97 fps)
|
||||||
Card number: 3
|
Card number: 3
|
||||||
|
@@ -14,7 +14,7 @@ Hauppauge Win/TV pci (version 405):
|
|||||||
|
|
||||||
Microchip 24LC02B or
|
Microchip 24LC02B or
|
||||||
Philips 8582E2Y: 256 Byte EEPROM with configuration information
|
Philips 8582E2Y: 256 Byte EEPROM with configuration information
|
||||||
I2C 0xa0-0xa1, (24LC02B also responds to 0xa2-0xaf)
|
I2C 0xa0-0xa1, (24LC02B also responds to 0xa2-0xaf)
|
||||||
Philips SAA5246AGP/E: Videotext decoder chip, I2C 0x22-0x23
|
Philips SAA5246AGP/E: Videotext decoder chip, I2C 0x22-0x23
|
||||||
TDA9800: sound decoder
|
TDA9800: sound decoder
|
||||||
Winbond W24257AS-35: 32Kx8 CMOS static RAM (Videotext buffer mem)
|
Winbond W24257AS-35: 32Kx8 CMOS static RAM (Videotext buffer mem)
|
||||||
|
@@ -131,17 +131,17 @@ Check Stereo: BASE <-- 0xd8 (current volume, stereo detect,
|
|||||||
x=0xff ==> "not stereo", x=0xfd ==> "stereo detected"
|
x=0xff ==> "not stereo", x=0xfd ==> "stereo detected"
|
||||||
|
|
||||||
Set Frequency: code = (freq*40) + 10486188
|
Set Frequency: code = (freq*40) + 10486188
|
||||||
foreach of the 24 bits in code,
|
foreach of the 24 bits in code,
|
||||||
(from Least to Most Significant):
|
(from Least to Most Significant):
|
||||||
to write a "zero" bit,
|
to write a "zero" bit,
|
||||||
BASE <-- 0x01 (audio mute, no stereo detect, radio
|
BASE <-- 0x01 (audio mute, no stereo detect, radio
|
||||||
disable, "zero" bit phase 1, tuner adjust)
|
disable, "zero" bit phase 1, tuner adjust)
|
||||||
BASE <-- 0x03 (audio mute, no stereo detect, radio
|
BASE <-- 0x03 (audio mute, no stereo detect, radio
|
||||||
disable, "zero" bit phase 2, tuner adjust)
|
disable, "zero" bit phase 2, tuner adjust)
|
||||||
to write a "one" bit,
|
to write a "one" bit,
|
||||||
BASE <-- 0x05 (audio mute, no stereo detect, radio
|
BASE <-- 0x05 (audio mute, no stereo detect, radio
|
||||||
disable, "one" bit phase 1, tuner adjust)
|
disable, "one" bit phase 1, tuner adjust)
|
||||||
BASE <-- 0x07 (audio mute, no stereo detect, radio
|
BASE <-- 0x07 (audio mute, no stereo detect, radio
|
||||||
disable, "one" bit phase 2, tuner adjust)
|
disable, "one" bit phase 2, tuner adjust)
|
||||||
|
|
||||||
----------------------------------------------------------------------------
|
----------------------------------------------------------------------------
|
||||||
|
Reference in New Issue
Block a user