Skip to content

Commit 2cfa584

Browse files
authored
Merge pull request #3782 from cmitu/audiosettings-another-pi
audiosettings: add Pi5 along
2 parents a7f35ec + b9f3998 commit 2cfa584

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

scriptmodules/supplementary/audiosettings.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,16 +62,16 @@ function _bcm2835_alsa_compat_audiosettings() {
6262
local cmd=(dialog --backtitle "$__backtitle" --menu "Set audio output (ALSA - compat)" 22 86 16)
6363
local hdmi="HDMI"
6464

65-
# the Pi 4 has 2 HDMI ports, so number them
66-
isPlatform "rpi4" && hdmi="HDMI 1"
65+
# the Pi 4/5 have 2 HDMI ports, so number them
66+
(isPlatform "rpi4" || isPlatform "rpi5") && hdmi="HDMI 1"
6767

6868
local options=(
6969
1 "Auto"
7070
2 "Headphones - 3.5mm jack"
7171
3 "$hdmi"
7272
)
73-
# add 2nd HDMI port on the Pi4
74-
isPlatform "rpi4" && options+=(4 "HDMI 2")
73+
# add 2nd HDMI port on the Pi 4/5
74+
(isPlatform "rpi4" || isPlatform "rpi5") && options+=(4 "HDMI 2")
7575
options+=(
7676
M "Mixer - adjust output volume"
7777
R "Reset to default"

0 commit comments

Comments
 (0)