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:
Angel Pons 2020-02-14 13:36:13 +01:00 committed by Patrick Georgi
parent 1c6d8a9cf4
commit 223a30ce11
1 changed files with 2 additions and 2 deletions

View File

@ -26,7 +26,7 @@ const u32 cim_verb_data[] = {
codec.SubsystemID) codec.SubsystemID)
fmt.Fprintf(az, "\t%d,\t\t/* Number of 4 dword sets */\n", fmt.Fprintf(az, "\t%d,\t\t/* Number of 4 dword sets */\n",
len(codec.PinConfig)+1) 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) codec.CodecNo, codec.SubsystemID)
keys := []int{} keys := []int{}
@ -37,7 +37,7 @@ const u32 cim_verb_data[] = {
sort.Ints(keys) sort.Ints(keys)
for _, nid := range 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]) codec.CodecNo, nid, codec.PinConfig[nid])
} }
az.WriteString("\n"); az.WriteString("\n");