Skip to content

Commit

Permalink
RPi fix issues with new driver and alsa name (#51)
Browse files Browse the repository at this point in the history
  • Loading branch information
pvizeli authored Feb 15, 2021
1 parent ae22c2e commit 4757ca2
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions rootfs/etc/cont-init.d/pulse-config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,9 @@ declare tsched
readonly ALSA_CARDS="$(aplay -l)"

# RaspberryPi
if echo "${ALSA_CARDS}" | grep -q "\[bcm2835 ALSA\]"; then
if echo "${ALSA_CARDS}" | grep -q "\[bcm2835 .*\]"; then
bashio::log.info "Found RaspberryPi system"
tsched=false

# Odroid N2
elif echo "${ALSA_CARDS}" | grep -q "\[G12B-ODROID-N2\]"; then
bashio::log.info "Found Odroid N2 system"
tsched=false

else
tsched=true
fi
Expand Down

0 comments on commit 4757ca2

Please sign in to comment.