/kernel/branches/flat_kernel/drivers/ensoniq.asm |
251,9 → 251,9 |
|
EVENT_NOTIFY equ 0x00000200 |
|
OS_BASE equ 0; |
OS_BASE equ 0x80000000 |
SLOT_BASE equ OS_BASE+0x0080000 |
new_app_base equ 0x80000000 |
new_app_base equ 0 |
|
public START |
public service_proc |
385,7 → 385,6 |
cmp eax, DEV_GET_MASTERVOL |
jne @F |
mov ebx, [edi+output] |
add ebx, new_app_base |
stdcall get_master_vol, ebx |
ret |
;@@: |
/kernel/branches/flat_kernel/drivers/infinity.asm |
376,17 → 376,17 |
|
; ring and waveout |
|
mov eax, 0x10000 |
mov ebx, 0x10000 |
test [format], PCM_RING |
jz .waveout |
|
mov eax, [eax+STREAM.r_size] |
add eax, 4095 |
and eax, -4096 |
add eax, eax |
mov ebx, [eax+STREAM.r_size] |
add ebx, 4095 |
and ebx, -4096 |
add ebx, ebx |
.waveout: |
mov [ring_size], eax |
mov ebx, eax |
mov [ring_size], ebx |
mov eax, ebx |
shr ebx, 12 |
mov [ring_pages], ebx |
|