Intel 307017-001 TV Cables User Manual


 
Programmer’s Reference Manual 123
Intel® High Definition Audio BIOS Considerations
jmp CodecCheckDone
FoundValidCodec:
mov edx, dword ptr cs:[si+VerbHeaderSize] ; Get first verb
shr edx, 28
cmp edx, ecx ; Is the codec address correct?
jne CodecNotValid
add si, 6
call GetVerbTableSize ; Codec has valid DID/VID and addr
CodecCheckDone:
pop si
pop edx
pop bx
ret
CheckforValidCodec ENDP
;----------------------------------------------------------------------------
;
; Procedure:GetVerbTableSize
;
; Description:Checks the front panel sensing GPIO to determine if front
; panel jacks are present. The routine returns the size of
; the verb table (size may depend on whether front panel is
; supported or if the codec supports front panel).
;
; Input:SI - Adddress of the front panel supported status byte
; DS - BDA_DSEG.
; ES - 0000h with 4GB limit.
; FS - POST_DSEG.
; GS - RUN_CSEG.
; STACK- Available.
;
; Output:CX - Size of codec verb table in dwords
; SI - Adddress of the codec verb table
;
; Modified:EBX, CX, SI