; $Id: SAA713xCards.ini,v 1.19 2007-08-23 14:44:44 dosx86 Exp $
;
; SAA713x card list.
;
; ***** Defining a card: *****
;
; Each card in this list is defined in a single ``section''.  A section starts
; with the card name between square brackets ([ ]) and continues until another
; card is named in the same manner.  Here is an outline of the data that may
; be contained in each section:
;
; [<card name>]
; DeviceID = <device id = 0x7130, 0x7134>
; DefaultTuner = <tuner = see below for complete list of tuner>
; AudioCrystal = <audio crystal = none, 32MHz, 24MHz>
; GPIOMask = <gpio mask>
; AutoDetectID = <id1>, <id2>, <id3>
;
; Input ( <input name>, <input type = tuner, composite, svideo, ccir, radio> )
;     VideoPin = <video pin = 0 .. 4>
;     AudioPin = <audio pin = none, line1, line2, dac>
;     GPIOSet( <bits>, <mask>)
;
; Final ()
;     VideoPin = <video pin>
;     AudioPin = <audio pin = none, line1, line2, dac>
;     GPIOSet( <bits>, <mask>)
;
; UseTDA9887 ()
;     SetModes ( <format1> ) = { <demodulation>, <outputport>, <takeoverpoint> }
;     SetModes ( <format2> ) = { <demodulation>, <outputport>, <takeoverpoint> }
;
; (Note: The triangular brackets (< >) are not part of values.)
;
; The 'card name' can be anything but is limited to a maximum of 127
; characters and should not be the same as another card already in this
; file.  This name will be what will appears in the user interfaces in
; DScaler.
;
; 'DeviceID' can be one of 0x7130 or 0x7134 and relates to the type of
; chip the card has.  Cards with a SAA7134 chip should use 0x7134, while the
; other should be used by cards with a SAA7130 chip.  Only cards in this file
; with a matching 'DeviceID' to that of the card in the computer will show
; up in the cards selection dialog in DSCaler.  Specifying the wrong device ID
; may lead to unexpected results because code paths specific to certain chip
; type is chosen by the value specified here.  (Use RegSpy to find out the
; correct value.  See below.)
; 
; 'DefaultTuner' is the tuner that will be chosen initially for a card and
; when tuner "auto detection" is used.  It should be set to the type of tuner
; on the card.  The numeric value of tuners can also be used.  See the bottom
; of this file for the complete list of tuners.  (RegSpy cannot be used to find
; out this value.)
;
; 'GPIOMask' defines the input (1) and output (0) in bits of the GPIO status
; bits provided by the SAA713x chip.  (Use RegSpy to find out the correct
; value.  See below.)
;
; 'AudioCrystal' is only used by SAA7134 and should be set to"none" or omitted
; for an SAA7130.  Selecting the wrong audio crystal may result in incorrect
; sound.  (Use RegSpy to find out the correct value.  See below.)
;
; 'AutoDetectID' is a value that identifies a specific card and allows DScaler
; to automatically choosing the proper card type.  Not all cards have an auto
; detect id but cards that do should enter the value here.  Note '0x00001131'
; is not a valid auto detect id.  It is the default value given by SAA713x when
; a card does not have an auto detect id.  It can be entered but will be
; ignored.  If more than one card in this file have the same 'AutoDetectID' and
; 'DeviceID' only the first card is chosen.  Up to three auto detect ids can be
; entered in a comma and optional space delimited list.  This can be useful
; when the same card is distributed under multiple brands with different auto
; detect ids.  (Use RegSpy to find out the correct value.  See below.)
;
; 'Input (...)'.  Put one of these before the definition of every input.
;
; 'input name' can be anything but is limited to 63 characters.  It is what will
; appear in DScaler's user interfaces.
;
; 'input type' must be one of the five listed.  RegSpy cannot be easily used to
; determine out this value.  However, one should almost always know what type an
; input is.  Note, for "composite over s-video", use 'composite'.  The only
; difference between types 'svideo' and 'composite' is in the way some video
; adjustments are performed by the SAA7134 chip.
;
; 'VideoPin' can be a number from 0 to 4.  Setting the incorrect value will
; affect video display in the way of lacking or incorrect source.  -1 can be
; set for no video but it can just as well be omitted for the same effect.
; (Use RegSpy to find out the correct value.  See below.)
;
; 'AudioPin' can be one of the four listed above or numeric values 0 to 2 for
; "line1" to "dac" and -1 for "none".  Setting the incorrect value will affect
; audio in the way of lacking or incorrect source audio.  However, lack of
; audio can be caused by numerous other problems too.  (Use RegSpy to find out
; the correct value.  See below.)
;
; 'GPIOSet (...)'.  Put one of these if the input should have an associated GPIO
; setting.  The 'bits' and 'mask' values of this setting is be used to perform
; arbitary functions specific to the card and/or manufacturuer.  (Use RegSpy to
; find out the correct value.  See below.)
;
; 'Final ()' can be put after defining all inputs in the card, to specify the
; configuration that should be applied to the card before DScaler exits.
; Although 'AudioPin' is listed, this setting it is not currently honoured.
; (Use RegSpy to find out a correct value.  See below.)
;
; 'UseTDA9887 ()':
;   Formats: pal-bg, pal-i, pal-dk, pal-mn secam-l, secam-dk,
;            ntsc-m, ntsc-jp, radio.
;   Modes:
;     Carrier = qss/intercarrier
;     OutputPort1 = active/inactive
;     OutputPort2 = active/inactive
;     TakeOverPoint = max, min, default, 0x00 .. 0x1f
;
; Just 'UseTDA9887 = yes' is also accepted.
;
;
; ***** Using RegSpy to determine correct values: *****
;
; If there are more than one card in the computer, make sure the correct card
; is selected in RegSpy.  Using RegSpy involves performing a series of step
; very similar to those listed here:
; http://www.dscaler.org/phpBB/viewtopic.php?t=1055
;
; Put simply, RegSpy is used to see the value of registers in the TV card while
; it is in use by a program other than DScaler.  The procedure involves looking
; at the values while the other program is using each of the inputs on the card
; (or as many of the inputs as you want supposed by DScaler.)
;
; (The RegSpy file can also be sent to me but it may take some time before I
; can reply to your email.)
;
; The "other program" is usually the TV viewing program that was supplied with
; the card, but can be any TV program that works with your card.  (Obviously
; not Dscaler otherwise it would not be necessary to follow these steps.)
;
; In the "Hardware" box at the top in RegSpy are the values for 'DeviceID' and
; 'AutoDetectID' (Subsystem ID) that will be correct regardless of whether the
; _other program_ is running or which input it is currently showing.
;
; The correct value of 'AudioCrystal' should appear in the Registers box beside
; "SAA7134_AUDIO_CLOCK" while the _other program_ is showing any input.  If
; different inputs show a different audio clock value, use the one for the tuner
; input.  Ignoring the first two digits (left most) in the value shown by
; RegSpy, the value of 187de7 means 32MHz and 200000 means 24MHz.  (SAA7130
; cards do not have an audio crystal and should use "none" or omit the setting.)
;
; The value for 'GPIOMask' is available at the same time 'AudioCrystal' above
; is.  Its value is that of SAA7134_GPIO_GPMODE bit masked (bitwise AND) with
; 0x0EFFFFFF and '0x' stuck in front of the result.  The value shown by RegSpy
; is in hexadecimal.  More often than not, all that is necessary to get the
; correct value is to drop the left most digit and put '0x' in the front.
; e.g. "8018e700" becomes 0x018e700.  Unnecessary bits left in the value will
; be internally removed during actual use.
;
; The rest of the settings are input specific.  To work out their values, choose
; an input in the _other program_.  For that input, the correct values are:
;
; - For 'VideoPin', looking at the last digit of "SAA7134_ANALOG_IN_CTRL1".
; If it is between 0 and 4 (inclusive), that digit is used.  If it is 6 or 8,
; the value used is 0 and the input is probably s-video.  If it is 7 or 9, the
; value used is 1 and the input is probably s-video.  Any other value is
; unexpected.
;
; - For 'AudioPin', looking at the last digit of "SAA7134_ANALOG_IO_SELECT"
; masked (bitwise AND) with 3.  If it is between 0 and 2, this digit is used.
; Any other value is unexpected.  The conversion to textual representation
; (although this is not necessary) is 0 = "line1", 1 = "line2", 2 = "dac".
;
; - For 'GPIOSet', 'bits' is the value of "SAA7134_GPIO_GPSTATUS" bit masked
; (bitwise AND) with the value of GPIOMask determined earlier.  'mask' can be
; same as the value of GPIOMask.  The value shown by RegSpy is in hexadecimal.
; Some values for 'mask' in the cards already in this file differ from their
; respective GPIOMask values but those are the result of some guesswork by me.  
;
; To get the values pertaining to 'Final()', look for the values in RegSpy after
; the other program_ has exit.
;
;
; Report bugs in this documentation, card list or those related to the parsing
; of this configuration file to atnak at users.sourceforge.net.
;

[Proteus Pro [philips reference design]]
DeviceID = 0x7134
DefaultTuner = philips_pal
AudioCrystal = 32MHz
AutoDetectID = 0x20011131

Input ( "Tuner", tuner )
	VideoPin = 1
	AudioPin = dac

Input ( "Composite", composite )
	VideoPin = 0
	AudioPin = line1


[LifeView FlyVideo3000 / Chronos Video Shuttle II]
;Chronos Video Shuttle II (Based on FlyVideo 3000, Stereo)
;Thanks "Velizar Velinov" <veli_velinov2001@ya...>
DeviceID = 0x7134
DefaultTuner = philips_pal
AudioCrystal = 24MHz
GPIOMask = 0x0018e700
AutoDetectID = 0x01384e42

Input ( "Tuner", tuner )
	VideoPin = 1
	AudioPin = dac
	GPIOSet( 0x0000, 0xE000 )

Input ( "Composite", composite )
	VideoPin = 3
	AudioPin = line2
	GPIOSet( 0x4000, 0xE000 )

Input ( "S-Video", svideo )
	VideoPin = 0
	AudioPin = line2
	GPIOSet( 0x4000, 0xE000 )

Input ( "Composite over S-Video", composite )
	VideoPin = 0
	AudioPin = line2
	GPIOSet( 0x4000, 0xE000 )

Input ( "Radio", radio )
	AudioPin = line2
	GPIOSet( 0x2000, 0xE000 )

Final ()
	GPIOSet( 0x8000, 0xE000 )


[LifeView FlyVideo2000 / Chronos Video Shuttle II]
;Chronos Video Shuttle II (Based on FlyVideo 2000)
DeviceID = 0x7130
;Some variations of this card use differnet tuners.  E.g. Temic PAL
;a.k.a Snazio TVPVR
DefaultTuner = lg_tapcnew_pal
GPIOMask = 0x0018e700
AutoDetectID = 0x01385168

Input ( "Tuner", tuner )
	VideoPin = 1
	AudioPin = line2
	GPIOSet( 0x0000, 0xE000 )

Input ( "Composite", composite )
	VideoPin = 3
	AudioPin = line2
	GPIOSet( 0x4000, 0xE000 )

Input ( "S-Video", svideo )
	VideoPin = 0
	AudioPin = line2
	GPIOSet( 0x4000, 0xE000 )

Input ( "Composite over S-Video", composite )
	VideoPin = 0
	AudioPin = line2
	GPIOSet( 0x4000, 0xE000 )

Input ( "Radio", radio )
	AudioPin = line2
	GPIOSet( 0x2000, 0xE000 )

Final ()
	GPIOSet( 0x8000, 0xE000 )


[EMPRESS]
;(has TS, i2srate=48000, has CCIR656 video out)
;this comment was added when the card was originally taken
;out of Gerd Knorr's saa7134 v4l2 drivers
DeviceID = 0x7134
DefaultTuner = philips_pal
AudioCrystal = 32MHz
AutoDetectID = 0x67521131

Input ( "Tuner", tuner )
	VideoPin = 1
	AudioPin = line2

Input ( "Composite", composite )
	VideoPin = 0
	AudioPin = line1

Input ( "S-Video", svideo )
	VideoPin = 0
	AudioPin = line1

Input ( "Radio", radio )
	AudioPin = line2


[SKNet Monster TV]
DeviceID = 0x7134
DefaultTuner = philips_mk2_ntsc
AudioCrystal = 32MHz
AutoDetectID = 0x4e851131

Input ( "Tuner", tuner )
	VideoPin = 1
	AudioPin = dac

Input ( "Composite", composite )
	VideoPin = 0
	AudioPin = line1

Input ( "S-Video", svideo )
	VideoPin = 0
	AudioPin = line1

Input ( "Radio", radio )
	VideoPin = 0
	AudioPin = line2


[Tevion MD 9717]
DeviceID = 0x7134
DefaultTuner = philips_pal
AudioCrystal = 24MHz

Input ( "Tuner", tuner )
	VideoPin = 1
	AudioPin = dac

Input ( "Composite", composite )
	VideoPin = 2
	AudioPin = line1

Input ( "Composite over S-Video", composite )
	VideoPin = 3
	AudioPin = line1

Input ( "S-Video", svideo )
	VideoPin = 0 ; might req mode 6
	AudioPin = line1

Input ( "Radio", radio )
	AudioPin = line2


[KNC One TV-Station RDS]
DeviceID = 0x7134
DefaultTuner = philips_fm1216me_mk3
AudioCrystal = 24MHz
UseTDA9887 = yes

Input ( "Tuner", tuner )
	VideoPin = 1
	AudioPin = dac

Input ( "Composite", composite )
	VideoPin = 2
	AudioPin = line1

Input ( "Composite 2", composite )
	VideoPin = 3
	AudioPin = line1

Input ( "Radio", radio )
	AudioPin = line2


[Terratec Cinergy 400 TV]
DeviceID = 0x7134
DefaultTuner = philips_pal
AudioCrystal = 24MHz
AutoDetectID = 0x1142153b

Input ( "Tuner", tuner )
	VideoPin = 1
	AudioPin = dac

Input ( "Composite", composite )
	VideoPin = 4
	AudioPin = line1

Input ( "S-Video", svideo )
	VideoPin = 0
	AudioPin = line1

Input ( "Composite over S-Video", composite )
	VideoPin = 0
	AudioPin = line1


[Medion 5044]
DeviceID = 0x7134
DefaultTuner = philips_fm1216me_mk3
AudioCrystal = 24MHz
GPIOMask = 0x00006000
UseTDA9887 = yes

Input ( "Tuner", tuner )
	VideoPin = 1
	AudioPin = dac
	GPIOSet( 0x4000, 0x6000 )

Input ( "Composite", composite )
	VideoPin = 0
	AudioPin = line2
	GPIOSet( 0x0000, 0x6000 )

Input ( "Composite over S-Video", composite )
	VideoPin = 3
	AudioPin = line2
	GPIOSet( 0x0000, 0x6000 )

Input ( "S-Video", svideo )
	VideoPin = 0
	AudioPin = line2
	GPIOSet( 0x0000, 0x6000 )

Input ( "Radio", radio )
	AudioPin = line2
	GPIOSet( 0x0000, 0x6000 )


[KWORLD KW-TV713XRF / KUROUTO SHIKOU]
;KWORLD KW-TV713XRF (saa7130)
;Thanks "b" <b@ki...>
;this card probably needs GPIO changes but I don't know what they are
DeviceID = 0x7130
DefaultTuner = philips_ntsc

Input ( "Tuner", tuner )
	VideoPin = 1
	AudioPin = line2

Input ( "Composite", composite )
	VideoPin = 3
	AudioPin = line2

Input ( "S-Video", svideo )
	VideoPin = 0
	AudioPin = line2


[Manli M-TV001]
;Manli M-TV001 (saa7130)
;Thanks "Bedo" Bedo@dscaler.forums
DeviceID = 0x7130
;Should be LG TPI8PSB12P PAL B/G
DefaultTuner = lg_b11d_pal
GPIOMask = 0x00006000

Input ( "Tuner", tuner )
	VideoPin = 3
	AudioPin = line2
	GPIOSet( 0x0000, 0x6000 )

Input ( "Composite", composite )
	VideoPin = 1
	AudioPin = line1
	GPIOSet( 0x0000, 0x6000 )

Input ( "S-Video", svideo )
	VideoPin = 0
	AudioPin = line1
	GPIOSet( 0x0000, 0x6000 )


[PrimeTV 7133]
;PrimeTV 7133 (saa7133)
;Thanks "Shin'ya Yamaguchi" <yamaguchi@no...>
;(This card uses the unsupported saa7133 chip.)
DeviceID = 0x7133
;Should be TCL2002NJ or Philips FI1286 (NTSC M-J)
DefaultTuner = philips_fi1286_ntsc_m_j
AudioCrystal = 24MHz
GPIOMask = 0x0018e700
AutoDetectID = 0x01385168

Input ( "Tuner", tuner )
	VideoPin = 1
	AudioPin = line1
	GPIOSet( 0x2000, 0xE000 )

Input ( "Composite", composite )
	VideoPin = 3
	AudioPin = line1
	GPIOSet( 0x4000, 0xE000 )

Input ( "S-Video", svideo )
	VideoPin = 0
	AudioPin = line1
	GPIOSet( 0x4000, 0xE000 )

Final ()
	GPIOSet( 0x8000, 0xE000 )


[Terratec Cinergy 600 TV]
;Thanks "Michel de Glace" <mglace@my...>
DeviceID = 0x7134
DefaultTuner = philips_pal
AudioCrystal = 24MHz
AutoDetectID = 0x1143153b

Input ( "Tuner", tuner )
	VideoPin = 1
	AudioPin = dac

Input ( "Composite", composite )
	VideoPin = 4
	AudioPin = line1

Input ( "S-Video", svideo )
	VideoPin = 0 ; might req mode 6
	AudioPin = line1

Input ( "Composite over S-Video", composite )
	VideoPin = 0
	AudioPin = line1

Input ( "Radio", radio )
	AudioPin = line2


[Medion TV-Tuner 7134 MK2/3]
;Thanks "DavidbowiE" Guest@dscaler.forums
;Thanks "Josef Schneider" <josef@ne...>
DeviceID = 0x7134
DefaultTuner = philips_fm1216me_mk3
AudioCrystal = 32MHz
AutoDetectID = 0x000316be

UseTDA9887 ()
	SetModes ( global ) = { OutputPort2 = active }
	;Medion 7134 uses OutputPort2 for audio AGC.
	;Thanks "Eddy De Greef" on video4linux-list at redhat dot com

Input ( "Tuner", tuner )
	VideoPin = 1
	AudioPin = dac

Input ( "Composite", composite )
	VideoPin = 0
	AudioPin = line1

Input ( "S-Video", svideo )
	VideoPin = 0 ; might req mode 6
	AudioPin = line1

Input ( "Radio", radio )
	AudioPin = line2


[Typhoon TV-Radio 90031]
;Typhoon TV+Radio (Art.Nr. 90031)
;Thanks "Tom Zoerner" <tomzo@ne...>
DeviceID = 0x7134
DefaultTuner = philips_pal
AudioCrystal = 24MHz

Input ( "Tuner", tuner )
	VideoPin = 1
	AudioPin = dac

Input ( "Composite", composite )
	VideoPin = 3
	;MUTE, card has no audio in
	AudioPin = line1

Input ( "S-Video", svideo )
	VideoPin = 0
	;MUTE, card has no audio in
	AudioPin = line1

Input ( "Radio", radio )
	AudioPin = line2


[Manli M-TV002]
;Manli M-TV002 (saa7130)
;Thanks "Patrik Gloncak" <gloncak@ho...>
DeviceID = 0x7130
DefaultTuner = lg_b11d_pal

Input ( "Tuner", tuner )
	VideoPin = 3
	AudioPin = line2

Input ( "Composite", composite )
	VideoPin = 1
	AudioPin = line1

Input ( "S-Video", svideo )
	VideoPin = 0 ; might req mode 6
	AudioPin = line1

Input ( "Radio", radio )
	AudioPin = line2


[V-Gear MyTV SAP PK]
;Thanks "Ken Chung" <kenchunghk2000@ya...>
DeviceID = 0x7134
DefaultTuner = philips_pal_i
AudioCrystal = 32MHz
GPIOMask = 0x00004400

Input ( "Tuner", tuner )
	VideoPin = 1
	AudioPin = dac
	GPIOSet( 0x0400, 0x4400 )

Input ( "Composite", composite )
	VideoPin = 3
	AudioPin = line1
	GPIOSet( 0x0400, 0x4400 )

Input ( "S-Video", svideo )
	VideoPin = 0
	AudioPin = line1
	GPIOSet( 0x0400, 0x4400 )


[ASUS TV/FM]
;Thanks "Wolfgang Scholz" <wolfgang.scholz@ka...>
DeviceID = 0x7134
DefaultTuner = philips_fm1216me_mk3
AudioCrystal = 32MHz
AutoDetectID = 0x48421043
UseTDA9887 = yes

Input ( "Tuner", tuner )
	VideoPin = 1
	AudioPin = dac

Input ( "Composite", composite )
	VideoPin = 4
	AudioPin = line2

Input ( "S-Video", svideo )
	VideoPin = 0 ; might req mode 6
	AudioPin = line2

Input ( "Radio", radio )
	AudioPin = line2


[Aopen VA1000 Lite2]
;Aopen VA1000 Lite2 (saa7130)
;Thanks "stu" <ausstu@ho...>
DeviceID = 0x7130
DefaultTuner = lg_tapcnew_pal
GPIOMask = 0x00000060

Input ( "Tuner", tuner )
	VideoPin = 0
	AudioPin = line1
	GPIOSet( 0x0070, 0x40 )

Input ( "Composite", composite )
	VideoPin = 0
	AudioPin = line1
	GPIOSet( 0x0070, 0x20 )

Input ( "S-Video", svideo )
	VideoPin = 0
	AudioPin = line1
	GPIOSet( 0x0070, 0x20 )


[ASK SELECT AS-VCV300/PCI]
;(saa7130)
;Thanks "Tetsuya Takahashi" <tetsu_64k@ze...>
; - may have Videoport
; - may have Transport Stream
DeviceID = 0x7130
AutoDetectID = 0x226e1048

Input ( "Composite", composite )
	VideoPin = 0
	AudioPin = line1

Input ( "S-Video", svideo )
	VideoPin = 1
	AudioPin = line1


[Medion MD-2819 PC-TV-radio card]
;Thanks "Sanel.B" <vlasenica@ya...>
;Thanks "Mc" <michel.heusinkveld2@wa...>
;Thanks "Ing. Arno Pucher" <eolruin@ch...>
DeviceID = 0x7134
DefaultTuner = philips_fm1216me_mk3
AudioCrystal = 32MHz
GPIOMask = 0x00040007
AutoDetectID = 0xa70b1461
UseTDA9887 = yes

Input ( "Tuner", tuner )
	VideoPin = 1
	AudioPin = dac
	GPIOSet( 0x0006, 0x40007 )

Input ( "Composite", composite )
	VideoPin = 3
	AudioPin = line1
	GPIOSet( 0x0006, 0x40007 )

Input ( "S-Video", svideo )
	VideoPin = 0 ; might req mode 6
	AudioPin = line1
	GPIOSet( 0x0006, 0x40007 )

Input ( "Radio", radio )
	AudioPin = line1
	GPIOSet( 0x0005, 0x40007 )

Final ()
	GPIOSet( 0x0004, 0x40007 )


[FlyVideo FlyView 3100 (no audio)]
;FlyVideo FlyView 3100 (NTSC Version - United States)
;Thanks "Ryan N. Datsko" <MysticWhiteDragon@ho...>
;SAA7133 -- not supported
DeviceID = 0x7133
DefaultTuner = philips_ntsc
GPIOMask = 0x0018e700
AutoDetectID = 0x01385168

Input ( "Tuner", tuner )
	VideoPin = 1
	AudioPin = line1
	GPIOSet( 0x0000, 0xE000 )

Input ( "Composite", composite )
	VideoPin = 3
	AudioPin = line1
	GPIOSet( 0x4000, 0xE000 )

Input ( "Radio", radio )
	AudioPin = line1
	GPIOSet( 0x0000, 0xE000 )

Final ()
	GPIOSet( 0x8000, 0xE000 )


[Pinnacle PCTV Stereo]
;Thanks "Fabio Maione" <maione@ma...>
;Thanks "Dr. Uwe Zettl" <uwe.zettl@t...>
;Thanks "Aristarco" <aristarco@ar...>
;Thanks "Abu Baker" <shaair@g...>
;Thanks "Graham Jest" <GrahamJest@ri...>
;Thanks "Werner Meyer" <werner.meyer@ep...>
;Card uses specialized TDA9887 chip configuration for audio
DeviceID = 0x7134
DefaultTuner = mt2050_pal
AudioCrystal = 32MHz
AutoDetectID = 0x002b11bd

UseTDA9887 ()
	SetModes ( pal-bg ) = { intercarrier }
	SetModes ( pal-i ) = { intercarrier }
	SetModes ( pal-dk ) = { intercarrier }
	; These three were tested.  Maybe other formats
	; should be intercarrier too.  (Default is QSS.)

Input ( "Tuner", tuner )
	VideoPin = 3
	AudioPin = dac

Input ( "Composite", composite )
	VideoPin = 1
	AudioPin = line2

Input ( "S-Video", svideo )
	VideoPin = 0
	AudioPin = line2


[AverMedia AverTV Studio 305]
;Thanks "Oeoeeia Aieodee" <sid16@ya...>
DeviceID = 0x7130
DefaultTuner = philips_fm1216me_mk3
GPIOMask = 0x00040007
AutoDetectID = 0x21151461
UseTDA9887 = yes

Input ( "Tuner", tuner )
	VideoPin = 1
	AudioPin = line1
	GPIOSet( 0x0005, 0x40007 )

Input ( "Composite", composite )
	VideoPin = 3
	AudioPin = line1
	GPIOSet( 0x0006, 0x40007 )

Input ( "S-Video", svideo )
	VideoPin = 0 ; might req mode 6
	AudioPin = line1
	GPIOSet( 0x0006, 0x40007 )

Input ( "Radio", radio )
	AudioPin = line1
	GPIOSet( 0x0005, 0x40007 )

Final ()
	AudioPin = dac
	GPIOSet( 0x0004, 0x40007 )


[Elitegroup EZ-TV]
;Thanks "Arturo Garcia" <argabulk@ho...>
;+ Card "Grandmars PV951P4TF" is same except ID and Tuner chip(?)
;  Thanks Kwok Kelvin <kelvin002@ho...>
DeviceID = 0x7134
DefaultTuner = philips_pal
AudioCrystal = 32MHz
AutoDetectID = 0x4cb41019

Input ( "Tuner", tuner )
	VideoPin = 1
	AudioPin = dac

Input ( "Composite", composite )
	VideoPin = 3
	AudioPin = line1

Input ( "S-Video", svideo )
	VideoPin = 0
	AudioPin = line1

Input ( "Radio", radio )
	AudioPin = line2


[ST Lab PCI-TV7130]
;Thanks "Aidan Gill" <schmookoo@ho...>
DeviceID = 0x7130
DefaultTuner = philips_pal
GPIOMask = 0x00007000
AutoDetectID = 0x20011131

Input ( "Tuner", tuner )
	VideoPin = 1
	AudioPin = line2
	GPIOSet( 0x0000, 0x7000 )

Input ( "Composite", composite )
	VideoPin = 3
	AudioPin = line1
	GPIOSet( 0x2000, 0x7000 )

Input ( "S-Video", svideo )
	VideoPin = 0 ; might req mode 6
	AudioPin = line1
	GPIOSet( 0x2000, 0x7000 )

Final ()
	AudioPin = dac
	GPIOSet( 0x3000, 0x7000 )

[Lifeview FlyTV Platinum Gold]
DeviceID     = 0x7133
DefaultTuner = philips_tda8275
GPIOMask     = 0x0019E700
AutoDetectID = 0x03045168
AudioCrystal = 24MHz

Input ( "Tuner", tuner )
    VideoPin = 1
    AudioPin = dac
    GPIOSet( 0x16400, 0x0019E700 )

Input ( "Composite", composite )
    VideoPin = 3
    AudioPin = line2
    GPIOSet( 0x16400, 0x0019E700 )

Input ( "S-Video", svideo )
    VideoPin = 0
    AudioPin = line2
    GPIOSet( 0x16400, 0x0019E700 )

Final ()
    GPIOSet( 0x16400, 0x0019E700 )

[Lifeview FlyTV Platinum (no audio)]
;Thanks "Chousw" <chousw@ms...>
;SAA7133 -- not supported
DeviceID = 0x7133
DefaultTuner = philips_ntsc
GPIOMask = 0x0018e700
AutoDetectID = 0x02145168

Input ( "Tuner", tuner )
	VideoPin = 1
	AudioPin = line1
	GPIOSet( 0x0000, 0xE000 )

Input ( "Composite", composite )
	VideoPin = 3
	AudioPin = line1
	GPIOSet( 0x4000, 0xE000 )

Input ( "S-Video", svideo )
	VideoPin = 0 ; might req mode 6
	AudioPin = line1
	GPIOSet( 0x4000, 0xE000 )

Final ()
	GPIOSet( 0x8000, 0xE000 )


[Compro VideoMate TV Gold Plus]
;Thanks "Stephen McCormick" <sdmcc@pa...>
DeviceID = 0x7134
DefaultTuner = philips_pal
AudioCrystal = 32MHz
GPIOMask = 0x001ce780
AutoDetectID = 0xc200185b

Input ( "Tuner", tuner )
	VideoPin = 1
	AudioPin = dac
	GPIOSet( 0x8080, 0x1CE780 )

Input ( "Composite", composite )
	VideoPin = 3
	AudioPin = line1
	GPIOSet( 0x8080, 0x1CE780 )

Input ( "S-Video", svideo )
	VideoPin = 0 ; might req mode 6
	AudioPin = line1
	GPIOSet( 0x8080, 0x1CE780 )

Final ()
	GPIOSet( 0xC8000, 0x1CE780 )


[Much TV Plus]
;Much TV Plus IT005
;Thanks "Norman Jonas" <normanjonas@ar...>
DeviceID = 0x7134
;Should be LG TPI8PSB02P PAL B/G
DefaultTuner = lg_b11d_pal
AudioCrystal = 32MHz

Input ( "Tuner", tuner )
	VideoPin = 3
	AudioPin = dac

Input ( "Composite", composite )
	VideoPin = 1
	AudioPin = line1

Input ( "S-Video", svideo )
	VideoPin = 0 ; might req mode 6
	AudioPin = line1

Input ( "Radio", radio )
	AudioPin = line2


[Dazzle My TV]
;Thanks <rockmong@ho...>
;Looks like a FlyVideo 2000 clone (from Korea)
DeviceID = 0x7130
DefaultTuner = philips_ntsc
GPIOMask = 0x0018e700
AutoDetectID = 0x01384e42

Input ( "Tuner", tuner )
	VideoPin = 1
	AudioPin = line2
	GPIOSet( 0x4000, 0xE000 )

Input ( "Composite", composite )
	VideoPin = 3
	AudioPin = line1
	GPIOSet( 0x4000, 0xE000 )

Input ( "S-Video", svideo )
	VideoPin = 0
	AudioPin = line1
	GPIOSet( 0x4000, 0xE000 )


[Genius Video Wonder PRO III]
;Thanks Michal Kueera <michalk@my...>
;Looks like another FlyVideo 3000 clone (from Czech Republic)
;Notice this card is a SAA7134 but the DAC appears not used
DeviceID = 0x7134
DefaultTuner = philips_pal
AudioCrystal = 32MHz
GPIOMask = 0x0018e700
AutoDetectID = 0x01385168

Input ( "Tuner", tuner )
	VideoPin = 1
	AudioPin = line2
	GPIOSet( 0x0000, 0xE000 )

Input ( "Composite", composite )
	VideoPin = 3
	AudioPin = line2
	GPIOSet( 0x4000, 0xE000 )

Input ( "S-Video", svideo )
	VideoPin = 0
	AudioPin = line2
	GPIOSet( 0x4000, 0xE000 )

Final ()
	GPIOSet( 0x8000, 0xE000 )


[V-Gear MyTV2 Radio]
;V-Gear MyTV2 Radio (saa7130)
;Thanks "Daniel Kutin" <daniel.kutin@os...>
;Another card by vendor 0x0138.
DeviceID = 0x7130
DefaultTuner = philips_pal
GPIOMask = 0x0000e000
AutoDetectID = 0x013819d0

Input ( "Tuner", tuner )
	VideoPin = 1
	AudioPin = line2
	GPIOSet( 0x0000, 0xE000 )

Input ( "Composite", composite )
	VideoPin = 3
	AudioPin = line2
	GPIOSet( 0x4000, 0xE000 )

Input ( "S-Video", svideo )
	VideoPin = 0 ; might req mode 6
	AudioPin = line2
	GPIOSet( 0x4000, 0xE000 )

Input ( "Radio", radio )
	AudioPin = line2
	GPIOSet( 0x2000, 0xE000 )

Final ()
	AudioPin = dac
	GPIOSet( 0x8000, 0xE000 )


[K-Win V-Stream Studio TV Terminator]
;Thanks "Alex Perez" <aperez@st...>
;Thanks Petya Petrova <petya_84bg@ya...>
;This card may use VideoPort, and various TS I/O.
DeviceID = 0x7133
DefaultTuner = philips_tda8275
AudioCrystal = 32MHz
GPIOMask = 0x0038e700

Input ( "Tuner", tuner )
	VideoPin = 1
	AudioPin = dac
	GPIOSet( 0x008000, 0x30E000 )

Input ( "Composite", composite )
	VideoPin = 3
	AudioPin = line1 ; guessed
	GPIOSet( 0x008000, 0x30E000 )

Input ( "S-Video", svideo )
	VideoPin = 0
	AudioPin = line1 ; guessed
	GPIOSet( 0x008000, 0x30E000 )

Input ( "Radio", radio )
	AudioPin = line2 ; guessed
	GPIOSet( 0x208000, 0x30E000 )

Final ()
	GPIOSet( 0x008000, 0x30E000 )


[Terratec Cinergy 200 TV]
;Thanks "Jan Kuhmann" <jan.kuhmann@we...>
DeviceID = 0x7130
DefaultTuner = philips_pal
AutoDetectID = 0x1152153b

Input ( "Tuner", tuner )
	VideoPin = 1
	AudioPin = line2

Input ( "Composite", composite )
	VideoPin = 4
	AudioPin = line1

Input ( "S-Video", svideo )
	VideoPin = 0 ; might req mode 6
	AudioPin = line1


[Empire PCI TV-Radio LE]
;Thanks "Matteo Azzali" <matte.az@li...>
;This card may have noise problems on audio line1 if set to
;"1.0 Vrms or less".  (Configured in Advanced Settings.)
DeviceID = 0x7130
DefaultTuner = philips_pal
GPIOMask = 0x00004700

Input ( "Tuner", tuner )
	VideoPin = 1
	AudioPin = line2
	GPIOSet( 0x000, 0x700 )

Input ( "Composite", composite )
	VideoPin = 3
	AudioPin = line1
	GPIOSet( 0x200, 0x700 )

Input ( "S-Video", svideo )
	VideoPin = 0 ; might req mode 6
	AudioPin = line1
	GPIOSet( 0x200, 0x700 )
	
Input ( "Radio", radio )
	AudioPin = line1
	GPIOSet( 0x100, 0x700 )

Final ()
	AudioPin = dac
	GPIOSet( 0x400, 0x700 )


[AverMedia AverTV Studio 307]
;Thanks "Abramov DA" <a6pamob@ya...>
DeviceID = 0x7134
DefaultTuner = philips_fm1216me_mk3
AudioCrystal = 32MHz
GPIOMask = 0x0c040007
AutoDetectID = 0x97151461
UseTDA9887 = yes

Input ( "Tuner", tuner )
	VideoPin = 1
	AudioPin = dac
	GPIOSet( 0x1, 0x7 )

Input ( "Composite", composite )
	VideoPin = 3
	AudioPin = line1
	GPIOSet( 0x2, 0x7 )

Input ( "S-Video", svideo )
	VideoPin = 0
	AudioPin = line1
	GPIOSet( 0x2, 0x7 )
	
Input ( "Radio", radio )
	AudioPin = line2
	GPIOSet( 0x1, 0x7 )

Final ()
	GPIOSet( 0x0, 0x7 )


[AverMedia DVD EZMaker PCI]
;Thanks "" <renascent@c...>
DeviceID = 0x7130
GPIOMask = 0x00040003
AutoDetectID = 0x10ff1461

Input ( "Composite", composite )
	VideoPin = 3
	AudioPin = line1
	GPIOSet( 0x2, 0x2 )

Input ( "S-Video", svideo )
	VideoPin = 0
	AudioPin = line1
	GPIOSet( 0x2, 0x2 )


[Compro VideoMate TV Gold Plus II]
;Thanks "Ruslan" <ruslan@de...>
;Thanks "Elshin Roman" <roxmail@li...>
; I recieved two RegSpy logs of this card with vastly different
; GPIO status and modes.  The first style is very similar to that
; which is used by the non-II "Gold Plus" card also in this file.
; It is the GPIO lines that are commented out.
;
; This card has a TEA5767 chip at I2C address 0x60 (0xC0) which is
; not the tuner.
;
; Note that this card has the same auto detect ID as the non-II
; version of this card by the same manufacturer.
DeviceID = 0x7134
DefaultTuner = lg_tapcnew_pal
AudioCrystal = 32MHz
;GPIOMask = 0x001ce780
GPIOMask = 0x008c1880
AutoDetectID = 0xc200185b

Input ( "Tuner", tuner )
	VideoPin = 1
	AudioPin = dac
	;GPIOSet( 0xC8080, 0x1CE780 )
	GPIOSet( 0x800000, 0x8c1880 )

Input ( "Composite", composite )
	VideoPin = 3
	AudioPin = line1
	;GPIOSet( 0xC8080, 0x1CE780 )
	GPIOSet( 0x801000, 0x8c1880 )

Input ( "S-Video", svideo )
	VideoPin = 0 ; might req mode 6
	AudioPin = line1
	;GPIOSet( 0xC8080, 0x1CE780 )
	GPIOSet( 0x800800, 0x8c1880 )

Input ( "Radio", radio )
	AudioPin = dac
	GPIOSet( 0x880000, 0x8c1880 )

Final ()
	;GPIOSet( 0xC8000, 0x1CE780 )
	GPIOSet( 0x840000, 0x8c1880 )


[FOTOCOM TV ONE XP]
;Thanks "Chousw" <chousw@ms...>
;This card appears to use the DAC audio input even though
;it is a SAA7130 card.
DeviceID = 0x7130
DefaultTuner = tcl_2002n
GPIOMask = 0x00003000
AutoDetectID = 0x23111131

Input ( "Tuner", tuner )
	VideoPin = 1
	AudioPin = dac
	GPIOSet( 0x0000, 0x3000 )

Input ( "Composite", composite )
	VideoPin = 3
	AudioPin = line1
	GPIOSet( 0x2000, 0x3000 )

Input ( "S-Video", svideo )
	VideoPin = 0 ; might req mode 6
	AudioPin = line1
	GPIOSet( 0x2000, 0x3000 )

Final ()
	GPIOSet( 0x3000, 0x3000 )


[Medion MD-42073]
;Thanks "Jeffrey Willemsen" <detox@wa...>
;This card is exactly the same as the "Medion MD-2819"
;card that is also in this file except it doesn't have
;the constant 0x4 bit set in the GPIO.  This entry might
;not be necessary.
DeviceID = 0x7134
DefaultTuner = philips_fm1216me_mk3
AudioCrystal = 32MHz
GPIOMask = 0x00040003
AutoDetectID = 0xa70b1461
UseTDA9887 = yes

Input ( "Tuner", tuner )
	VideoPin = 1
	AudioPin = dac
	GPIOSet( 0x0002, 0x40003 )

Input ( "Composite", composite )
	VideoPin = 3
	AudioPin = line1
	GPIOSet( 0x0002, 0x40003 )

Input ( "S-Video", svideo )
	VideoPin = 0 ; might req mode 6
	AudioPin = line1
	GPIOSet( 0x0002, 0x40003 )

Input ( "Radio", radio )
	AudioPin = line1
	GPIOSet( 0x0001, 0x40003 )

Final ()
	GPIOSet( 0x0000, 0x40003 )


[V-Stream Xpert-TV PVR-7134]
;Thanks "Adam Kodish" <adam.kodish@nt...>
DeviceID = 0x7134
DefaultTuner = philips_pal_i
AudioCrystal = 32MHz
GPIOMask = 0x0700

Input ( "Tuner", tuner )
	VideoPin = 1
	AudioPin = dac
	GPIOSet( 0x000, 0x700 )

Input ( "Composite", composite )
	VideoPin = 3
	AudioPin = line1
	GPIOSet( 0x200, 0x700 )

Input ( "S-Video", svideo )
	VideoPin = 0 ; might req mode 6
	AudioPin = line1
	GPIOSet( 0x200, 0x700 )

Input ( "Radio", radio )
	AudioPin = line1
	GPIOSet( 0x100, 0x700 )

Final ()
	GPIOSet( 0x000, 0x700 )


[Terratec Cinergy 400 Mobile]
;Thanks "Kurt Edegger" <news_tmp1@ed...>
; This card does not have a loopback cable and relies
; on DMA for audio which is not supported.
DeviceID = 0x7133
DefaultTuner = alps_tsbe5_pal
AudioCrystal = 32MHz
GPIOMask = 0x001ce700
AutoDetectID = 0x1162153b

Input ( "Tuner", tuner )
	VideoPin = 1
	AudioPin = dac
	GPIOSet( 0x002000, 0x1ce700 )

Input ( "Composite", composite )
	VideoPin = 3
	AudioPin = line1
	GPIOSet( 0x042000, 0x1ce700 )

Input ( "S-Video", svideo )
	VideoPin = 1 ; 1 for mode 9
	AudioPin = line1
	GPIOSet( 0x042000, 0x1ce700 )

Final ()
	GPIOSet( 0x042000, 0x1ce700 )


[Asus 7131D]
;Thanks "Keld Damsbo" <keld@dam...>
DeviceID = 0x7133
DefaultTuner = philips_tda8275
AudioCrystal = 32MHz
GPIOMask = 0x0200000
AutoDetectID = 0x48621043

Input ( "Tuner", tuner )
	VideoPin = 1
	AudioPin = dac

Input ( "Composite", composite )
	VideoPin = 3
	AudioPin = line2

Input ( "S-Video", svideo )
	VideoPin = 0
	AudioPin = line2

Input ( "CCIR656", ccir )
	VideoPin = 2
	AudioPin = line2

Input ( "Radio", radio )
	AudioPin = line2


[ASUS TV-FM 7135 Silicon]
;Thanks "Keld Damsbo" <keld@dam...>
DeviceID = 0x7133
DefaultTuner = philips_tda8275
AudioCrystal = 32MHz
AutoDetectID = 0x48451043
UseTDA9887 = yes
 
Input ( "Tuner", tuner )
    VideoPin = 1
    AudioPin = dac
 
Input ( "Composite", composite )
    VideoPin = 3
    AudioPin = line2
 
Input ( "S-Video", svideo )
    VideoPin = 0
    AudioPin = line2
 
 Input ( "Radio", radio )
    AudioPin = line2


[MSI TV@nywhere Plus]
DeviceID = 0x7133
DefaultTuner = philips_tda8275
GPIOMask = 0x39E700
AutoDetectID = 0x62311462
AudioCrystal = 32MHz

Input ("Tuner", tuner)
    VideoPin = 1
    AudioPin = line1
    GPIOSet(0x16400, 0x39E700)

Input ("Composite", composite)
    VideoPin = 3
    AudioPin = line1
    GPIOSet(0x16400, 0x39E700)

Input ("S-Video", svideo)
    VideoPin = 0
    AudioPin = line1
    GPIOSet(0x16400, 0x39E700)

Final ()
    GPIOSet(0x16400, 0x39E700)
    

[MSI TV@nywhere Pro (Pal)]
;Thanks "captain-shiny" from Forum
DeviceID = 0x7134
DefaultTuner = tena_9533_di
GPIOMask = 0x700
AudioCrystal = 32MHz
AutoDetectID = 0x88031462

Input ( "Tuner", tuner )
    VideoPin = 1
    AudioPin = dac
    GPIOSet( 0x100, 0x700 )

Input ( "Composite", composite )
    VideoPin = 3
    AudioPin = line1
    GPIOSet( 0x200, 0x700 )

Input ( "S-Video", svideo )
    VideoPin = 0
    AudioPin = line1
    GPIOSet( 0x200, 0x700 )
    

; ***** Tuner list: (as at July 2005) *****
; auto                        -2
; setup                       -1
; absent                      0
; philips_pal_i               1
; philips_ntsc                2
; philips_secam               3
; philips_pal                 4
; temic_4002fh5_pal           5
; temic_4032fy5_ntsc          6
; temic_4062fy5_pal_i         7
; temic_4036fy5_ntsc          8
; alps_tsbh1_ntsc             9
; alps_tsbe1_pal              10
; alps_tsbb5_pal_i            11
; alps_tsbe5_pal              12
; alps_tsbc5_pal              13
; temic_4006fh5_pal           14
; philips_1236d_ntsc_input1   15
; philips_1236d_ntsc_input2   16
; alps_tsch6_ntsc             17
; temic_4016fy5_pal           18
; philips_mk2_ntsc            19
; temic_4066fy5_pal_i         20
; temic_4006fn5_pal           21
; temic_4009fr5_pal           22
; temic_4039fr5_ntsc          23
; temic_4046fm5_multi         24
; philips_pal_dk              25
; philips_multi               26
; lg_i001d_pal_i              27
; lg_i701d_pal_i              28
; lg_r01f_ntsc                29
; lg_b01d_pal                 30
; lg_b11d_pal                 31
; temic_4009fn5_pal           32
; mt2032                      33
; sharp_2u5jf5540_ntsc        34
; lg_tapch701p_ntsc           35
; samsung_pal_tcpm9091pd27    36
; temic_4106fh5               37
; temic_4012fy5               38
; temic_4136fy5               39
; lg_tapcnew_pal              40
; philips_fm1216me_mk3        41
; lg_tapcnew_ntsc             42
; mt2032_pal                  43
; philips_fi1286_ntsc_m_j     44
; mt2050                      45
; mt2050_pal                  46
; philips_4in1                47
; tcl_2002n                   48
; hitachi_ntsc				  49
; philips_pal_mk			  50
; philips_fm1236_mk3		  51
; lg_ntsc_tape				  52
; tnf_8831bgff				  53
; philips_fm1256_ih3		  54
; philips_fq1286			  55
; lg_pal_tape				  56
; philips_fq1216ame_mk4		  57
; philips_fq1236a_mk4		  58
; philips_tda8275             59
; ymec_tvf_8531mf             60
; ymec_tvf_5533mf             61
; tena_9533_di                62
; philips_fmd1216me_mk3       63
;
