From e4960f163ee6cbe5f3d89057fc1af45384e01341 Mon Sep 17 00:00:00 2001 From: Tim Crawford Date: Tue, 20 Feb 2024 19:00:04 -0700 Subject: [PATCH] scipts: Add the HDA reset verb to the generated file I always add HDA reset to the coreboot file when upstreaming, so just have the script do it. - Proprietary firmware does it - It fixed audio init on oryp5 Signed-off-by: Tim Crawford --- scripts/coreboot-hda.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/coreboot-hda.sh b/scripts/coreboot-hda.sh index 9e92aee..ee24f31 100755 --- a/scripts/coreboot-hda.sh +++ b/scripts/coreboot-hda.sh @@ -31,9 +31,10 @@ do echo -e "\t/* $vendor_name, $chip_name */" echo -e "\t$vendor_id, /* Vendor ID */" echo -e "\t$subsystem_id, /* Subsystem ID */" - echo -e "\t$(($(wc -l <<<"$widgets") + 1)), /* Number of entries */" + echo -e "\t$(($(wc -l <<<"$widgets") + 2)), /* Number of entries */" echo -e "\tAZALIA_SUBVENDOR($index, $subsystem_id)," + echo -e "\tAZALIA_RESET(1)," cat <<< "$widgets" | \ while read line