Subversion Repositories Kolibri OS

Rev

Rev 2455 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed

  1. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  2. ;;                                                              ;;
  3. ;; Copyright (C) KolibriOS team 2004-2011. All rights reserved. ;;
  4. ;; Distributed under terms of the GNU General Public License    ;;
  5. ;;                                                              ;;
  6. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  7.  
  8. ;flags------------------------------------------------------------
  9. DEBUG        equ 1 ;show messages at debug board
  10. use_cli_sti  equ 1 ;driver become more stable (theoretically)
  11.  
  12. ;constants--------------------------------------------------------
  13. API_VERSION     equ 0  ;debug
  14.  
  15. sb_irq_num      equ 5 ;default values for SB16, may be overrided by autodetect
  16. sb_dma_num      equ 5 ;default values for SB16, may be overrided by autodetect
  17.  
  18. small_buffer    equ 32768
  19. full_buffer     equ 65536
  20. sb_buffer_size  equ small_buffer  ; FIX ring buffer overlapped events issue;  full_buffer
  21.  
  22. __supported_buffer_sizes fix <small_buffer, full_buffer>
  23.  
  24. if ~(sb_buffer_size in __supported_buffer_sizes)
  25. display 13,10,'unsupported buffer size was selected, check config.inc',13,10
  26. stop
  27. end if
  28.  
  29. sb_out_rate     equ 48000
  30. ;time constant for cards older than SB16
  31. sb_tc           equ (256-(1000000/(sb_out_rate*2)))
  32.  
  33. SRV_GETVERSION        equ  0
  34. DEV_PLAY              equ  1
  35. DEV_STOP              equ  2
  36. DEV_CALLBACK          equ  3
  37. DEV_SET_BUFF          equ  4
  38. DEV_NOTIFY            equ  5
  39. DEV_SET_MASTERVOL     equ  6
  40. DEV_GET_MASTERVOL     equ  7
  41. DEV_GET_INFO          equ  8
  42.  
  43. DRV_ENTRY             equ  1
  44. DRV_EXIT              equ -1
  45.  
  46.