vidc.h 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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. /* vidc.c */
  13. extern int vidc_busy;
  14. /* vidc_fill.S */
  15. /*
  16. * Filler routines for different channels and sample sizes
  17. */
  18. extern unsigned long vidc_fill_1x8_u(unsigned long ibuf, unsigned long iend,
  19. unsigned long obuf, int mask);
  20. extern unsigned long vidc_fill_2x8_u(unsigned long ibuf, unsigned long iend,
  21. unsigned long obuf, int mask);
  22. extern unsigned long vidc_fill_1x8_s(unsigned long ibuf, unsigned long iend,
  23. unsigned long obuf, int mask);
  24. extern unsigned long vidc_fill_2x8_s(unsigned long ibuf, unsigned long iend,
  25. unsigned long obuf, int mask);
  26. extern unsigned long vidc_fill_1x16_s(unsigned long ibuf, unsigned long iend,
  27. unsigned long obuf, int mask);
  28. extern unsigned long vidc_fill_2x16_s(unsigned long ibuf, unsigned long iend,
  29. unsigned long obuf, int mask);
  30. /*
  31. * DMA Interrupt handler
  32. */
  33. extern irqreturn_t vidc_sound_dma_irq(int irqnr, void *ref, struct pt_regs *regs);
  34. /*
  35. * Filler routine pointer
  36. */
  37. extern unsigned long (*vidc_filler) (unsigned long ibuf, unsigned long iend,
  38. unsigned long obuf, int mask);
  39. /*
  40. * Virtual DMA buffer exhausted
  41. */
  42. extern irqreturn_t (*dma_interrupt) (void);
  43. /*
  44. * Virtual DMA buffer addresses
  45. */
  46. extern unsigned long dma_start, dma_count, dma_bufsize;
  47. extern unsigned long dma_buf[2], dma_pbuf[2];
  48. /* vidc_synth.c */
  49. extern void vidc_synth_init(struct address_info *hw_config);
  50. extern void vidc_synth_exit(struct address_info *hw_config);
  51. extern int vidc_synth_get_volume(void);
  52. extern int vidc_synth_set_volume(int vol);