Subversion Repositories Kolibri OS

Rev

Rev 214 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 214 Rev 224
Line 293... Line 293...
293
proc START stdcall, state:dword
293
proc START stdcall, state:dword
Line 294... Line 294...
294
 
294
 
295
           mov eax, [state]
295
           mov eax, [state]
296
           cmp eax, 1
-
 
297
           je .entry
296
           cmp eax, 1
298
           jmp .stop
297
           jne .stop
Line 299... Line 298...
299
.entry:
298
.entry:
300
 
299
 
301
     if DEBUG
300
     if DEBUG
Line 375... Line 374...
375
	   xor eax, eax
374
	   xor eax, eax
376
           ret
375
           ret
377
.stop:
376
.stop:
378
           call stop
377
           call stop
379
           mov [ctrl.user_callback], 0
378
           ret
380
           ret
-
 
381
endp
379
endp
382
 
380
 
Line 383... Line 381...
383
handle     equ  IOCTL.handle
381
handle     equ  IOCTL.handle
384
io_code    equ  IOCTL.io_code
382
io_code    equ  IOCTL.io_code
Line 1019... Line 1017...
1019
	   mov [ctrl.lvi_reg], eax
1017
	   mov [ctrl.lvi_reg], eax
1020
	   mov edx, PCM_OUT_LVI_REG
1018
	   mov edx, PCM_OUT_LVI_REG
1021
	   call [ctrl.ctrl_write8]
1019
	   call [ctrl.ctrl_write8]
1022
 
1020
 
Line -... Line 1021...
-
 
1021
           mov ax, 0x1c
-
 
1022
	   mov edx, PCM_OUT_SR_REG
-
 
1023
	   call [ctrl.ctrl_write16]
1023
	   ret
1024
	   ret
1024
endp
1025
endp
Line 1025... Line 1026...
1025
 
1026
 
1026
align 4
1027
align 4