Skip to content

Commit a4dc166

Browse files
committed
verify-kernel-log.sh: Support card identification by name
Select the first card by name because it is not always numbered 0 Signed-off-by: Hariprasad, Rajendra <hariprasad.rajendra@intel.com>
1 parent 057fbe8 commit a4dc166

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test-case/verify-kernel-boot-log.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,10 @@ dmic_switch_present()
114114

115115
(set -x
116116
# name= is hardcoded in /usr/share/alsa/ucm2/*
117+
# - https://github.com/thesofproject/sof-test/issues/1244
118+
first_card_name=$(aplay -l | awk 'NR == 2 {print $3}')
117119
# This returns a non-zero error status on failure
118-
amixer cget name='Dmic0 Capture Switch'
120+
amixer -c "$first_card_name" cget name='Dmic0 Capture Switch'
119121
)
120122
}
121123

0 commit comments

Comments
 (0)