Hallo zusammen,
mein Name ist Christian und ich habe dieses Projekt schon vor längerem gefunden, da es ideal für unseren Neubau ist.
Gelötet ist alles und es hat auch schonmal - zumindest im Ansatz - funktioniert. Verbaut sind 13 Verstärker und 2 LogiLinik Soundkarten.
Hatte ursprünglich einen Raspi 4, wie ich gelesen habe funktioniert der aber nicht mit zwei Soundkarten, also habe ich mir noch einen 3B+ zugelegt, mit dem das Projekt umgesetzt werden soll.
Nur ich bekomme das System einfach nicht zum Laufen.
Mein Problem ist, dass ich sobald eine angepasst bootlocal.sh einspiele, der Raspi nicht mehr erreichbar ist.
Hab jetzt viel versucht, ich komme aber nicht dahinter, wo der Fehler liegt und wäre daher für Hilfe sehr dankbar!
Meine Bootlocal sieht wie folgt aus.
Meine asound.conf ist wie von einem User hier aufgebaut:
Danke!
Christian
mein Name ist Christian und ich habe dieses Projekt schon vor längerem gefunden, da es ideal für unseren Neubau ist.
Gelötet ist alles und es hat auch schonmal - zumindest im Ansatz - funktioniert. Verbaut sind 13 Verstärker und 2 LogiLinik Soundkarten.
Hatte ursprünglich einen Raspi 4, wie ich gelesen habe funktioniert der aber nicht mit zwei Soundkarten, also habe ich mir noch einen 3B+ zugelegt, mit dem das Projekt umgesetzt werden soll.
Nur ich bekomme das System einfach nicht zum Laufen.
Mein Problem ist, dass ich sobald eine angepasst bootlocal.sh einspiele, der Raspi nicht mehr erreichbar ist.
Hab jetzt viel versucht, ich komme aber nicht dahinter, wo der Fehler liegt und wäre daher für Hilfe sehr dankbar!
Meine Bootlocal sieht wie folgt aus.
Code:
#!/bin/sh
# put other system startup commands here
GREEN="$(echo -e '\033[1;32m')"
echo
echo "${GREEN}Running bootlocal.sh..."
#pCPstart------
/usr/local/bin/squeezelite -n "piCorePlayer1" -o monofrontl -a 80:::0: -m ab:cd:ef:12:34:02 -C 1 -G 4:L -z
/usr/local/bin/squeezelite -n "piCorePlayer2" -o monofrontr -a 80:::0: -m ab:cd:ef:12:34:03 -C 1 -G 5:L -z
/usr/local/bin/squeezelite -n "piCorePlayer3" -o monosurroundl -a 80:::0: -m ab:cd:ef:12:34:04 -C 1 -G 6:L -z
/usr/local/bin/squeezelite -n "piCorePlayer4" -o monosurroundr -a 80:::0: -m ab:cd:ef:12:34:05 -C 1 -G 12:L -z
/usr/local/bin/squeezelite -n "piCorePlayer5" -o monocenterl -a 80:::0: -m ab:cd:ef:12:34:06 -C 1 -G 13:L -z
/usr/local/bin/squeezelite -n "piCorePlayer6" -o monocenterr -a 80:::0: -m ab:cd:ef:12:34:07 -C 1 -G 16:L -z
/usr/local/bin/squeezelite -n "piCorePlayer7" -o monobackl -a 80:::0: -m ab:cd:ef:12:34:08 -C 1 -G 17:L -z
/usr/local/bin/squeezelite -n "piCorePlayer8" -o monobackr -a 80:::0: -m ab:cd:ef:12:34:09 -C 1 -G 18:L -z
#/usr/local/bin/squeezelite -n "piCorePlayer9" -o monofrontr -a 80:::0: -m ab:cd:ef:12:34:10 -C 1 -G 22:L -z
#/usr/local/bin/squeezelite -n "piCorePlayer10" -o monofrontr -a 80:::0: -m ab:cd:ef:12:34:11 -C 1 -G 23L -z
#/usr/local/bin/squeezelite -n "piCorePlayer11" -o monofrontr -a 80:::0: -m ab:cd:ef:12:34:12 -C 1 -G 24 -z
#/usr/local/bin/squeezelite -n "piCorePlayer12" -o monofrontr -a 80:::0: -m ab:cd:ef:12:34:13 -C 1 -G 25:L -z
#/usr/local/bin/squeezelite -n "piCorePlayer13" -o monofrontr -a 80:::0: -m ab:cd:ef:12:34:14 -C 1 -G 26 -z
/home/tc/www/cgi-bin/pcp_startup.sh 2>&1 | tee -a /var/log/pcp_boot.log
#pCPstop------
Code:
################################################## #######################
## CUSTOM ASOUND.CONF by mfd https://knx-user-forum.de/member/7968-mfd
################################################## #######################
## Channel splitting your UA0099 USB sound card to get up to four
## independent stereo outputs (...and more )
################################################## #######################
## stereofront = the FRONT labeled green jack
## stereosurround = the SURROUND labeled black jack
## stereocenter = the CENTER / BASS labeled yellow jack
## stereoback = the BACK labeled black jack
## stereoall = all stereo outputs
##
## for up to eight mono output channels use:
##
## monofrontl = the FRONT labeled green jack - tip
## monofrontr = the FRONT labeled green jack - ring
## monosurroundl = the SUROUND labeled black jack - tip
## monosurroundr = the SUROUND labeled black jack - ring
## monocenterl = the CENTER / BASS labeled yellow jack - tip
## monocenterr = the CENTER / BASS labeled yellow jack - ring
## monobackl = the BACK labeled black jack - tip
## monobackr = the BACK labeled black jack - ring
################################################## #######################
################################################## #######################
## labels and colors could be different for differnt vendors or
## versions of the device (Logilink, Sewell, Sweex, ...)
################################################## #######################
## put this file into your /ect/asound.conf
################################################## #######################
pcm.logilink { # alias for our sound card
type hw # must be hw in our case
card 1 # check your correct card number by typing
device 0 # 'aplay -l' in your terminal
} # the 1st usb card on the Raspi shows as
# card 1: Device [USB Sound Device], device 0: USB Audio [USB Audio]
ctl.logilink {
type hw
card 1
device 0
}
pcm.logilink2 { # alias for our sound card
type hw # must be hw in our case
card 2 # check your correct card number by typing
device 0 # 'aplay -l' in your terminal
} # the 1st usb card on the Raspi shows as
# card 1: Device [USB Sound Device], device 0: USB Audio [USB Audio]
ctl.logilink2 {
type hw
card 2
device 0
}
pcm.dmixer1 {
type dmix
ipc_key 1024 # must be unique number on your system
ipc_perm 0666 # neccesary for normal user to have access
slave.pcm "logilink"
slave {
period_time 0
period_size 1024
buffer_size 4096
rate 44100
channels 8
}
bindings {
0 0
1 1
2 2
3 3
4 4
5 5
6 6
7 7
}
}
pcm.dmixer2 {
type dmix
ipc_key 1024 # must be unique number on your system
ipc_perm 0666 # neccesary for normal user to have access
slave.pcm "logilink2"
slave {
period_time 0
period_size 1024
buffer_size 4096
rate 44100
channels 8
}
bindings {
0 0
1 1
2 2
3 3
4 4
5 5
6 6
7 7
}
}
#
pcm.!default {
type plug
slave.pcm "dmixer"
}
pcm.out {
type plug
slave.pcm {
type multi
slaves {
a {
channels 8
pcm "dmixer1"
}
b {
channels 8
pcm "dmixer2"
}
}
bindings {
0 { slave a channel 0 }
1 { slave a channel 1 }
2 { slave a channel 2 }
3 { slave a channel 3 }
4 { slave a channel 4 }
5 { slave a channel 5 }
6 { slave a channel 6 }
7 { slave a channel 7 }
8 { slave b channel 0 }
9 { slave b channel 1 }
10 { slave b channel 2 }
11 { slave b channel 3 }
12 { slave b channel 4 }
13 { slave b channel 5 }
14 { slave b channel 6 }
15 { slave b channel 7 }
}
}
}
pcm.!default {
type plug
slave {
pcm "out"
channels 16
}
ttable.0.0 1
ttable.1.1 1
ttable.0.2 1
ttable.1.3 1
ttable.0.4 1
ttable.1.5 1
ttable.0.6 1
ttable.1.7 1
ttable.0.8 1
ttable.1.9 1
ttable.0.10 1
ttable.1.11 1
ttable.0.12 1
ttable.1.13 1
ttable.0.14 1
ttable.1.15 1
}
#Soundkarte 1
pcm.stereofront1 {
type plug
slave {
pcm "out"
channels 16
}
ttable.0.0 1
ttable.1.1 1
}
pcm.stereocenter1 {
type plug
slave {
pcm "out"
channels 16
}
ttable.0.2 1
ttable.1.3 1
}
pcm.stereoback1 {
type plug
slave {
pcm "out"
channels 16
}
ttable.0.4 1
ttable.1.5 1
}
pcm.stereosurround1 {
type plug
slave {
pcm "out"
channels 16
}
ttable.0.6 1
ttable.1.7 1
}
pcm.stereoall1 {
type plug
slave {
pcm "out"
channels 16
}
ttable.0.0 1 # input left and right to all 4 l+r outputs
ttable.1.1 1
ttable.0.2 1
ttable.1.3 1
ttable.0.4 1
ttable.1.5 1
ttable.0.6 1
ttable.1.7 1
}
pcm.monofrontl1 {
type route
slave {
pcm "out"
channels 16
}
ttable.0.0 1 # in-channel 0, out-channel 0, 100% volume
ttable.1.0 1 # in-channel 1, out-channel 0, 100% volume
}
pcm.monofrontr1 {
type route
slave {
pcm "out"
channels 16
}
ttable.0.1 1
ttable.1.1 1
}
pcm.monocenterl1 {
type route
slave {
pcm "out"
channels 16
}
ttable.0.2 1
ttable.1.2 1
}
pcm.monocenterr1 {
type route
slave {
pcm "out"
channels 16
}
ttable.0.3 1
ttable.1.3 1
}
pcm.monobackl1 {
type route
slave {
pcm "out"
channels 16
}
ttable.0.4 1
ttable.1.4 1
}
pcm.monobackr1 {
type route
slave {
pcm "out"
channels 16
}
ttable.0.5 1
ttable.1.5 1
}
pcm.monosurroundl1 {
type route
slave {
pcm "out"
channels 16
}
ttable.0.6 1
ttable.1.6 1
}
pcm.monosurroundr1 {
type route
slave {
pcm "out"
channels 16
}
ttable.0.7 1
ttable.1.7 1
}
# Soundkarte 2
pcm.stereofront2 {
type plug
slave {
pcm "out"
channels 16
}
ttable.0.8 1
ttable.1.9 1
}
pcm.stereocenter2 {
type plug
slave {
pcm "out"
channels 16
}
ttable.0.10 1
ttable.1.11 1
}
pcm.stereoback2 {
type plug
slave {
pcm "out"
channels 16
}
ttable.0.12 1
ttable.1.13 1
}
pcm.stereosurround2 {
type plug
slave {
pcm "out"
channels 16
}
ttable.0.14 1
ttable.1.15 1
}
pcm.stereoall2 {
type plug
slave {
pcm "out"
channels 16
}
ttable.0.8 1 # input left and right to all 4 l+r outputs
ttable.1.9 1
ttable.0.10 1
ttable.1.11 1
ttable.0.12 1
ttable.1.13 1
ttable.0.14 1
ttable.1.15 1
}
pcm.monofrontl2 {
type route
slave {
pcm "out"
channels 16
}
ttable.0.8 1 # in-channel 0, out-channel 0, 100% volume
ttable.1.8 1 # in-channel 1, out-channel 0, 100% volume
}
pcm.monofrontr2 {
type route
slave {
pcm "out"
channels 16
}
ttable.0.9 1
ttable.1.9 1
}
pcm.monocenterl2 {
type route
slave {
pcm "out"
channels 16
}
ttable.0.10 1
ttable.1.10 1
}
pcm.monocenterr2 {
type route
slave {
pcm "out"
channels 16
}
ttable.0.11 1
ttable.1.11 1
}
pcm.monobackl2 {
type route
slave {
pcm "out"
channels 16
}
ttable.0.12 1
ttable.1.12 1
}
pcm.monobackr2 {
type route
slave {
pcm "out"
channels 16
}
ttable.0.13 1
ttable.1.13 1
}
pcm.monosurroundl2 {
type route
slave {
pcm "out"
channels 16
}
ttable.0.14 1
ttable.1.14 1
}
pcm.monosurroundr2 {
type route
slave {
pcm "out"
channels 16
}
ttable.0.15 1
ttable.1.15 1
}
#---ALSA EQ Below--------
ctl.equal {
type equal;
controls "/home/tc/.alsaequal.bin"
library "/usr/local/lib/ladspa/caps.so"
}
pcm.plugequal {
type equal;
slave.pcm "plughw:1,0";
controls "/home/tc/.alsaequal.bin"
library "/usr/local/lib/ladspa/caps.so"
}
pcm.equal {
type plug;
slave.pcm plugequal;
}
Danke!
Christian





Kommentar