2 cx25840.h - definition for cx25840/1/2/3 inputs
4 Copyright (C) 2006 Hans Verkuil (hverkuil@xs4all.nl)
6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2 of the License, or
9 (at your option) any later version.
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with this program; if not, write to the Free Software
18 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
24 enum cx25840_video_input
{
25 /* Composite video inputs In1-In8 */
26 CX25840_COMPOSITE1
= 1,
35 /* S-Video inputs consist of one luma input (In1-In8) ORed with one
36 chroma input (In5-In8) */
37 CX25840_SVIDEO_LUMA1
= 0x10,
38 CX25840_SVIDEO_LUMA2
= 0x20,
39 CX25840_SVIDEO_LUMA3
= 0x30,
40 CX25840_SVIDEO_LUMA4
= 0x40,
41 CX25840_SVIDEO_LUMA5
= 0x50,
42 CX25840_SVIDEO_LUMA6
= 0x60,
43 CX25840_SVIDEO_LUMA7
= 0x70,
44 CX25840_SVIDEO_LUMA8
= 0x80,
45 CX25840_SVIDEO_CHROMA4
= 0x400,
46 CX25840_SVIDEO_CHROMA5
= 0x500,
47 CX25840_SVIDEO_CHROMA6
= 0x600,
48 CX25840_SVIDEO_CHROMA7
= 0x700,
49 CX25840_SVIDEO_CHROMA8
= 0x800,
51 /* S-Video aliases for common luma/chroma combinations */
52 CX25840_SVIDEO1
= 0x510,
53 CX25840_SVIDEO2
= 0x620,
54 CX25840_SVIDEO3
= 0x730,
55 CX25840_SVIDEO4
= 0x840,
57 /* Allow frames to specify specific input configurations */
58 CX25840_VIN1_CH1
= 0x80000000,
59 CX25840_VIN2_CH1
= 0x80000001,
60 CX25840_VIN3_CH1
= 0x80000002,
61 CX25840_VIN4_CH1
= 0x80000003,
62 CX25840_VIN5_CH1
= 0x80000004,
63 CX25840_VIN6_CH1
= 0x80000005,
64 CX25840_VIN7_CH1
= 0x80000006,
65 CX25840_VIN8_CH1
= 0x80000007,
66 CX25840_VIN4_CH2
= 0x80000000,
67 CX25840_VIN5_CH2
= 0x80000010,
68 CX25840_VIN6_CH2
= 0x80000020,
69 CX25840_NONE_CH2
= 0x80000030,
70 CX25840_VIN7_CH3
= 0x80000000,
71 CX25840_VIN8_CH3
= 0x80000040,
72 CX25840_NONE0_CH3
= 0x80000080,
73 CX25840_NONE1_CH3
= 0x800000c0,
74 CX25840_SVIDEO_ON
= 0x80000100,
77 enum cx25840_audio_input
{
78 /* Audio inputs: serial or In4-In8 */