Skip to content

Commit 9969f61

Browse files
committed
verify-kernel-log.sh: Support card identification by name
Enhance card selection by specifiying card name explictly Signed-off-by: Hariprasad, Rajendra <hariprasad.rajendra@intel.com>
1 parent 057fbe8 commit 9969f61

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,10 @@ dmic_switch_present()
115115
(set -x
116116
# name= is hardcoded in /usr/share/alsa/ucm2/*
117117
# This returns a non-zero error status on failure
118-
amixer cget name='Dmic0 Capture Switch'
118+
#amixer cget name='Dmic0 Capture Switch'
119+
# - https://github.com/thesofproject/sof-test/issues/1244
120+
cardname=$(aplay -l | awk 'NR == 2 {print $3}')
121+
amixer -c "$cardname" cget name='Dmic0 Capture Switch'
119122
)
120123
}
121124

0 commit comments

Comments
 (0)