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
Select the first card by name because it is not always numbered 0

Signed-off-by: Hariprasad, Rajendra <[email protected]>
  • Loading branch information
harajend authored and kv2019i committed Jan 17, 2025
1 parent 306456e commit d4b799a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test-case/verify-kernel-boot-log.sh
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,10 @@ 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 cget name='Dmic0 Capture Switch'
amixer -c "$first_card_name" cget name='Dmic0 Capture Switch'
)
}

Expand Down

0 comments on commit d4b799a

Please sign in to comment.