]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blob - sound/oss/vidc.h
Linux-2.6.12-rc2
[mirror_ubuntu-artful-kernel.git] / sound / oss / vidc.h
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
15 extern int vidc_busy;
16
17 /* vidc_fill.S */
18
19 /*
20 * Filler routines for different channels and sample sizes
21 */
22
23 extern unsigned long vidc_fill_1x8_u(unsigned long ibuf, unsigned long iend,
24 unsigned long obuf, int mask);
25 extern unsigned long vidc_fill_2x8_u(unsigned long ibuf, unsigned long iend,
26 unsigned long obuf, int mask);
27 extern unsigned long vidc_fill_1x8_s(unsigned long ibuf, unsigned long iend,
28 unsigned long obuf, int mask);
29 extern unsigned long vidc_fill_2x8_s(unsigned long ibuf, unsigned long iend,
30 unsigned long obuf, int mask);
31 extern unsigned long vidc_fill_1x16_s(unsigned long ibuf, unsigned long iend,
32 unsigned long obuf, int mask);
33 extern 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
40 extern irqreturn_t vidc_sound_dma_irq(int irqnr, void *ref, struct pt_regs *regs);
41
42 /*
43 * Filler routine pointer
44 */
45
46 extern 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
53 extern irqreturn_t (*dma_interrupt) (void);
54
55 /*
56 * Virtual DMA buffer addresses
57 */
58
59 extern unsigned long dma_start, dma_count, dma_bufsize;
60 extern unsigned long dma_buf[2], dma_pbuf[2];
61
62 /* vidc_synth.c */
63
64 extern void vidc_synth_init(struct address_info *hw_config);
65 extern void vidc_synth_exit(struct address_info *hw_config);
66 extern int vidc_synth_get_volume(void);
67 extern int vidc_synth_set_volume(int vol);