Skip to content

Commit ca7e8f2

Browse files
committed
lib: Add alsa-info debug
Print alsa-info to the logs. Signed-off-by: Lukasz Mrugala <lukaszx.mrugala@intel.com>
1 parent 845a813 commit ca7e8f2

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

case-lib/lib.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1030,10 +1030,20 @@ re_enable_ntp_sync()
10301030
sudo timedatectl set-ntp true
10311031
}
10321032

1033+
# Get alsa-info of DUTs in CI
1034+
print_alsa_info()
1035+
{
1036+
OUTPUT_FILE="/tmp/alsa-info.txt"
1037+
alsa-info --output "$OUTPUT_FILE" --with-aplay --with-amixer --with-alsactl --with-configs
1038+
ALSA_INFO_TEXT=$(cat "$OUTPUT_FILE")
1039+
dlogi "$ALSA_INFOTEXT"
1040+
}
1041+
10331042
# check-alsabat.sh need to run optimum alsa control settings
10341043
# param1: platform name
10351044
set_alsa_settings()
10361045
{
1046+
print_alsa_info
10371047
# ZEPHYR platform shares same tplg, remove '_ZEPHYR' from platform name
10381048
local PNAME="${1%_ZEPHYR}"
10391049
dlogi "Run alsa setting for $PNAME"

0 commit comments

Comments
 (0)