vidc.h 1.8 KB

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