diff options
author | Nickolay V. Shmyrev <nshmyrev@yandex.ru> | 2007-10-26 16:21:30 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-01-25 16:00:59 -0500 |
commit | 40c6e683a238c561db00c4fdfead43cb3b19d75f (patch) | |
tree | fbdd4c62e304758ce72eece8e25dcc583444acb8 /drivers/media/video/bt8xx/bttv-audio-hook.c | |
parent | de5bec6bb57e88db7efa49c6f7de0794ae67d06a (diff) |
V4L/DVB (6415): Restructurize volume hook and drop unused mute hook
Signed-off-by: Nickolay V. Shmyrev <nshmyrev@yandex.ru>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/video/bt8xx/bttv-audio-hook.c')
-rw-r--r-- | drivers/media/video/bt8xx/bttv-audio-hook.c | 29 |
1 files changed, 14 insertions, 15 deletions
diff --git a/drivers/media/video/bt8xx/bttv-audio-hook.c b/drivers/media/video/bt8xx/bttv-audio-hook.c index 1e7fcaa259eb..1f25cdbed7d6 100644 --- a/drivers/media/video/bt8xx/bttv-audio-hook.c +++ b/drivers/media/video/bt8xx/bttv-audio-hook.c | |||
@@ -5,13 +5,12 @@ | |||
5 | * This code is placed under the terms of the GNU General Public License | 5 | * This code is placed under the terms of the GNU General Public License |
6 | */ | 6 | */ |
7 | 7 | ||
8 | #include "bttv-audio-hook.h" | ||
9 | |||
8 | /* ----------------------------------------------------------------------- */ | 10 | /* ----------------------------------------------------------------------- */ |
9 | /* winview */ | 11 | /* winview */ |
10 | 12 | ||
11 | #include "bttvp.h" | 13 | void winview_audio(struct bttv *btv, struct video_audio *v, int set) |
12 | #include <linux/videodev.h> | ||
13 | |||
14 | static void winview_audio(struct bttv *btv, struct video_audio *v, int set) | ||
15 | { | 14 | { |
16 | /* PT2254A programming Jon Tombs, jon@gte.esi.us.es */ | 15 | /* PT2254A programming Jon Tombs, jon@gte.esi.us.es */ |
17 | int bits_out, loops, vol, data; | 16 | int bits_out, loops, vol, data; |
@@ -57,7 +56,7 @@ static void winview_audio(struct bttv *btv, struct video_audio *v, int set) | |||
57 | /* mono/stereo control for various cards (which don't use i2c chips but */ | 56 | /* mono/stereo control for various cards (which don't use i2c chips but */ |
58 | /* connect something to the GPIO pins */ | 57 | /* connect something to the GPIO pins */ |
59 | 58 | ||
60 | static void | 59 | void |
61 | gvbctv3pci_audio(struct bttv *btv, struct video_audio *v, int set) | 60 | gvbctv3pci_audio(struct bttv *btv, struct video_audio *v, int set) |
62 | { | 61 | { |
63 | unsigned int con = 0; | 62 | unsigned int con = 0; |
@@ -79,7 +78,7 @@ gvbctv3pci_audio(struct bttv *btv, struct video_audio *v, int set) | |||
79 | } | 78 | } |
80 | } | 79 | } |
81 | 80 | ||
82 | static void | 81 | void |
83 | gvbctv5pci_audio(struct bttv *btv, struct video_audio *v, int set) | 82 | gvbctv5pci_audio(struct bttv *btv, struct video_audio *v, int set) |
84 | { | 83 | { |
85 | unsigned int val, con; | 84 | unsigned int val, con; |
@@ -142,7 +141,7 @@ gvbctv5pci_audio(struct bttv *btv, struct video_audio *v, int set) | |||
142 | * handles this with a tda9840 | 141 | * handles this with a tda9840 |
143 | * | 142 | * |
144 | */ | 143 | */ |
145 | static void | 144 | void |
146 | avermedia_tvphone_audio(struct bttv *btv, struct video_audio *v, int set) | 145 | avermedia_tvphone_audio(struct bttv *btv, struct video_audio *v, int set) |
147 | { | 146 | { |
148 | int val = 0; | 147 | int val = 0; |
@@ -164,7 +163,7 @@ avermedia_tvphone_audio(struct bttv *btv, struct video_audio *v, int set) | |||
164 | } | 163 | } |
165 | } | 164 | } |
166 | 165 | ||
167 | static void | 166 | void |
168 | avermedia_tv_stereo_audio(struct bttv *btv, struct video_audio *v, int set) | 167 | avermedia_tv_stereo_audio(struct bttv *btv, struct video_audio *v, int set) |
169 | { | 168 | { |
170 | int val = 0; | 169 | int val = 0; |
@@ -185,7 +184,7 @@ avermedia_tv_stereo_audio(struct bttv *btv, struct video_audio *v, int set) | |||
185 | } | 184 | } |
186 | 185 | ||
187 | /* Lifetec 9415 handling */ | 186 | /* Lifetec 9415 handling */ |
188 | static void | 187 | void |
189 | lt9415_audio(struct bttv *btv, struct video_audio *v, int set) | 188 | lt9415_audio(struct bttv *btv, struct video_audio *v, int set) |
190 | { | 189 | { |
191 | int val = 0; | 190 | int val = 0; |
@@ -215,7 +214,7 @@ lt9415_audio(struct bttv *btv, struct video_audio *v, int set) | |||
215 | } | 214 | } |
216 | 215 | ||
217 | /* TDA9821 on TerraTV+ Bt848, Bt878 */ | 216 | /* TDA9821 on TerraTV+ Bt848, Bt878 */ |
218 | static void | 217 | void |
219 | terratv_audio(struct bttv *btv, struct video_audio *v, int set) | 218 | terratv_audio(struct bttv *btv, struct video_audio *v, int set) |
220 | { | 219 | { |
221 | unsigned int con = 0; | 220 | unsigned int con = 0; |
@@ -235,7 +234,7 @@ terratv_audio(struct bttv *btv, struct video_audio *v, int set) | |||
235 | } | 234 | } |
236 | } | 235 | } |
237 | 236 | ||
238 | static void | 237 | void |
239 | winfast2000_audio(struct bttv *btv, struct video_audio *v, int set) | 238 | winfast2000_audio(struct bttv *btv, struct video_audio *v, int set) |
240 | { | 239 | { |
241 | unsigned long val = 0; | 240 | unsigned long val = 0; |
@@ -269,7 +268,7 @@ winfast2000_audio(struct bttv *btv, struct video_audio *v, int set) | |||
269 | * Note: There are card variants without tda9874a. Forcing the "stereo sound route" | 268 | * Note: There are card variants without tda9874a. Forcing the "stereo sound route" |
270 | * will mute this cards. | 269 | * will mute this cards. |
271 | */ | 270 | */ |
272 | static void | 271 | void |
273 | pvbt878p9b_audio(struct bttv *btv, struct video_audio *v, int set) | 272 | pvbt878p9b_audio(struct bttv *btv, struct video_audio *v, int set) |
274 | { | 273 | { |
275 | unsigned int val = 0; | 274 | unsigned int val = 0; |
@@ -301,7 +300,7 @@ pvbt878p9b_audio(struct bttv *btv, struct video_audio *v, int set) | |||
301 | * sound control for FlyVideo 2000S (with tda9874 decoder) | 300 | * sound control for FlyVideo 2000S (with tda9874 decoder) |
302 | * based on pvbt878p9b_audio() - this is not tested, please fix!!! | 301 | * based on pvbt878p9b_audio() - this is not tested, please fix!!! |
303 | */ | 302 | */ |
304 | static void | 303 | void |
305 | fv2000s_audio(struct bttv *btv, struct video_audio *v, int set) | 304 | fv2000s_audio(struct bttv *btv, struct video_audio *v, int set) |
306 | { | 305 | { |
307 | unsigned int val = 0xffff; | 306 | unsigned int val = 0xffff; |
@@ -332,7 +331,7 @@ fv2000s_audio(struct bttv *btv, struct video_audio *v, int set) | |||
332 | * sound control for Canopus WinDVR PCI | 331 | * sound control for Canopus WinDVR PCI |
333 | * Masaki Suzuki <masaki@btree.org> | 332 | * Masaki Suzuki <masaki@btree.org> |
334 | */ | 333 | */ |
335 | static void | 334 | void |
336 | windvr_audio(struct bttv *btv, struct video_audio *v, int set) | 335 | windvr_audio(struct bttv *btv, struct video_audio *v, int set) |
337 | { | 336 | { |
338 | unsigned long val = 0; | 337 | unsigned long val = 0; |
@@ -361,7 +360,7 @@ windvr_audio(struct bttv *btv, struct video_audio *v, int set) | |||
361 | * sound control for AD-TVK503 | 360 | * sound control for AD-TVK503 |
362 | * Hiroshi Takekawa <sian@big.or.jp> | 361 | * Hiroshi Takekawa <sian@big.or.jp> |
363 | */ | 362 | */ |
364 | static void | 363 | void |
365 | adtvk503_audio(struct bttv *btv, struct video_audio *v, int set) | 364 | adtvk503_audio(struct bttv *btv, struct video_audio *v, int set) |
366 | { | 365 | { |
367 | unsigned int con = 0xffffff; | 366 | unsigned int con = 0xffffff; |