diff options
author | Angel Pons <th3fanbus@gmail.com> | 2020-01-08 15:05:56 +0100 |
---|---|---|
committer | Nico Huber <nico.h@gmx.de> | 2020-01-08 14:25:23 +0000 |
commit | 6779d2352cd33f98ad03e800c0de472fd3d3dfcc (patch) | |
tree | 7e790f02058cb158af44be8827b8b63470f2010d /util/autoport/azalia.go | |
parent | 38a4f2a9740c0a61b1c89525950bc8bd4febb22c (diff) |
util/autoport: correct build errors of produced files
Change-Id: I8d1a6af6f1d70268f17692bee130c08502082c97
Signed-off-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/37730
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Nico Huber <nico.h@gmx.de>
Diffstat (limited to 'util/autoport/azalia.go')
-rw-r--r-- | util/autoport/azalia.go | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/util/autoport/azalia.go b/util/autoport/azalia.go index c525189972..d94441b6aa 100644 --- a/util/autoport/azalia.go +++ b/util/autoport/azalia.go @@ -20,13 +20,12 @@ const u32 cim_verb_data[] = { `) for _, codec := range ctx.InfoSource.GetAzaliaCodecs() { - fmt.Fprintf(az, "\t0x%08x, /* Codec Vendor / Device ID: %s */\n", + fmt.Fprintf(az, "\t0x%08x,\t/* Codec Vendor / Device ID: %s */\n", codec.VendorID, codec.Name) - fmt.Fprintf(az, "\t0x%08x, /* Subsystem ID */\n", + fmt.Fprintf(az, "\t0x%08x,\t/* Subsystem ID */\n", codec.SubsystemID) - fmt.Fprintf(az, "\n\t0x%08x, /* Number of 4 dword sets */\n", + fmt.Fprintf(az, "\t%d,\t\t/* Number of 4 dword sets */\n", len(codec.PinConfig)+1) - fmt.Fprintf(az, "\t/* NID 0x01: Subsystem ID. */\n") fmt.Fprintf(az, "\tAZALIA_SUBVENDOR(0x%x, 0x%08x),\n", codec.CodecNo, codec.SubsystemID) @@ -38,10 +37,10 @@ const u32 cim_verb_data[] = { sort.Ints(keys) for _, nid := range keys { - fmt.Fprintf(az, "\n\t/* NID 0x%02x. */\n", nid) fmt.Fprintf(az, "\tAZALIA_PIN_CFG(0x%x, 0x%02x, 0x%08x),\n", codec.CodecNo, nid, codec.PinConfig[nid]) } + az.WriteString("\n"); } az.WriteString( @@ -52,7 +51,7 @@ const u32 pc_beep_verbs[0] = {}; AZALIA_ARRAY_SIZES; `) - PutPCIDev(addr, "Audio controller") + PutPCIDev(addr, "") } func init() { |