diff options
author | Angel Pons <th3fanbus@gmail.com> | 2020-02-14 13:36:13 +0100 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2020-03-18 16:45:38 +0000 |
commit | 223a30ce11b94fa12b610e23cdb88064f652920a (patch) | |
tree | 822d4a061b825097a7ff27ce0e2e80809f53f536 /util/autoport | |
parent | 1c6d8a9cf4f0b18cb816c7b95a2656e162ed39d7 (diff) |
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>
Diffstat (limited to 'util/autoport')
-rw-r--r-- | util/autoport/azalia.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/util/autoport/azalia.go b/util/autoport/azalia.go index d94441b6aa..c98b03cdea 100644 --- a/util/autoport/azalia.go +++ b/util/autoport/azalia.go @@ -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"); |