···11-/* cx25840 API header11+/* cx25840 internal API header22 *33 * Copyright (C) 2003-2004 Chris Kennedy44 *···1717 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.1818 */19192020-#ifndef _CX25840_H_2121-#define _CX25840_H_2020+#ifndef _CX25840_CORE_H_2121+#define _CX25840_CORE_H_222223232424#include <linux/videodev2.h>···3131 is to select the audio standard explicitly. Many thanks to Hauppauge for3232 providing this information. */3333#define CX25840_CID_ENABLE_PVR150_WORKAROUND (V4L2_CID_PRIVATE_BASE+0)3434-3535-enum cx25840_video_input {3636- /* Composite video inputs In1-In8 */3737- CX25840_COMPOSITE1 = 1,3838- CX25840_COMPOSITE2,3939- CX25840_COMPOSITE3,4040- CX25840_COMPOSITE4,4141- CX25840_COMPOSITE5,4242- CX25840_COMPOSITE6,4343- CX25840_COMPOSITE7,4444- CX25840_COMPOSITE8,4545-4646- /* S-Video inputs consist of one luma input (In1-In4) ORed with one4747- chroma input (In5-In8) */4848- CX25840_SVIDEO_LUMA1 = 0x10,4949- CX25840_SVIDEO_LUMA2 = 0x20,5050- CX25840_SVIDEO_LUMA3 = 0x30,5151- CX25840_SVIDEO_LUMA4 = 0x40,5252- CX25840_SVIDEO_CHROMA4 = 0x400,5353- CX25840_SVIDEO_CHROMA5 = 0x500,5454- CX25840_SVIDEO_CHROMA6 = 0x600,5555- CX25840_SVIDEO_CHROMA7 = 0x700,5656- CX25840_SVIDEO_CHROMA8 = 0x800,5757-5858- /* S-Video aliases for common luma/chroma combinations */5959- CX25840_SVIDEO1 = 0x510,6060- CX25840_SVIDEO2 = 0x620,6161- CX25840_SVIDEO3 = 0x730,6262- CX25840_SVIDEO4 = 0x840,6363-};6464-6565-enum cx25840_audio_input {6666- /* Audio inputs: serial or In4-In8 */6767- CX25840_AUDIO_SERIAL,6868- CX25840_AUDIO4 = 4,6969- CX25840_AUDIO5,7070- CX25840_AUDIO6,7171- CX25840_AUDIO7,7272- CX25840_AUDIO8,7373-};74347535struct cx25840_state {7636 int pvr150_workaround;
+64
include/media/cx25840.h
···11+/*22+ cx25840.h - definition for cx25840/1/2/3 inputs33+44+ Copyright (C) 2006 Hans Verkuil (hverkuil@xs4all.nl)55+66+ This program is free software; you can redistribute it and/or modify77+ it under the terms of the GNU General Public License as published by88+ the Free Software Foundation; either version 2 of the License, or99+ (at your option) any later version.1010+1111+ This program is distributed in the hope that it will be useful,1212+ but WITHOUT ANY WARRANTY; without even the implied warranty of1313+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the1414+ GNU General Public License for more details.1515+1616+ You should have received a copy of the GNU General Public License1717+ along with this program; if not, write to the Free Software1818+ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.1919+*/2020+2121+#ifndef _CX25840_H_2222+#define _CX25840_H_2323+2424+enum cx25840_video_input {2525+ /* Composite video inputs In1-In8 */2626+ CX25840_COMPOSITE1 = 1,2727+ CX25840_COMPOSITE2,2828+ CX25840_COMPOSITE3,2929+ CX25840_COMPOSITE4,3030+ CX25840_COMPOSITE5,3131+ CX25840_COMPOSITE6,3232+ CX25840_COMPOSITE7,3333+ CX25840_COMPOSITE8,3434+3535+ /* S-Video inputs consist of one luma input (In1-In4) ORed with one3636+ chroma input (In5-In8) */3737+ CX25840_SVIDEO_LUMA1 = 0x10,3838+ CX25840_SVIDEO_LUMA2 = 0x20,3939+ CX25840_SVIDEO_LUMA3 = 0x30,4040+ CX25840_SVIDEO_LUMA4 = 0x40,4141+ CX25840_SVIDEO_CHROMA4 = 0x400,4242+ CX25840_SVIDEO_CHROMA5 = 0x500,4343+ CX25840_SVIDEO_CHROMA6 = 0x600,4444+ CX25840_SVIDEO_CHROMA7 = 0x700,4545+ CX25840_SVIDEO_CHROMA8 = 0x800,4646+4747+ /* S-Video aliases for common luma/chroma combinations */4848+ CX25840_SVIDEO1 = 0x510,4949+ CX25840_SVIDEO2 = 0x620,5050+ CX25840_SVIDEO3 = 0x730,5151+ CX25840_SVIDEO4 = 0x840,5252+};5353+5454+enum cx25840_audio_input {5555+ /* Audio inputs: serial or In4-In8 */5656+ CX25840_AUDIO_SERIAL,5757+ CX25840_AUDIO4 = 4,5858+ CX25840_AUDIO5,5959+ CX25840_AUDIO6,6060+ CX25840_AUDIO7,6161+ CX25840_AUDIO8,6262+};6363+6464+#endif