aboutsummaryrefslogtreecommitdiffstats
path: root/include/media
diff options
context:
space:
mode:
Diffstat (limited to 'include/media')
-rw-r--r--include/media/audiochip.h4
-rw-r--r--include/media/id.h4
-rw-r--r--include/media/ir-common.h3
-rw-r--r--include/media/tuner.h43
-rw-r--r--include/media/tveeprom.h4
5 files changed, 54 insertions, 4 deletions
diff --git a/include/media/audiochip.h b/include/media/audiochip.h
index d3e9e30608dc..f345a61c3bdb 100644
--- a/include/media/audiochip.h
+++ b/include/media/audiochip.h
@@ -1,3 +1,7 @@
1/*
2 * $Id: audiochip.h,v 1.3 2005/06/12 04:19:19 mchehab Exp $
3 */
4
1#ifndef AUDIOCHIP_H 5#ifndef AUDIOCHIP_H
2#define AUDIOCHIP_H 6#define AUDIOCHIP_H
3 7
diff --git a/include/media/id.h b/include/media/id.h
index 1b0320dc8f73..a39a6423914b 100644
--- a/include/media/id.h
+++ b/include/media/id.h
@@ -1,3 +1,7 @@
1/*
2 * $Id: id.h,v 1.4 2005/06/12 04:19:19 mchehab Exp $
3 */
4
1/* FIXME: this temporarely, until these are included in linux/i2c-id.h */ 5/* FIXME: this temporarely, until these are included in linux/i2c-id.h */
2 6
3/* drivers */ 7/* drivers */
diff --git a/include/media/ir-common.h b/include/media/ir-common.h
index 62c963a52d86..698670547f16 100644
--- a/include/media/ir-common.h
+++ b/include/media/ir-common.h
@@ -1,5 +1,5 @@
1/* 1/*
2 * $Id: ir-common.h,v 1.8 2005/02/22 12:28:40 kraxel Exp $ 2 * $Id: ir-common.h,v 1.9 2005/05/15 19:01:26 mchehab Exp $
3 * 3 *
4 * some common structs and functions to handle infrared remotes via 4 * some common structs and functions to handle infrared remotes via
5 * input layer ... 5 * input layer ...
@@ -50,6 +50,7 @@ extern IR_KEYTAB_TYPE ir_codes_rc5_tv[IR_KEYTAB_SIZE];
50extern IR_KEYTAB_TYPE ir_codes_winfast[IR_KEYTAB_SIZE]; 50extern IR_KEYTAB_TYPE ir_codes_winfast[IR_KEYTAB_SIZE];
51extern IR_KEYTAB_TYPE ir_codes_empty[IR_KEYTAB_SIZE]; 51extern IR_KEYTAB_TYPE ir_codes_empty[IR_KEYTAB_SIZE];
52extern IR_KEYTAB_TYPE ir_codes_hauppauge_new[IR_KEYTAB_SIZE]; 52extern IR_KEYTAB_TYPE ir_codes_hauppauge_new[IR_KEYTAB_SIZE];
53extern IR_KEYTAB_TYPE ir_codes_pixelview[IR_KEYTAB_SIZE];
53 54
54void ir_input_init(struct input_dev *dev, struct ir_input_state *ir, 55void ir_input_init(struct input_dev *dev, struct ir_input_state *ir,
55 int ir_type, IR_KEYTAB_TYPE *ir_codes); 56 int ir_type, IR_KEYTAB_TYPE *ir_codes);
diff --git a/include/media/tuner.h b/include/media/tuner.h
index 156a9c51ffec..4794c5632360 100644
--- a/include/media/tuner.h
+++ b/include/media/tuner.h
@@ -1,5 +1,6 @@
1 1
2/* 2/* $Id: tuner.h,v 1.33 2005/06/21 14:58:08 mkrufky Exp $
3 *
3 tuner.h - definition for different tuners 4 tuner.h - definition for different tuners
4 5
5 Copyright (C) 1997 Markus Schroeder (schroedm@uni-duesseldorf.de) 6 Copyright (C) 1997 Markus Schroeder (schroedm@uni-duesseldorf.de)
@@ -23,8 +24,12 @@
23#ifndef _TUNER_H 24#ifndef _TUNER_H
24#define _TUNER_H 25#define _TUNER_H
25 26
27#include <linux/videodev2.h>
28
26#include "id.h" 29#include "id.h"
27 30
31#define ADDR_UNSET (255)
32
28#define TUNER_TEMIC_PAL 0 /* 4002 FH5 (3X 7756, 9483) */ 33#define TUNER_TEMIC_PAL 0 /* 4002 FH5 (3X 7756, 9483) */
29#define TUNER_PHILIPS_PAL_I 1 34#define TUNER_PHILIPS_PAL_I 1
30#define TUNER_PHILIPS_NTSC 2 35#define TUNER_PHILIPS_NTSC 2
@@ -86,7 +91,7 @@
86#define TUNER_LG_NTSC_TAPE 47 91#define TUNER_LG_NTSC_TAPE 47
87 92
88#define TUNER_TNF_8831BGFF 48 93#define TUNER_TNF_8831BGFF 48
89#define TUNER_MICROTUNE_4042FI5 49 /* FusionHDTV 3 Gold - 4042 FI5 (3X 8147) */ 94#define TUNER_MICROTUNE_4042FI5 49 /* DViCO FusionHDTV 3 Gold-Q - 4042 FI5 (3X 8147) */
90#define TUNER_TCL_2002N 50 95#define TUNER_TCL_2002N 50
91#define TUNER_PHILIPS_FM1256_IH3 51 96#define TUNER_PHILIPS_FM1256_IH3 51
92 97
@@ -96,7 +101,17 @@
96#define TUNER_LG_PAL_TAPE 55 /* Hauppauge PVR-150 PAL */ 101#define TUNER_LG_PAL_TAPE 55 /* Hauppauge PVR-150 PAL */
97 102
98#define TUNER_PHILIPS_FQ1216AME_MK4 56 /* Hauppauge PVR-150 PAL */ 103#define TUNER_PHILIPS_FQ1216AME_MK4 56 /* Hauppauge PVR-150 PAL */
99#define TUNER_PHILIPS_FQ1236A_MK4 57 /* Hauppauge PVR-500MCE NTSC */ 104#define TUNER_PHILIPS_FQ1236A_MK4 57 /* Hauppauge PVR-500MCE NTSC */
105
106#define TUNER_YMEC_TVF_8531MF 58
107#define TUNER_YMEC_TVF_5533MF 59 /* Pixelview Pro Ultra NTSC */
108#define TUNER_THOMSON_DTT7611 60 /* DViCO FusionHDTV 3 Gold-T */
109#define TUNER_TENA_9533_DI 61
110
111#define TUNER_TEA5767 62 /* Only FM Radio Tuner */
112#define TUNER_PHILIPS_FMD1216ME_MK3 63
113
114#define TEA5767_TUNER_NAME "Philips TEA5767HN FM Radio"
100 115
101#define NOTUNER 0 116#define NOTUNER 0
102#define PAL 1 /* PAL_BG */ 117#define PAL 1 /* PAL_BG */
@@ -104,6 +119,7 @@
104#define NTSC 3 119#define NTSC 3
105#define SECAM 4 120#define SECAM 4
106#define ATSC 5 121#define ATSC 5
122#define RADIO 6
107 123
108#define NoTuner 0 124#define NoTuner 0
109#define Philips 1 125#define Philips 1
@@ -119,10 +135,20 @@
119#define TCL 11 135#define TCL 11
120#define THOMSON 12 136#define THOMSON 12
121 137
138enum v4l_radio_tuner {
139 TEA5767_LOW_LO_32768 = 0,
140 TEA5767_HIGH_LO_32768 = 1,
141 TEA5767_LOW_LO_13MHz = 2,
142 TEA5767_HIGH_LO_13MHz = 3,
143};
144
145
122#define TUNER_SET_TYPE _IOW('t',1,int) /* set tuner type */ 146#define TUNER_SET_TYPE _IOW('t',1,int) /* set tuner type */
123#define TUNER_SET_TVFREQ _IOW('t',2,int) /* set tv freq */ 147#define TUNER_SET_TVFREQ _IOW('t',2,int) /* set tv freq */
148#define TUNER_SET_TYPE_ADDR _IOW('T',3,int) /* set tuner type and I2C addr */
124 149
125#define TDA9887_SET_CONFIG _IOW('t',5,int) 150#define TDA9887_SET_CONFIG _IOW('t',5,int)
151
126/* tv card specific */ 152/* tv card specific */
127# define TDA9887_PRESENT (1<<0) 153# define TDA9887_PRESENT (1<<0)
128# define TDA9887_PORT1_INACTIVE (1<<1) 154# define TDA9887_PORT1_INACTIVE (1<<1)
@@ -143,6 +169,12 @@
143#define I2C_ADDR_TDA8290 0x4b 169#define I2C_ADDR_TDA8290 0x4b
144#define I2C_ADDR_TDA8275 0x61 170#define I2C_ADDR_TDA8275 0x61
145 171
172struct tuner_addr {
173 enum v4l2_tuner_type v4l2_tuner;
174 unsigned int type;
175 unsigned short addr;
176};
177
146struct tuner { 178struct tuner {
147 /* device */ 179 /* device */
148 struct i2c_client i2c; 180 struct i2c_client i2c;
@@ -165,11 +197,15 @@ struct tuner {
165 unsigned char i2c_easy_mode[2]; 197 unsigned char i2c_easy_mode[2];
166 unsigned char i2c_set_freq[8]; 198 unsigned char i2c_set_freq[8];
167 199
200 /* used to keep track of audmode */
201 unsigned int audmode;
202
168 /* function ptrs */ 203 /* function ptrs */
169 void (*tv_freq)(struct i2c_client *c, unsigned int freq); 204 void (*tv_freq)(struct i2c_client *c, unsigned int freq);
170 void (*radio_freq)(struct i2c_client *c, unsigned int freq); 205 void (*radio_freq)(struct i2c_client *c, unsigned int freq);
171 int (*has_signal)(struct i2c_client *c); 206 int (*has_signal)(struct i2c_client *c);
172 int (*is_stereo)(struct i2c_client *c); 207 int (*is_stereo)(struct i2c_client *c);
208 int (*set_tuner)(struct i2c_client *c, struct v4l2_tuner *v);
173}; 209};
174 210
175extern unsigned int tuner_debug; 211extern unsigned int tuner_debug;
@@ -177,6 +213,7 @@ extern unsigned const int tuner_count;
177 213
178extern int microtune_init(struct i2c_client *c); 214extern int microtune_init(struct i2c_client *c);
179extern int tda8290_init(struct i2c_client *c); 215extern int tda8290_init(struct i2c_client *c);
216extern int tea5767_tuner_init(struct i2c_client *c);
180extern int default_tuner_init(struct i2c_client *c); 217extern int default_tuner_init(struct i2c_client *c);
181 218
182#define tuner_warn(fmt, arg...) \ 219#define tuner_warn(fmt, arg...) \
diff --git a/include/media/tveeprom.h b/include/media/tveeprom.h
index 627603e561a6..5c4fe30e8d1d 100644
--- a/include/media/tveeprom.h
+++ b/include/media/tveeprom.h
@@ -1,3 +1,7 @@
1/*
2 * $Id: tveeprom.h,v 1.2 2005/06/12 04:19:19 mchehab Exp $
3 */
4
1struct tveeprom { 5struct tveeprom {
2 u32 has_radio; 6 u32 has_radio;
3 7