Permalink
Browse files

Initial version in the new CVS.

Merged with yast2-db-tv.
Updated database of bt8*8 cards.

svn path=/trunk/tv/; revision=2886
  • Loading branch information...
0 parents commit 35c6e6c57b5be3ff667dbdfaf83e356d6106aa0d @kendy kendy committed Jun 25, 2002
Showing with 7,138 additions and 0 deletions.
  1. +17 −0 .cvsignore
  2. +1 −0 MAINTAINER
  3. +18 −0 Makefile.cvs
  4. +1 −0 RPMNAME
  5. +1 −0 VERSION
  6. +12 −0 configure.in.in
  7. +3 −0 data/.cvsignore
  8. +120 −0 data/CARDLIST.bttv
  9. +7 −0 data/CARDLIST.saa7134
  10. +18 −0 data/Makefile.am
  11. +125 −0 data/create_tuner_db
  12. +185 −0 data/create_tv_db
  13. +2 −0 doc/.cvsignore
  14. +12 −0 doc/Makefile.am
  15. +3 −0 doc/autodocs/.cvsignore
  16. +9 −0 doc/autodocs/Makefile.am
  17. +416 −0 doc/tv-audio.ui
  18. +393 −0 doc/tv-detect.ui
  19. +20 −0 doc/tv-features.txt
  20. +455 −0 doc/tv-manual-details.ui
  21. +375 −0 doc/tv-manual.ui
  22. +349 −0 doc/tv-overview.ui
  23. +253 −0 doc/tv-specification.html
  24. BIN doc/tv.dia
  25. +393 −0 doc/tv.ui
  26. +2 −0 package/.cvsignore
  27. +205 −0 package/yast2-tv.changes
  28. +2 −0 src/.cvsignore
  29. +26 −0 src/Makefile.am
  30. +1,305 −0 src/Tv.ycp
  31. +176 −0 src/helps.ycp
  32. +70 −0 src/misc.ycp
  33. +112 −0 src/proposal_tv.ycp
  34. +38 −0 src/tv.y2cc
  35. +61 −0 src/tv.ycp
  36. +86 −0 src/tv_auto.ycp
  37. +59 −0 src/tv_write.ycp
  38. +1,065 −0 src/ui.ycp
  39. +11 −0 testsuite/.cvsignore
  40. +19 −0 testsuite/Makefile.am
  41. 0 testsuite/tests/TvCardAddCurrent.err
  42. +21 −0 testsuite/tests/TvCardAddCurrent.out
  43. +88 −0 testsuite/tests/TvCardAddCurrent.ycp
  44. 0 testsuite/tests/TvCardGet.err
  45. +31 −0 testsuite/tests/TvCardGet.out
  46. +75 −0 testsuite/tests/TvCardGet.ycp
  47. 0 testsuite/tests/TvCardRemove.err
  48. +31 −0 testsuite/tests/TvCardRemove.out
  49. +80 −0 testsuite/tests/TvCardRemove.ycp
  50. 0 testsuite/tests/TvCardReplaceWithCurrent.err
  51. +81 −0 testsuite/tests/TvCardReplaceWithCurrent.out
  52. +100 −0 testsuite/tests/TvCardReplaceWithCurrent.ycp
  53. 0 testsuite/tests/TvGetMajor81Aliases.err
  54. +14 −0 testsuite/tests/TvGetMajor81Aliases.out
  55. +52 −0 testsuite/tests/TvGetMajor81Aliases.ycp
  56. 0 testsuite/tests/TvReadKernelModules.err
  57. +14 −0 testsuite/tests/TvReadKernelModules.out
  58. +33 −0 testsuite/tests/TvReadKernelModules.ycp
  59. 0 testsuite/tests/TvReadModuleParameters.err
  60. +14 −0 testsuite/tests/TvReadModuleParameters.out
  61. +50 −0 testsuite/tests/TvReadModuleParameters.ycp
  62. +29 −0 yast2-tv.spec.in
@@ -0,0 +1,17 @@
+Makefile
+Makefile.am
+Makefile.in
+aclocal.m4
+autom4te.cache
+config.*
+configure
+configure.in
+depcomp
+install-sh
+libtool
+ltconfig
+ltmain.sh
+missing
+mkinstalldirs
+stamp-h*
+*.pot
@@ -0,0 +1 @@
+Jan Holesovsky <kendy@suse.cz>
@@ -0,0 +1,18 @@
+#
+# Makefile.cvs
+#
+configure: all
+ ./configure
+
+all:
+ y2tool y2autoconf
+ y2tool y2automake
+ autoreconf --force --install
+
+install: configure
+ make
+ make install
+
+reconf: all
+ ./config.status --recheck
+ ./config.status
@@ -0,0 +1 @@
+yast2-tv
@@ -0,0 +1 @@
+2.6.3
@@ -0,0 +1,12 @@
+## YCP module configure.in.in
+
+## Initialize
+@YAST2-INIT-COMMON@
+@YAST2-INIT-YCP@
+
+## some common checks
+@YAST2-CHECKS-COMMON@
+@YAST2-CHECKS-YCP@
+
+## and generate the output...
+@YAST2-OUTPUT@
@@ -0,0 +1,3 @@
+Makefile
+Makefile.in
+*.ycp
@@ -0,0 +1,120 @@
+bttv.o
+ card=0 - *** UNKNOWN/GENERIC ***
+ card=1 - MIRO PCTV
+ card=2 - Hauppauge (bt848)
+ card=3 - STB
+ card=4 - Intel
+ card=5 - Diamond DTV2000
+ card=6 - AVerMedia TVPhone
+ card=7 - MATRIX-Vision MV-Delta
+ card=8 - FlyVideo II (Bt848) LR26
+ card=9 - IXMicro TurboTV
+ card=10 - Hauppauge (bt878)
+ card=11 - MIRO PCTV pro
+ card=12 - ADS Technologies Channel Surfer TV
+ card=13 - AVerMedia TVCapture 98
+ card=14 - Aimslab Video Highway Xtreme (VHX)
+ card=15 - Zoltrix TV-Max
+ card=16 - Pixelview PlayTV (bt878)
+ card=17 - Leadtek WinView 601
+ card=18 - AVEC Intercapture
+ card=19 - LifeView FlyKit w/o Tuner
+ card=20 - CEI Raffles Card
+ card=21 - Lucky Star Image World ConferenceTV
+ card=22 - Phoebe Tv Master + FM (CPH050)
+ card=23 - Modular Technology MM205 PCTV, bt878
+ card=24 - [many vendors] CPH05X/06X (bt878)
+ card=25 - Terratec/Vobis TV-Boostar
+ card=26 - Newer Hauppauge WinCam (bt878)
+ card=27 - MAXI TV Video PCI2
+ card=28 - Terratec TerraTV+
+ card=29 - Imagenation PXC200
+ card=30 - FlyVideo 98
+ card=31 - iProTV
+ card=32 - Intel Create and Share PCI
+ card=33 - Terratec TerraTValue
+ card=34 - Leadtek WinFast 2000
+ card=35 - Flyvideo 98 (LR50Q) / Chronos Video Shuttle II
+ card=36 - Flyvideo 98FM (LR50Q) / Typhoon TView TV/FM Tuner
+ card=37 - PixelView PlayTV pro
+ card=38 - TView99 CPH06X
+ card=39 - Pinnacle PCTV Studio/Rave
+ card=40 - STB2
+ card=41 - AVerMedia TVPhone 98
+ card=42 - ProVideo PV951
+ card=43 - Little OnAir TV
+ card=44 - Sigma TVII-FM
+ card=45 - MATRIX-Vision MV-Delta 2
+ card=46 - Zoltrix Genie TV/FM
+ card=47 - Terratec TV/Radio+
+ card=48 - Dynalink Magic TView
+ card=49 - GV-BCTV3
+ card=50 - Prolink PV-BT878P+4E / PixelView PlayTV PAK / Lenco MXTV-9578 CP
+ card=51 - Eagle Wireless Capricorn2 (bt878A)
+ card=52 - Pinnacle PCTV Studio Pro
+ card=53 - Typhoon TView RDS + FM Stereo / KNC1 TV Station RDS
+ card=54 - Lifetec LT 9415 TV (LR90 Rev.F)
+ card=55 - BESTBUY Easy TV (CPH031)
+ card=56 - FlyVideo '98/FM
+ card=57 - GrandTec 'Grand Video Capture' (Bt848)
+ card=58 - Phoebe TV Master Only (No FM) CPH060
+ card=59 - TV Capturer (CPH03X)
+ card=60 - Modular Technology MM100PCTV
+ card=61 - AG Electronics GMV1
+ card=62 - BESTBUY Easy TV (bt878)
+ card=63 - ATI TV-Wonder
+ card=64 - ATI TV-Wonder VE
+ card=65 - FlyVideo 2000S
+ card=66 - Terratec TValueRadio
+ card=67 - GV-BCTV4/PCI
+ card=68 - 3Dfx VoodooTV FM (Euro), VoodooTV 200 (USA)
+ card=69 - Active Imaging AIMMS
+ card=70 - PV-BT878P+
+ card=71 - Flyvideo 98EZ (capture only)
+ card=72 - Prolink PV-BT878P+9B (PlayTV Pro rev.9B FM+NICAM)
+ card=73 - Sensoray 311
+ card=74 - RemoteVision MX (RV605)
+ card=75 - Powercolor MTV878/ MTV878R/ MTV878F
+ card=76 - Canopus WinDVR PCI (COMPAQ Presario 3524JP, 5112JP)
+ card=77 - GrandTec Multi Capture Card (Bt878)
+ card=78 - AOPEN VA1000
+
+tuner.o
+ type=0 - Temic PAL (4002 FH5)
+ type=1 - Philips PAL_I
+ type=2 - Philips NTSC
+ type=3 - Philips SECAM
+ type=4 - NoTuner
+ type=5 - Philips PAL
+ type=6 - Temic NTSC (4032 FY5)
+ type=7 - Temic PAL_I (4062 FY5)
+ type=8 - Temic NTSC (4036 FY5)
+ type=9 - Alps HSBH1
+ type=10 - Alps TSBE1
+ type=11 - Alps TSBB5
+ type=12 - Alps TSBE5
+ type=13 - Alps TSBC5
+ type=14 - Temic PAL_BG (4006FH5)
+ type=15 - Alps TSCH6
+ type=16 - Temic PAL_DK (4016 FY5)
+ type=17 - Philips NTSC_M (MK2)
+ type=18 - Temic PAL_I (4066 FY5)
+ type=19 - Temic PAL* auto (4006 FN5)
+ type=20 - Temic PAL_BG (4009 FR5) or PAL_I (4069 FR5)
+ type=21 - Temic NTSC (4039 FR5)
+ type=22 - Temic PAL/SECAM multi (4046 FM5)
+ type=23 - Philips PAL_DK
+ type=24 - Philips PAL/SECAM multi (FQ1216ME)
+ type=25 - LG PAL_I+FM (TAPC-I001D)
+ type=26 - LG PAL_I (TAPC-I701D)
+ type=27 - LG NTSC+FM (TPI8NSR01F)
+ type=28 - LG PAL_BG+FM (TPI8PSB01D)
+ type=29 - LG PAL_BG (TPI8PSB11D)
+ type=30 - Temic PAL* auto + FM (4009 FN5)
+ type=31 - SHARP NTSC_JP (2U5JF5540)
+ type=32 - Samsung PAL TCPM9091PD27
+ type=33 - MT2032 universal
+ type=34 - Temic PAL_BG (4106 FH5)
+ type=35 - Temic PAL_DK/SECAM_L (4012 FY5)
+ type=36 - Temic NTSC (4136 FY5)
+ type=37 - LG PAL (newer TAPC series)
@@ -0,0 +1,7 @@
+0 = UNKNOWN/GENERIC
+1 = Proteus Pro [philips reference design]
+2 = LifeView FlyVIDEO3000
+3 = LifeView FlyVIDEO2000
+4 = EMPRESS
+5 = SKNet Monster TV
+6 = Tevion MD 9717
@@ -0,0 +1,18 @@
+#
+# Makefile.am for tv/data
+#
+# $Id$
+#
+
+# TODO FIXME: The following must go away!!!
+ydatadir = $(yast2dir)
+
+ydata_DATA = tv_cards.ycp tv_tuners.ycp
+
+tv_cards.ycp: CARDLIST.bttv CARDLIST.saa7134
+ $(srcdir)/create_tv_db $^ > $@
+
+tv_tuners.ycp: CARDLIST.bttv
+ $(srcdir)/create_tuner_db $^ > $@
+
+CLEANFILES = $(ydata_DATA)
@@ -0,0 +1,125 @@
+#! /usr/bin/perl -w
+#
+# creates tv_tuners.ycp - a database with the TV tuners
+#
+# $1 - the CARDLIST source file
+# ...more to come...
+
+if ($#ARGV != 0)
+{
+ die "Please, specify the source files as parameters!";
+}
+
+# Parameters
+$bttv_cardlist = $ARGV[0];
+# ... more to come ...
+
+# Names to translate
+%clean_names =
+ (
+ "NoTuner" => "No tuner"
+ );
+
+# This is for the sort function...
+sub get_name_cmp
+{
+ $ref = shift;
+ $name = $ref->{"name"};
+
+ if ($name =~ /^_\(/)
+ {
+ $name = "!".$name; # To change the order...
+ }
+ $name =~ tr/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/;
+
+ return $name;
+}
+
+# Create the BTTV part of the database
+sub dbBTTV
+{
+ $name = shift;
+ open (DB, $name) or die "Cannot open $name!";
+
+ @tuner_array = ();
+
+ print " \"bttv\" : [\n";
+
+ $tuners = 0;
+ while (<DB>)
+ {
+ # we end with a tuner.o line
+ if (/tuner\.o/)
+ {
+ $tuners = 1;
+ next;
+ }
+ # create the line
+ if ($tuners && /^\s*([^=]*)=(\S*)\s*-\s*(.*)$/)
+ {
+ # Clean the name
+ my $card_name = $3;
+ if (defined $clean_names{$card_name})
+ {
+ $card_name = "_(\"$clean_names{$card_name}\")";
+ }
+ else
+ {
+ $card_name = "\"$card_name\"";
+ }
+ # Clean param
+ my $param_name = $1;
+ if ($param_name eq "type")
+ {
+ $param_name = "tuner";
+ }
+
+ $item =
+ { "name" => $card_name,
+ "parameters" => "\$[ \"$param_name\" : \"$2\" ]"
+ };
+
+ push @tuner_array, $item;
+ }
+ }
+
+ $first = 1;
+ foreach $ref (sort { get_name_cmp($a) cmp get_name_cmp($b) } @tuner_array)
+ {
+ # we do not add a "," before the first entry
+ if ($first)
+ {
+ $first = 0;
+ }
+ else
+ {
+ print ",\n";
+ }
+
+ print "\t\$[ \"name\" : $ref->{\"name\"},\n";
+ print "\t \"parameters\" : $ref->{\"parameters\"}\n";
+ print "\t]";
+ }
+
+ print "\n ]";
+
+ close(DB);
+}
+
+# And do it!
+
+print "/* YaST2 TV tuners database\n";
+print " *\n";
+print " * Generated ".qx(date);
+print " * From: @ARGV\n";
+print " Textdomain \"tv\"\n";
+print " */";
+print "\n";
+print "\$[\n";
+
+dbBTTV($bttv_cardlist);
+#...more to come...
+
+print "\n]\n";
+
+# The end...
Oops, something went wrong.

0 comments on commit 35c6e6c

Please sign in to comment.