From 0501dfc1b67a6dd2cb2a73ff5a1896ea60c43261 Mon Sep 17 00:00:00 2001 From: "Sergey Semyonov (Serge)" Date: Fri, 5 Jul 2013 17:42:29 +0000 Subject: [PATCH] sound: final attempt git-svn-id: svn://kolibrios.org@3767 a494cfbc-eb01-0410-851d-a64ba20cac60 --- kernel/trunk/drivers/sound.asm | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/kernel/trunk/drivers/sound.asm b/kernel/trunk/drivers/sound.asm index 87d5da9ccc..a1f3b49902 100644 --- a/kernel/trunk/drivers/sound.asm +++ b/kernel/trunk/drivers/sound.asm @@ -10,8 +10,9 @@ format MS COFF DEBUG = 1 include 'proc32.inc' -include '../struct.inc' include 'imports.inc' +include '../struct.inc' + VID_INTEL = 0x8086 VID_NVIDIA = 0x10DE @@ -168,9 +169,6 @@ section '.flat' code readable align 16 proc START stdcall, state:dword mov eax, [srv_entry] - test eax, eax - jnz .done - cmp [state], 1 jne .stop @@ -179,9 +177,14 @@ proc START stdcall, state:dword call SysMsgBoardStr end if + test eax, eax + jnz .done call detect_controller ret .stop: + test eax, eax + jz .done + leave jmp eax .done: xor eax, eax @@ -416,4 +419,5 @@ msgFail db 'No compatible soundcard found!',13,10,0 msgLoading db 'Loading ',0 msgNewline db 13,10,0 + section '.data' data readable writable align 16