Skip to content

Commit 90aecef

Browse files
authored
test-case/check-alsabat.sh: Select the first card for amixer contents
Amixer, by default, looks for the first card, and in Amixer's view, the first card is always numbered 0. In the SoundWire configuration, card 0 is configured with sof-probe, and card 1 is configured with the actual sound card. Hence, we are assigning it accordingly. Fixes: #1265 Signed-off-by: Hariprasad, Rajendra <hariprasad.rajendra@intel.com>
1 parent e430495 commit 90aecef

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

test-case/check-alsabat.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ alsabat -P$pcm_p --standalone -n $frames -c $channel_p -r $rate -f $format -F $f
124124
sleep 1
125125

126126
# Select the first card
127-
first_card_name=$(aplay -l | awk 'NR == 2 {print $3}')
127+
first_card_name=$(aplay -l | awk '/^card ([0-9]+)/ {print $3; exit}')
128128
# dump amixer contents always.
129129
# Good case amixer settings is for reference, bad case for debugging.
130130
amixer -c "${first_card_name}" contents > "$LOG_ROOT"/amixer_settings.txt

0 commit comments

Comments
 (0)