We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 212a420 commit 5edaaccCopy full SHA for 5edaacc
1 file changed
test-case/verify-kernel-boot-log.sh
@@ -115,7 +115,8 @@ dmic_switch_present()
115
(set -x
116
# name= is hardcoded in /usr/share/alsa/ucm2/*
117
# This returns a non-zero error status on failure
118
- amixer cget name='Dmic0 Capture Switch'
+ switch=$(aplay -l | head -2 | tail -1 | awk '{print $3}')
119
+ amixer -c "$switch" cget name='Dmic0 Capture Switch'
120
)
121
}
122
0 commit comments