devtools: add script to convert verb table to coreboot format

Add a script to support devs to check and convert verb tables provided
for HDA codecs to coreboot supported format. This script only supports
Realtek provided verb tables for now.

BUG=b:320373899
TEST=convert_verb_table.py -i <input.txt> -o <hda_verb.h> -d <device_id>
TEST=sample input.txt can be found in b:336967284 comment#3

Change-Id: Id9820a592486a283d4c9bc3d9a311f819686f8e8
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/adhd/+/5743143
Tested-by: chromeos-cop-builder@chromeos-cop.iam.gserviceaccount.com <chromeos-cop-builder@chromeos-cop.iam.gserviceaccount.com>
Auto-Submit: Terry Cheong <htcheong@chromium.org>
Reviewed-by: Yu-Hsuan Hsu <yuhsuan@chromium.org>
Commit-Queue: Yu-Hsuan Hsu <yuhsuan@chromium.org>
Tested-by: Terry Cheong <htcheong@chromium.org>
1 file changed