Intel 307017-001 TV Cables User Manual


 
Programmer’s Reference Manual 121
Intel® High Definition Audio BIOS Considerations
test word ptr es:[ebx+HDAudio_MMIO_ICS],
HDAudio_MMIO_ICS_ICB
jz ICBBit2 ; Poll ICB bit until it returns 0 (need to
change”HDAudio” in this command to HDAudio?
loop PollICBBit2
; Add error handling code here
ICBBit2:
pop cx
; b. Write the current verb (dword) in the table to the IC register at
AZBAR+60h.
mov eax, dword ptr cs:[si]
mov dword ptr es:[ebx+HDAudio_MMIO_IC], eax ; Write verb
; c. Write the bits of the ICS register at AZBAR+68h[1:0] to 11b to send
the
; verb to the codec.
or word ptr es:[ebx+HDAudio_MMIO_ICS], BIT1+BIT0
; d. Repeat steps 3a-3d until all verbs in the table have been sent for the
; current codec.
loop PollICBBit2 ; Continue until all verbs written
VerbTableDone:
pop ecx
NextSDI:
or dx, dx
jnz InitCurrentCodec
HDAudioCodecComplete:
ret
InitializeHDAudioCodecs ENDP
;----------------------------------------------------------------------------
;
; Procedure:CheckforValidCodec