diff --git a/test-case/verify-kernel-boot-log.sh b/test-case/verify-kernel-boot-log.sh index 2cfcd34f..323af064 100755 --- a/test-case/verify-kernel-boot-log.sh +++ b/test-case/verify-kernel-boot-log.sh @@ -115,9 +115,8 @@ dmic_switch_present() (set -x # name= is hardcoded in /usr/share/alsa/ucm2/* # - https://github.com/thesofproject/sof-test/issues/1244 - first_card_name=$(aplay -l | awk 'NR == 2 {print $3}') - # This returns a non-zero error status on failure - amixer -c "$first_card_name" cget name='Dmic0 Capture Switch' + # Use the SOF card selected by case-lib/lib.sh, not aplay's enumeration order. + amixer -c "$SOFCARD" cget name='Dmic0 Capture Switch' ) }