util/autoport: Correct formatting issues
There is no need to use hexadecimal values in azalia codec IDs, nor need to print a redundant "LPC bridge PCI-LPC bridge" comment. Change-Id: I6658051c7a3d5b65a86ccca8bab7834bf4628a16 Signed-off-by: Angel Pons <th3fanbus@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/38901 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: HAOUAS Elyes <ehaouas@noos.fr>
This commit is contained in:
parent
1c6d8a9cf4
commit
223a30ce11
|
@ -26,7 +26,7 @@ const u32 cim_verb_data[] = {
|
|||
codec.SubsystemID)
|
||||
fmt.Fprintf(az, "\t%d,\t\t/* Number of 4 dword sets */\n",
|
||||
len(codec.PinConfig)+1)
|
||||
fmt.Fprintf(az, "\tAZALIA_SUBVENDOR(0x%x, 0x%08x),\n",
|
||||
fmt.Fprintf(az, "\tAZALIA_SUBVENDOR(%d, 0x%08x),\n",
|
||||
codec.CodecNo, codec.SubsystemID)
|
||||
|
||||
keys := []int{}
|
||||
|
@ -37,7 +37,7 @@ const u32 cim_verb_data[] = {
|
|||
sort.Ints(keys)
|
||||
|
||||
for _, nid := range keys {
|
||||
fmt.Fprintf(az, "\tAZALIA_PIN_CFG(0x%x, 0x%02x, 0x%08x),\n",
|
||||
fmt.Fprintf(az, "\tAZALIA_PIN_CFG(%d, 0x%02x, 0x%08x),\n",
|
||||
codec.CodecNo, nid, codec.PinConfig[nid])
|
||||
}
|
||||
az.WriteString("\n");
|
||||
|
|
Loading…
Reference in New Issue