diff options
-rw-r--r-- | util/hda-decoder/main.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/util/hda-decoder/main.go b/util/hda-decoder/main.go index 83ddcbb43a..d686f19967 100644 --- a/util/hda-decoder/main.go +++ b/util/hda-decoder/main.go @@ -69,6 +69,11 @@ func decodeFile(path string, codec uint32) { for scanner.Scan() { fields := strings.Fields(scanner.Text()) + if len(fields) != 2 { + fmt.Print("// Something went wrong\n") + continue + } + pin := stringToUint32(fields[0]) config := stringToUint32(fields[1]) |