From 10d7b4129147edb7dd51dd9aadfc49735c4bbe19 Mon Sep 17 00:00:00 2001 From: harajend Date: Thu, 3 Dec 2026 17:20:38 +0530 Subject: [PATCH] test: use SOF card for DMIC switch check --- test-case/verify-kernel-boot-log.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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' ) }