diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2008-01-25 16:59:51 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-01-25 16:59:51 -0500 |
commit | b31fde6db2b76a9f7f59bf016652b46cff43f8da (patch) | |
tree | 2af4c48ae97b9800604fc0b36bc5c274d46d4aa3 /drivers/media/video/tuner-driver.h | |
parent | f31c338675872875e24f124af0689131b0c72600 (diff) | |
parent | a999337b49fcdd2c4a475e97e4b8337ebdfa4abf (diff) |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/v4l-dvb
* git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/v4l-dvb: (509 commits)
V4L/DVB (7078): radio: fix sf16fmi section mismatch
V4L/DVB (7077): bt878: remove handcrafted PCI subsystem ID check
V4L/DVB (7075): Make a local function static
V4L/DVB (7074): DiB7000P: correct tuning problem for 7MHz channel
V4L/DVB (7073): DiB7070: Reception quality improved
V4L/DVB (7072): sets the MT2060 IF1 frequency according to EEPROM
V4L/DVB (7071): DiB0700: Start streaming the right way
V4L/DVB (7070): Fix some tuning problems
V4L/DVB (7069): Support for myTV.t
V4L/DVB (7068): Add support for WinTV Nova-T-CE driver
V4L/DVB (7067): fix autoserach in the Hauppauge NOVA-T 500
V4L/DVB (7066): ASUS My Cinema U3000 Mini DVBT Tuner
V4L/DVB (7065): Artec T14BR patches
V4L/DVB (7063): xc5000: Fix OOPS caused by missing firmware
V4L/DVB (7062): radio-si570x: Some fixes and new USB ID addition
V4L/DVB (7061): radio-si470x: Some cleanups
V4L/DVB (7060): em28xx: remove has_tuner
V4L/DVB (7059): cx88: Ensure the tuner is reset correctly
V4L/DVB (7058): IR corrections for the Pinnacle 800i
V4L/DVB (7056): tuner: suppress obsolete tuner i2c address warning for XC5000 tuners
...
Diffstat (limited to 'drivers/media/video/tuner-driver.h')
-rw-r--r-- | drivers/media/video/tuner-driver.h | 99 |
1 files changed, 0 insertions, 99 deletions
diff --git a/drivers/media/video/tuner-driver.h b/drivers/media/video/tuner-driver.h deleted file mode 100644 index 28a10da76d12..000000000000 --- a/drivers/media/video/tuner-driver.h +++ /dev/null | |||
@@ -1,99 +0,0 @@ | |||
1 | /* | ||
2 | tuner-driver.h - interface for different tuners | ||
3 | |||
4 | Copyright (C) 1997 Markus Schroeder (schroedm@uni-duesseldorf.de) | ||
5 | minor modifications by Ralph Metzler (rjkm@thp.uni-koeln.de) | ||
6 | |||
7 | This program is free software; you can redistribute it and/or modify | ||
8 | it under the terms of the GNU General Public License as published by | ||
9 | the Free Software Foundation; either version 2 of the License, or | ||
10 | (at your option) any later version. | ||
11 | |||
12 | This program is distributed in the hope that it will be useful, | ||
13 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
15 | GNU General Public License for more details. | ||
16 | |||
17 | You should have received a copy of the GNU General Public License | ||
18 | along with this program; if not, write to the Free Software | ||
19 | Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | ||
20 | */ | ||
21 | |||
22 | #ifndef __TUNER_DRIVER_H__ | ||
23 | #define __TUNER_DRIVER_H__ | ||
24 | |||
25 | #include <linux/videodev2.h> | ||
26 | #include <linux/i2c.h> | ||
27 | #include "tuner-i2c.h" | ||
28 | #include "dvb_frontend.h" | ||
29 | |||
30 | extern unsigned const int tuner_count; | ||
31 | |||
32 | struct tuner; | ||
33 | |||
34 | struct tuner_operations { | ||
35 | void (*set_tv_freq)(struct tuner *t, unsigned int freq); | ||
36 | void (*set_radio_freq)(struct tuner *t, unsigned int freq); | ||
37 | int (*has_signal)(struct tuner *t); | ||
38 | int (*is_stereo)(struct tuner *t); | ||
39 | int (*get_afc)(struct tuner *t); | ||
40 | void (*tuner_status)(struct tuner *t); | ||
41 | void (*standby)(struct tuner *t); | ||
42 | void (*release)(struct tuner *t); | ||
43 | }; | ||
44 | |||
45 | struct tuner { | ||
46 | /* device */ | ||
47 | struct i2c_client i2c; | ||
48 | |||
49 | unsigned int type; /* chip type */ | ||
50 | |||
51 | unsigned int mode; | ||
52 | unsigned int mode_mask; /* Combination of allowable modes */ | ||
53 | |||
54 | unsigned int tv_freq; /* keep track of the current settings */ | ||
55 | unsigned int radio_freq; | ||
56 | unsigned int audmode; | ||
57 | v4l2_std_id std; | ||
58 | |||
59 | int using_v4l2; | ||
60 | void *priv; | ||
61 | |||
62 | struct dvb_frontend fe; | ||
63 | |||
64 | /* used by tda9887 */ | ||
65 | unsigned int tda9887_config; | ||
66 | |||
67 | unsigned int config; | ||
68 | int (*tuner_callback) (void *dev, int command,int arg); | ||
69 | |||
70 | struct tuner_operations ops; | ||
71 | }; | ||
72 | |||
73 | /* ------------------------------------------------------------------------ */ | ||
74 | |||
75 | extern int tda9887_tuner_init(struct tuner *t); | ||
76 | |||
77 | /* ------------------------------------------------------------------------ */ | ||
78 | |||
79 | #define tuner_warn(fmt, arg...) do {\ | ||
80 | printk(KERN_WARNING "%s %d-%04x: " fmt, t->i2c.driver->driver.name, \ | ||
81 | i2c_adapter_id(t->i2c.adapter), t->i2c.addr , ##arg); } while (0) | ||
82 | #define tuner_info(fmt, arg...) do {\ | ||
83 | printk(KERN_INFO "%s %d-%04x: " fmt, t->i2c.driver->driver.name, \ | ||
84 | i2c_adapter_id(t->i2c.adapter), t->i2c.addr , ##arg); } while (0) | ||
85 | #define tuner_dbg(fmt, arg...) do {\ | ||
86 | extern int tuner_debug; \ | ||
87 | if (tuner_debug) \ | ||
88 | printk(KERN_DEBUG "%s %d-%04x: " fmt, t->i2c.driver->driver.name, \ | ||
89 | i2c_adapter_id(t->i2c.adapter), t->i2c.addr , ##arg); } while (0) | ||
90 | |||
91 | #endif /* __TUNER_DRIVER_H__ */ | ||
92 | |||
93 | /* | ||
94 | * Overrides for Emacs so that we follow Linus's tabbing style. | ||
95 | * --------------------------------------------------------------------------- | ||
96 | * Local variables: | ||
97 | * c-basic-offset: 8 | ||
98 | * End: | ||
99 | */ | ||