Subversion Repositories Kolibri OS

Compare Revisions

Regard whitespace Rev 5076 → Rev 5077

/drivers/audio/sound.asm
11,10 → 11,10
DEBUG = 1
 
section '.flat' code readable writable executable
 
include '../proc32.inc'
include '../struct.inc'
include '../macros.inc'
include '../peimport.inc'
 
VID_INTEL = 0x8086
VID_NVIDIA = 0x10DE
160,10 → 160,11
ends
 
 
proc START c, state:dword, cmdline:dword
proc START c uses ebx esi edi, state:dword, cmdline:dword
 
mov eax, [srv_entry]
cmp [state], 1
jne .fail
jne .stop
 
if DEBUG
mov esi, msgInit
170,10 → 171,16
invoke SysMsgBoardStr
end if
 
test eax, eax
jnz .done
call detect_controller
ret
 
.fail:
.stop:
test eax, eax
jz .done
leave
jmp eax
.done:
xor eax, eax
ret
endp
229,10 → 236,6
mov [bus], eax
cmp eax, [last_bus]
jna .next_bus
if DEBUG
mov esi, msgNotFound
invoke SysMsgBoardStr
end if
xor eax, eax
ret
.found:
402,8 → 405,7
intelhda db 'INTEL_HDA', 0
 
msgInit db 'Detecting hardware...',13,10,0
msgNotFound db 'No compatible soundcard found!',13,10,0
msgFail db 'Failed',13,10,0
msgFail db 'No compatible soundcard found!',13,10,0
msgLoading db 'Loading ',0
msgNewline db 13,10,0
 
410,5 → 412,3
align 4
data fixups
end data
 
include '../peimport.inc'