Skip to content

Commit 78638db

Browse files
committed
fix(audiodriver): remove alsa setup use pipewire volume only
Remove legacy sound card detection and ALSA mixer configuration from all audio driver stage scripts. Standardize volume setup to only use PipeWire default sink setting across all driver variants.
1 parent d66c4f0 commit 78638db

3 files changed

Lines changed: 0 additions & 35 deletions

File tree

02-stage-audiodriver-2michat-v1/02-set-audio-volume/files/configure_audio.sh

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,6 @@ set_control_if_exists() {
4646
if wait_for_card_and_control seeed2micvoicec Headphone; then
4747
CARD="seeed2micvoicec"
4848
echo "seeed2micvoicec found"
49-
elif wait_for_card_and_control Lite Headphone; then
50-
CARD="Lite"
51-
echo "Lite found"
5249
else
5350
echo "No supported sound card became ready"
5451
exit 1

02-stage-audiodriver-other/01-set-audio-volume/files/configure_audio.sh

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -43,22 +43,6 @@ set_control_if_exists() {
4343
return 0
4444
}
4545

46-
if wait_for_card_and_control seeed2micvoicec Headphone; then
47-
CARD="seeed2micvoicec"
48-
echo "seeed2micvoicec found"
49-
elif wait_for_card_and_control Lite Headphone; then
50-
CARD="Lite"
51-
echo "Lite found"
52-
else
53-
echo "No supported sound card became ready"
54-
exit 1
55-
fi
56-
57-
set_control_if_exists "$CARD" Headphone 100%
58-
set_control_if_exists "$CARD" Speaker 100%
59-
set_control_if_exists "$CARD" Master 100%
60-
set_control_if_exists "$CARD" PCM 100%
61-
6246
# Set pipewire sink to 100%
6347
wpctl set-volume @DEFAULT_AUDIO_SINK@ 1.0
6448

02-stage-audiodriver-respeaker_lite/02-set-audio-volume/files/configure_audio.sh

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -43,22 +43,6 @@ set_control_if_exists() {
4343
return 0
4444
}
4545

46-
if wait_for_card_and_control seeed2micvoicec Headphone; then
47-
CARD="seeed2micvoicec"
48-
echo "seeed2micvoicec found"
49-
elif wait_for_card_and_control Lite Headphone; then
50-
CARD="Lite"
51-
echo "Lite found"
52-
else
53-
echo "No supported sound card became ready"
54-
exit 1
55-
fi
56-
57-
set_control_if_exists "$CARD" Headphone 100%
58-
set_control_if_exists "$CARD" Speaker 100%
59-
set_control_if_exists "$CARD" Master 100%
60-
set_control_if_exists "$CARD" PCM 100%
61-
6246
# Set pipewire sink to 100%
6347
wpctl set-volume @DEFAULT_AUDIO_SINK@ 1.0
6448

0 commit comments

Comments
 (0)