Skip to content

Commit

Permalink
verify-kernel-log.sh: Support card identification by name
Browse files Browse the repository at this point in the history
Enhance card selection by specifiying card name explictly

Signed-off-by: Hariprasad, Rajendra <[email protected]>
  • Loading branch information
harajend committed Jan 15, 2025
1 parent 057fbe8 commit 9969f61
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 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,10 @@ 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
cardname=$(aplay -l | awk 'NR == 2 {print $3}')
amixer -c "$cardname" cget name='Dmic0 Capture Switch'
)
}

Expand Down

0 comments on commit 9969f61

Please sign in to comment.