Intel 307017-001 TV Cables User Manual


 
124 Programmer’s Reference Manual
Intel® High Definition Audio BIOS Considerations
;----------------------------------------------------------------------------
GetverbTableSize PROC NEAR PUBLIC
push ebx
mov cl, byte ptr cs:[si] ; al = Front panel support bit
inc si
or cl, cl
mov cx, word ptr cs:[si] ; cx = length of rear panel table
jz FPSupportDone ; If front panel not supported
; by the codec, no need to add
; FP table size
; TODO: OEMs must add code here to query the GPIO dedicated to
front
; panel sensing.
jz FPSupportDone
; If control comes here, front panel jack is supported by the codec and
; is present in the system, so add the size of the FP table.
add cx, word ptr cs:[si+2] ; cx = rear panel table size +
; front panel table size
FPSupportDone:
add si, 4 ; si = start of codec verb table
shl cx, 2 ; cx = # of Pin complexes * 4
; = # of dwords in table
pop ebx
ret
GetVerbTableSize ENDP
CodecVerbTableList:
dw offset VerbTable0
dw offset VerbTable1
CodecVerbTableListEnd: