From d5c6687f4774e1b18586f7979b2290732b5e261d Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Sat, 12 Dec 2009 10:48:57 -0800 Subject: [PATCH] fmtools version 1.0. --- CHANGES | 15 +++ debian/changelog | 59 ++++++++++ debian/control | 14 +++ debian/copyright | 22 ++++ debian/rules | 63 ++++++++++ fm.1 | 10 +- fm.c | 3 +- fmscan.1 | 18 +-- fmscan.c | 17 ++- videodev.h | 347 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 10 files changed, 542 insertions(+), 26 deletions(-) create mode 100644 debian/changelog create mode 100644 debian/control create mode 100644 debian/copyright create mode 100755 debian/rules create mode 100644 videodev.h diff --git a/CHANGES b/CHANGES index ae3b257..385a8fa 100644 --- a/CHANGES +++ b/CHANGES @@ -1,3 +1,18 @@ +1.0: + +Sat Sep 3 12:21:00 PDT 2004 / Ben Pfaff + +- New maintainer. New home page is http://benpfaff.org/fmtools + +- Updated email addresses. + +- Integrated Debian packaging. + +- Made fmscan threshold configurable from command line. + +- Use videodev.h header detached from kernel to avoid including kernel + headers. + 0.99.1: Fri Aug 16 23:08:30 CDT 2002 / Russell Kroll diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..3b1897f --- /dev/null +++ b/debian/changelog @@ -0,0 +1,59 @@ +fmtools (1.0) unstable; urgency=low + + * New upstream release. Now a native Debian package. + + -- Ben Pfaff Sat, 4 Sep 2004 12:20:06 -0700 + +fmtools (0.99.1-4) unstable; urgency=low + + * Fix doubled manpages in 0.99.1-2. Oops! + + -- Ben Pfaff Sun, 15 Aug 2004 17:08:54 -0700 + +fmtools (0.99.1-2) unstable; urgency=low + + * Patch from "Gregory P. Smith" to add + user-definable threshold to fmscan. Modified patch slightly to match + the command-line argument a float instead of an int. Closes: #264500. + + -- Ben Pfaff Sun, 15 Aug 2004 16:56:20 -0700 + +fmtools (0.99.1-1) unstable; urgency=low + + * New upstream release. + + * Don't use kernel headers. Closes: #223161. + + -- Ben Pfaff Sat, 6 Dec 2003 22:38:53 -0800 + +fmtools (0.99.0-1) unstable; urgency=low + + * New upstream version. Closes: 90705 + + -- Ben Pfaff Sun, 25 Mar 2001 15:54:07 -0500 + +fmtools (0.2.1-2) unstable; urgency=low + + * Redo with debhelper. Closes: #91157. + + -- Ben Pfaff Sun, 25 Mar 2001 12:16:45 -0500 + +fmtools (0.2.1-1) unstable; urgency=low + + * New upstream source. + + * Fix copyright file. + + -- Ben Pfaff Thu, 30 Jul 1998 11:30:24 -0400 + +fmtools (0.2.0-1) unstable; urgency=low + + * Added Debian control files. + + * Put in my VIDEO_TUNER_LOW fix. + + -- Ben Pfaff Fri, 10 Jan 1997 15:06:38 -0500 + +Local Variables: +mode:debian-changelog +End: diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..6078bcd --- /dev/null +++ b/debian/control @@ -0,0 +1,14 @@ +Source: fmtools +Section: sound +Priority: extra +Maintainer: Ben Pfaff +Standards-Version: 3.6.1.0 +Build-Depends: debhelper (>= 3.0) + +Package: fmtools +Architecture: any +Depends: ${shlibs:Depends} +Description: FM radio tuner + Command-line utility for adjusting the frequency and volume and + muting and unmuting FM radio cards. + diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..bdac44c --- /dev/null +++ b/debian/copyright @@ -0,0 +1,22 @@ +This package contains fmtools by Russell Kroll , +now maintained by Ben Pfaff . Also packaged for +Debian by Ben Pfaff. + +Upstream sources hosted at http://benpfaff.org/fmtools + +Copyright for fmtools: + + Copyright (C) 1998 Russell Kroll + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + +On Debian GNU/Linux systems, a copy of the GNU General Public License +can be found in /usr/share/common-licenses/GPL. diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..35fbe03 --- /dev/null +++ b/debian/rules @@ -0,0 +1,63 @@ +#!/usr/bin/make -f +# Sample debian/rules that uses debhelper. +# Modified for fmtools by Ben Pfaff. +# This file is public domain software, originally written by Joey Hess. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +# This is the debhelper compatibility version to use. +export DH_COMPAT=3 + +build: build-stamp +build-stamp: + dh_testdir + + $(MAKE) + + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f build-stamp + + # Add here commands to clean up after the build process. + -$(MAKE) clean + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs usr/bin + install -s fm fmscan debian/fmtools/usr/bin + +# Build architecture-independent files here. +binary-indep: build install +# We have nothing to do by default. + +# Build architecture-dependent files here. +binary-arch: build install + dh_testdir + dh_testroot + dh_installdocs README + dh_installexamples + dh_installmenu + dh_installcron + dh_installman fm.1 fmscan.1 + dh_installinfo + dh_installchangelogs CHANGES + dh_link + dh_strip + dh_compress + dh_fixperms + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install diff --git a/fm.1 b/fm.1 index 51efbbe..902ce5c 100644 --- a/fm.1 +++ b/fm.1 @@ -92,13 +92,13 @@ volume increments. .SH SEE ALSO .TP Additional documentation: -.B /usr/doc/fmtools/README +.B /usr/share/doc/fmtools/README .TP The fmtools homepage: -.B http://www.exploits.org/v4l/fmtools.html +.B http://benpfaff.org/fmtools .TP The video4linux webpage: -.B http://roadrunner.swansea.uk.linux.org/v4l.shtml +.B http://www.exploits.org/v4l/ .SH AUTHORS -Russell Kroll . This manpage written by Ben -Pfaff for Debian GNU/Linux. +Russell Kroll , now maintained by Ben Pfaff +. This manpage written by Ben Pfaff. diff --git a/fm.c b/fm.c index 28060ec..51dfb42 100644 --- a/fm.c +++ b/fm.c @@ -25,9 +25,8 @@ #include #include #include -#include #include -#include +#include "videodev.h" #include "version.h" diff --git a/fmscan.1 b/fmscan.1 index 0c83c10..3e68e1d 100644 --- a/fmscan.1 +++ b/fmscan.1 @@ -44,6 +44,9 @@ Ending frequency for scan, in MHz. Default: 107.9. .TP \fB\-i \fIfreq Increment between scanned channels, in MHz. Default: 0.2. +.TP +\fB\-t \fIpercent +Signal strength threshold to consider a channel. Default: 50%. .SH BUGS This program may not do much if your radio card's driver doesn't support fine tuning in 1/16000 MHz offsets. By default, v4l assumes 1/16 MHz @@ -62,16 +65,5 @@ The fmtools homepage: The video4linux webpage: .B http://roadrunner.swansea.uk.linux.org/v4l.shtml .SH AUTHORS -Russell Kroll . This manpage written by Ben -Pfaff for Debian GNU/Linux, based on -fmtools source and documentation. ----------------------------------------------------------------------- - -HTH, - -Ben. - --- -"I didn't say it was your fault. - I said I was going to blame it on you." - +Russell Kroll , now maintained by Ben Pfaff +. This manpage written by Ben Pfaff. diff --git a/fmscan.c b/fmscan.c index 00662e0..814c5be 100644 --- a/fmscan.c +++ b/fmscan.c @@ -24,9 +24,8 @@ #include #include #include -#include #include -#include +#include "videodev.h" #include "version.h" @@ -38,7 +37,7 @@ void help(char *prog) { printf("fmtools fmscan version %s\n\n", FMT_VERSION); - printf("usage: %s [-h] [-d ] [-s ] [-e ] [-i ]\n\n", prog); + printf("usage: %s [-h] [-d ] [-s ] [-e ] [-i ] [-t <%%>]\n\n", prog); printf("Auxiliary program to scan a frequency band for radio stations.\n\n"); @@ -47,6 +46,7 @@ void help(char *prog) printf(" -s - set start of scanning range to \n"); printf(" -e - set end of scanning range to \n"); printf(" -i - set increment value between channels to \n"); + printf(" -t <%%> - set signal strength percentage to lock onto <%%>\n"); printf(" - a value in the format nnn.nn (MHz)\n"); exit(0); @@ -56,7 +56,7 @@ int main(int argc, char **argv) { int fd, ret, i, tries = TRIES; struct video_tuner vt; - float perc, begval, incval, endval; + float perc, begval, incval, endval, threshold; long lowf, highf, freq, totsig, incr, fact; char *progname, *dev = NULL; @@ -67,7 +67,9 @@ int main(int argc, char **argv) incval = 0.20; /* increment 0.2 MHz */ endval = 107.9; /* stop at 107.9 MHz */ - while ((i = getopt(argc, argv, "+e:hi:s:d:")) != EOF) { + threshold = THRESHOLD; + + while ((i = getopt(argc, argv, "+e:hi:s:d:t:")) != EOF) { switch (i) { case 'd': dev = strdup(optarg); @@ -81,6 +83,9 @@ int main(int argc, char **argv) case 's': begval = atof(optarg); break; + case 't': + threshold = atof(optarg)/100.; + break; case 'h': default: help(progname); @@ -153,7 +158,7 @@ int main(int argc, char **argv) perc = (totsig / (65535.0 * tries)); - if (perc > THRESHOLD) + if (perc > threshold) printf("%2.1f: %3.1f%% \n", (freq / (double) fact), perc * 100.0); } diff --git a/videodev.h b/videodev.h new file mode 100644 index 0000000..77149cc --- /dev/null +++ b/videodev.h @@ -0,0 +1,347 @@ +/* This header is extracted from linux/videodev.h, approximately + version 2.6.0. We can't use linux/videodev.h directly because + it indirectly defines struct timespec, which is also defined + by the standard C library headers. Argh. -blp */ + +#ifndef FM_VIDEODEV_H +#define FM_VIDEODEV_H 1 + +#include + +#define VID_TYPE_CAPTURE 1 /* Can capture */ +#define VID_TYPE_TUNER 2 /* Can tune */ +#define VID_TYPE_TELETEXT 4 /* Does teletext */ +#define VID_TYPE_OVERLAY 8 /* Overlay onto frame buffer */ +#define VID_TYPE_CHROMAKEY 16 /* Overlay by chromakey */ +#define VID_TYPE_CLIPPING 32 /* Can clip */ +#define VID_TYPE_FRAMERAM 64 /* Uses the frame buffer memory */ +#define VID_TYPE_SCALES 128 /* Scalable */ +#define VID_TYPE_MONOCHROME 256 /* Monochrome only */ +#define VID_TYPE_SUBCAPTURE 512 /* Can capture subareas of the image */ +#define VID_TYPE_MPEG_DECODER 1024 /* Can decode MPEG streams */ +#define VID_TYPE_MPEG_ENCODER 2048 /* Can encode MPEG streams */ +#define VID_TYPE_MJPEG_DECODER 4096 /* Can decode MJPEG streams */ +#define VID_TYPE_MJPEG_ENCODER 8192 /* Can encode MJPEG streams */ + +struct video_capability +{ + char name[32]; + int type; + int channels; /* Num channels */ + int audios; /* Num audio devices */ + int maxwidth; /* Supported width */ + int maxheight; /* And height */ + int minwidth; /* Supported width */ + int minheight; /* And height */ +}; + + +struct video_channel +{ + int channel; + char name[32]; + int tuners; + uint32_t flags; +#define VIDEO_VC_TUNER 1 /* Channel has a tuner */ +#define VIDEO_VC_AUDIO 2 /* Channel has audio */ + uint16_t type; +#define VIDEO_TYPE_TV 1 +#define VIDEO_TYPE_CAMERA 2 + uint16_t norm; /* Norm set by channel */ +}; + +struct video_tuner +{ + int tuner; + char name[32]; + unsigned long rangelow, rangehigh; /* Tuner range */ + uint32_t flags; +#define VIDEO_TUNER_PAL 1 +#define VIDEO_TUNER_NTSC 2 +#define VIDEO_TUNER_SECAM 4 +#define VIDEO_TUNER_LOW 8 /* Uses KHz not MHz */ +#define VIDEO_TUNER_NORM 16 /* Tuner can set norm */ +#define VIDEO_TUNER_STEREO_ON 128 /* Tuner is seeing stereo */ +#define VIDEO_TUNER_RDS_ON 256 /* Tuner is seeing an RDS datastream */ +#define VIDEO_TUNER_MBS_ON 512 /* Tuner is seeing an MBS datastream */ + uint16_t mode; /* PAL/NTSC/SECAM/OTHER */ +#define VIDEO_MODE_PAL 0 +#define VIDEO_MODE_NTSC 1 +#define VIDEO_MODE_SECAM 2 +#define VIDEO_MODE_AUTO 3 + uint16_t signal; /* Signal strength 16bit scale */ +}; + +struct video_picture +{ + uint16_t brightness; + uint16_t hue; + uint16_t colour; + uint16_t contrast; + uint16_t whiteness; /* Black and white only */ + uint16_t depth; /* Capture depth */ + uint16_t palette; /* Palette in use */ +#define VIDEO_PALETTE_GREY 1 /* Linear greyscale */ +#define VIDEO_PALETTE_HI240 2 /* High 240 cube (BT848) */ +#define VIDEO_PALETTE_RGB565 3 /* 565 16 bit RGB */ +#define VIDEO_PALETTE_RGB24 4 /* 24bit RGB */ +#define VIDEO_PALETTE_RGB32 5 /* 32bit RGB */ +#define VIDEO_PALETTE_RGB555 6 /* 555 15bit RGB */ +#define VIDEO_PALETTE_YUV422 7 /* YUV422 capture */ +#define VIDEO_PALETTE_YUYV 8 +#define VIDEO_PALETTE_UYVY 9 /* The great thing about standards is ... */ +#define VIDEO_PALETTE_YUV420 10 +#define VIDEO_PALETTE_YUV411 11 /* YUV411 capture */ +#define VIDEO_PALETTE_RAW 12 /* RAW capture (BT848) */ +#define VIDEO_PALETTE_YUV422P 13 /* YUV 4:2:2 Planar */ +#define VIDEO_PALETTE_YUV411P 14 /* YUV 4:1:1 Planar */ +#define VIDEO_PALETTE_YUV420P 15 /* YUV 4:2:0 Planar */ +#define VIDEO_PALETTE_YUV410P 16 /* YUV 4:1:0 Planar */ +#define VIDEO_PALETTE_PLANAR 13 /* start of planar entries */ +#define VIDEO_PALETTE_COMPONENT 7 /* start of component entries */ +}; + +struct video_audio +{ + int audio; /* Audio channel */ + uint16_t volume; /* If settable */ + uint16_t bass, treble; + uint32_t flags; +#define VIDEO_AUDIO_MUTE 1 +#define VIDEO_AUDIO_MUTABLE 2 +#define VIDEO_AUDIO_VOLUME 4 +#define VIDEO_AUDIO_BASS 8 +#define VIDEO_AUDIO_TREBLE 16 +#define VIDEO_AUDIO_BALANCE 32 + char name[16]; +#define VIDEO_SOUND_MONO 1 +#define VIDEO_SOUND_STEREO 2 +#define VIDEO_SOUND_LANG1 4 +#define VIDEO_SOUND_LANG2 8 + uint16_t mode; + uint16_t balance; /* Stereo balance */ + uint16_t step; /* Step actual volume uses */ +}; + +struct video_clip +{ + int32_t x,y; + int32_t width, height; + struct video_clip *next; /* For user use/driver use only */ +}; + +struct video_window +{ + uint32_t x,y; /* Position of window */ + uint32_t width,height; /* Its size */ + uint32_t chromakey; + uint32_t flags; + struct video_clip *clips; /* Set only */ + int clipcount; +#define VIDEO_WINDOW_INTERLACE 1 +#define VIDEO_WINDOW_CHROMAKEY 16 /* Overlay by chromakey */ +#define VIDEO_CLIP_BITMAP -1 +/* bitmap is 1024x625, a '1' bit represents a clipped pixel */ +#define VIDEO_CLIPMAP_SIZE (128 * 625) +}; + +struct video_capture +{ + uint32_t x,y; /* Offsets into image */ + uint32_t width, height; /* Area to capture */ + uint16_t decimation; /* Decimation divider */ + uint16_t flags; /* Flags for capture */ +#define VIDEO_CAPTURE_ODD 0 /* Temporal */ +#define VIDEO_CAPTURE_EVEN 1 +}; + +struct video_buffer +{ + void *base; + int height,width; + int depth; + int bytesperline; +}; + +struct video_mmap +{ + unsigned int frame; /* Frame (0 - n) for double buffer */ + int height,width; + unsigned int format; /* should be VIDEO_PALETTE_* */ +}; + +struct video_key +{ + uint8_t key[8]; + uint32_t flags; +}; + + +#define VIDEO_MAX_FRAME 32 + +struct video_mbuf +{ + int size; /* Total memory to map */ + int frames; /* Frames */ + int offsets[VIDEO_MAX_FRAME]; +}; + + +#define VIDEO_NO_UNIT (-1) + + +struct video_unit +{ + int video; /* Video minor */ + int vbi; /* VBI minor */ + int radio; /* Radio minor */ + int audio; /* Audio minor */ + int teletext; /* Teletext minor */ +}; + +struct vbi_format { + uint32_t sampling_rate; /* in Hz */ + uint32_t samples_per_line; + uint32_t sample_format; /* VIDEO_PALETTE_RAW only (1 byte) */ + int32_t start[2]; /* starting line for each frame */ + uint32_t count[2]; /* count of lines for each frame */ + uint32_t flags; +#define VBI_UNSYNC 1 /* can distingues between top/bottom field */ +#define VBI_INTERLACED 2 /* lines are interlaced */ +}; + +/* video_info is biased towards hardware mpeg encode/decode */ +/* but it could apply generically to any hardware compressor/decompressor */ +struct video_info +{ + uint32_t frame_count; /* frames output since decode/encode began */ + uint32_t h_size; /* current unscaled horizontal size */ + uint32_t v_size; /* current unscaled veritcal size */ + uint32_t smpte_timecode; /* current SMPTE timecode (for current GOP) */ + uint32_t picture_type; /* current picture type */ + uint32_t temporal_reference; /* current temporal reference */ + uint8_t user_data[256]; /* user data last found in compressed stream */ + /* user_data[0] contains user data flags, user_data[1] has count */ +}; + +/* generic structure for setting playback modes */ +struct video_play_mode +{ + int mode; + int p1; + int p2; +}; + +/* for loading microcode / fpga programming */ +struct video_code +{ + char loadwhat[16]; /* name or tag of file being passed */ + int datasize; + uint8_t *data; +}; + +#define VIDIOCGCAP _IOR('v',1,struct video_capability) /* Get capabilities */ +#define VIDIOCGCHAN _IOWR('v',2,struct video_channel) /* Get channel info (sources) */ +#define VIDIOCSCHAN _IOW('v',3,struct video_channel) /* Set channel */ +#define VIDIOCGTUNER _IOWR('v',4,struct video_tuner) /* Get tuner abilities */ +#define VIDIOCSTUNER _IOW('v',5,struct video_tuner) /* Tune the tuner for the current channel */ +#define VIDIOCGPICT _IOR('v',6,struct video_picture) /* Get picture properties */ +#define VIDIOCSPICT _IOW('v',7,struct video_picture) /* Set picture properties */ +#define VIDIOCCAPTURE _IOW('v',8,int) /* Start, end capture */ +#define VIDIOCGWIN _IOR('v',9, struct video_window) /* Get the video overlay window */ +#define VIDIOCSWIN _IOW('v',10, struct video_window) /* Set the video overlay window - passes clip list for hardware smarts , chromakey etc */ +#define VIDIOCGFBUF _IOR('v',11, struct video_buffer) /* Get frame buffer */ +#define VIDIOCSFBUF _IOW('v',12, struct video_buffer) /* Set frame buffer - root only */ +#define VIDIOCKEY _IOR('v',13, struct video_key) /* Video key event - to dev 255 is to all - cuts capture on all DMA windows with this key (0xFFFFFFFF == all) */ +#define VIDIOCGFREQ _IOR('v',14, unsigned long) /* Set tuner */ +#define VIDIOCSFREQ _IOW('v',15, unsigned long) /* Set tuner */ +#define VIDIOCGAUDIO _IOR('v',16, struct video_audio) /* Get audio info */ +#define VIDIOCSAUDIO _IOW('v',17, struct video_audio) /* Audio source, mute etc */ +#define VIDIOCSYNC _IOW('v',18, int) /* Sync with mmap grabbing */ +#define VIDIOCMCAPTURE _IOW('v',19, struct video_mmap) /* Grab frames */ +#define VIDIOCGMBUF _IOR('v',20, struct video_mbuf) /* Memory map buffer info */ +#define VIDIOCGUNIT _IOR('v',21, struct video_unit) /* Get attached units */ +#define VIDIOCGCAPTURE _IOR('v',22, struct video_capture) /* Get subcapture */ +#define VIDIOCSCAPTURE _IOW('v',23, struct video_capture) /* Set subcapture */ +#define VIDIOCSPLAYMODE _IOW('v',24, struct video_play_mode) /* Set output video mode/feature */ +#define VIDIOCSWRITEMODE _IOW('v',25, int) /* Set write mode */ +#define VIDIOCGPLAYINFO _IOR('v',26, struct video_info) /* Get current playback info from hardware */ +#define VIDIOCSMICROCODE _IOW('v',27, struct video_code) /* Load microcode into hardware */ +#define VIDIOCGVBIFMT _IOR('v',28, struct vbi_format) /* Get VBI information */ +#define VIDIOCSVBIFMT _IOW('v',29, struct vbi_format) /* Set VBI information */ + + +#define BASE_VIDIOCPRIVATE 192 /* 192-255 are private */ + +/* VIDIOCSWRITEMODE */ +#define VID_WRITE_MPEG_AUD 0 +#define VID_WRITE_MPEG_VID 1 +#define VID_WRITE_OSD 2 +#define VID_WRITE_TTX 3 +#define VID_WRITE_CC 4 +#define VID_WRITE_MJPEG 5 + +/* VIDIOCSPLAYMODE */ +#define VID_PLAY_VID_OUT_MODE 0 + /* p1: = VIDEO_MODE_PAL, VIDEO_MODE_NTSC, etc ... */ +#define VID_PLAY_GENLOCK 1 + /* p1: 0 = OFF, 1 = ON */ + /* p2: GENLOCK FINE DELAY value */ +#define VID_PLAY_NORMAL 2 +#define VID_PLAY_PAUSE 3 +#define VID_PLAY_SINGLE_FRAME 4 +#define VID_PLAY_FAST_FORWARD 5 +#define VID_PLAY_SLOW_MOTION 6 +#define VID_PLAY_IMMEDIATE_NORMAL 7 +#define VID_PLAY_SWITCH_CHANNELS 8 +#define VID_PLAY_FREEZE_FRAME 9 +#define VID_PLAY_STILL_MODE 10 +#define VID_PLAY_MASTER_MODE 11 + /* p1: see below */ +#define VID_PLAY_MASTER_NONE 1 +#define VID_PLAY_MASTER_VIDEO 2 +#define VID_PLAY_MASTER_AUDIO 3 +#define VID_PLAY_ACTIVE_SCANLINES 12 + /* p1 = first active; p2 = last active */ +#define VID_PLAY_RESET 13 +#define VID_PLAY_END_MARK 14 + + + +#define VID_HARDWARE_BT848 1 +#define VID_HARDWARE_QCAM_BW 2 +#define VID_HARDWARE_PMS 3 +#define VID_HARDWARE_QCAM_C 4 +#define VID_HARDWARE_PSEUDO 5 +#define VID_HARDWARE_SAA5249 6 +#define VID_HARDWARE_AZTECH 7 +#define VID_HARDWARE_SF16MI 8 +#define VID_HARDWARE_RTRACK 9 +#define VID_HARDWARE_ZOLTRIX 10 +#define VID_HARDWARE_SAA7146 11 +#define VID_HARDWARE_VIDEUM 12 /* Reserved for Winnov videum */ +#define VID_HARDWARE_RTRACK2 13 +#define VID_HARDWARE_PERMEDIA2 14 /* Reserved for Permedia2 */ +#define VID_HARDWARE_RIVA128 15 /* Reserved for RIVA 128 */ +#define VID_HARDWARE_PLANB 16 /* PowerMac motherboard video-in */ +#define VID_HARDWARE_BROADWAY 17 /* Broadway project */ +#define VID_HARDWARE_GEMTEK 18 +#define VID_HARDWARE_TYPHOON 19 +#define VID_HARDWARE_VINO 20 /* SGI Indy Vino */ +#define VID_HARDWARE_CADET 21 /* Cadet radio */ +#define VID_HARDWARE_TRUST 22 /* Trust FM Radio */ +#define VID_HARDWARE_TERRATEC 23 /* TerraTec ActiveRadio */ +#define VID_HARDWARE_CPIA 24 +#define VID_HARDWARE_ZR36120 25 /* Zoran ZR36120/ZR36125 */ +#define VID_HARDWARE_ZR36067 26 /* Zoran ZR36067/36060 */ +#define VID_HARDWARE_OV511 27 +#define VID_HARDWARE_ZR356700 28 /* Zoran 36700 series */ +#define VID_HARDWARE_W9966 29 +#define VID_HARDWARE_SE401 30 /* SE401 USB webcams */ +#define VID_HARDWARE_PWC 31 /* Philips webcams */ +#define VID_HARDWARE_MEYE 32 /* Sony Vaio MotionEye cameras */ +#define VID_HARDWARE_CPIA2 33 +#define VID_HARDWARE_VICAM 34 +#define VID_HARDWARE_SF16FMR2 35 + +#endif /* videodev.h */ -- 2.11.4.GIT