Skip to content

Commit b9f3998

Browse files
committed
audiosettings: add Pi5 along
Pi5 has the same 2 mHDMI ports and 2 cards
1 parent 1a69f8c commit b9f3998

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)