aboutsummaryrefslogtreecommitdiffstats
path: root/sound/oss/vidc.h
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-16 18:20:36 -0400
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-16 18:20:36 -0400
commit1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 (patch)
tree0bba044c4ce775e45a88a51686b5d9f90697ea9d /sound/oss/vidc.h
Linux-2.6.12-rc2
Initial git repository build. I'm not bothering with the full history, even though we have it. We can create a separate "historical" git archive of that later if we want to, and in the meantime it's about 3.2GB when imported into git - space that would just make the early git days unnecessarily complicated, when we don't have a lot of good infrastructure for it. Let it rip!
Diffstat (limited to 'sound/oss/vidc.h')
-rw-r--r--sound/oss/vidc.h67
1 files changed, 67 insertions, 0 deletions
diff --git a/sound/oss/vidc.h b/sound/oss/vidc.h
new file mode 100644
index 00000000000..bab7044572d
--- /dev/null
+++ b/sound/oss/vidc.h
@@ -0,0 +1,67 @@
1/*
2 * linux/drivers/sound/vidc.h
3 *
4 * Copyright (C) 1997 Russell King <rmk@arm.linux.org.uk>
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2 as
8 * published by the Free Software Foundation.
9 *
10 * VIDC sound function prototypes
11 */
12
13/* vidc.c */
14
15extern int vidc_busy;
16
17/* vidc_fill.S */
18
19/*
20 * Filler routines for different channels and sample sizes
21 */
22
23extern unsigned long vidc_fill_1x8_u(unsigned long ibuf, unsigned long iend,
24 unsigned long obuf, int mask);
25extern unsigned long vidc_fill_2x8_u(unsigned long ibuf, unsigned long iend,
26 unsigned long obuf, int mask);
27extern unsigned long vidc_fill_1x8_s(unsigned long ibuf, unsigned long iend,
28 unsigned long obuf, int mask);
29extern unsigned long vidc_fill_2x8_s(unsigned long ibuf, unsigned long iend,
30 unsigned long obuf, int mask);
31extern unsigned long vidc_fill_1x16_s(unsigned long ibuf, unsigned long iend,
32 unsigned long obuf, int mask);
33extern unsigned long vidc_fill_2x16_s(unsigned long ibuf, unsigned long iend,
34 unsigned long obuf, int mask);
35
36/*
37 * DMA Interrupt handler
38 */
39
40extern irqreturn_t vidc_sound_dma_irq(int irqnr, void *ref, struct pt_regs *regs);
41
42/*
43 * Filler routine pointer
44 */
45
46extern unsigned long (*vidc_filler) (unsigned long ibuf, unsigned long iend,
47 unsigned long obuf, int mask);
48
49/*
50 * Virtual DMA buffer exhausted
51 */
52
53extern irqreturn_t (*dma_interrupt) (void);
54
55/*
56 * Virtual DMA buffer addresses
57 */
58
59extern unsigned long dma_start, dma_count, dma_bufsize;
60extern unsigned long dma_buf[2], dma_pbuf[2];
61
62/* vidc_synth.c */
63
64extern void vidc_synth_init(struct address_info *hw_config);
65extern void vidc_synth_exit(struct address_info *hw_config);
66extern int vidc_synth_get_volume(void);
67extern int vidc_synth_set_volume(int vol);