Subversion Repositories Kolibri OS

Rev

Rev 5057 | Only display areas with differences | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

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