Subversion Repositories Kolibri OS

Compare Revisions

Regard whitespace Rev 226 → Rev 227

/kernel/trunk/drivers/unisound.asm
275,6 → 275,7
 
public START
public service_proc
public version
 
extrn AttachIntHandler
extrn SysMsgBoardStr
293,10 → 294,8
 
proc START stdcall, state:dword
 
mov eax, [state]
cmp eax, 1
cmp [state], 1
jne .stop
.entry:
 
if DEBUG
mov esi, msgInit
376,6 → 375,7
ret
.stop:
call stop
xor eax, eax
ret
endp
 
1011,14 → 1011,9
align 4
proc stop
mov edx, PCM_OUT_CR_REG
mov ax, 0x14
mov ax, 0x0
call [ctrl.ctrl_write8]
 
mov eax, 16
mov [ctrl.lvi_reg], eax
mov edx, PCM_OUT_LVI_REG
call [ctrl.ctrl_write8]
 
mov ax, 0x1c
mov edx, PCM_OUT_SR_REG
call [ctrl.ctrl_write16]
1336,6 → 1331,8
 
dd 0 ;terminator
 
version dd 0x00010001
 
msg_ICH db 'Intel ICH', 13,10, 0
msg_ICH0 db 'Intel ICH0', 13,10, 0
msg_ICH2 db 'Intel ICH2', 13,10, 0