Skip to content

Commit

Permalink
Test-case: Enhance amixer card selection: Support card identification…
Browse files Browse the repository at this point in the history
… by name
  • Loading branch information
harajend committed Jan 13, 2025
1 parent 057fbe8 commit 2722df4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test-case/verify-kernel-boot-log.sh
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,11 @@ dmic_switch_present()
(set -x
# name= is hardcoded in /usr/share/alsa/ucm2/*
# This returns a non-zero error status on failure
amixer cget name='Dmic0 Capture Switch'
#amixer cget name='Dmic0 Capture Switch'
# - https://github.com/thesofproject/sof-test/issues/1244
# - Internal issue #614
switch=$(aplay -l | awk 'NR == 2 {print $3}')
amixer -c "$switch" cget name='Dmic0 Capture Switch'
)
}

Expand Down

0 comments on commit 2722df4

Please sign in to comment.