From a170a90602f04f338bd90ed7bc6b2d9cc0d13772 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Mon, 15 Sep 2025 10:30:20 +0200 Subject: [PATCH] Remove ALSA CARD --- birdnet-go/rootfs/etc/cont-init.d/99-run.sh | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/birdnet-go/rootfs/etc/cont-init.d/99-run.sh b/birdnet-go/rootfs/etc/cont-init.d/99-run.sh index 74f9d7199..4f6700272 100755 --- a/birdnet-go/rootfs/etc/cont-init.d/99-run.sh +++ b/birdnet-go/rootfs/etc/cont-init.d/99-run.sh @@ -10,22 +10,6 @@ echo " " # Check if alsa_card is provided CONFIG_LOCATION="/config/config.yaml" -if bashio::config.has_value "ALSA_CARD"; then - alsa_card=$(bashio::config 'ALSA_CARD') - bashio::log.info "ALSA_CARD option set to $alsa_card" - bashio::log.info "ALSA_CARD option is set to ${alsa_card}. Please ensure it is the correct card" - sed -i "s/card:.*/card: ${alsa_card}/g" "$CONFIG_LOCATION" - yq -i -y ".audio.card = \"${alsa_card}\"" "$CONFIG_LOCATION" -fi - -# Adjust microphone volume if needed -if command -v amixer > /dev/null 2> /dev/null; then - current_volume="$(amixer sget Capture | grep -oP '\[\d+%\]' | tr -d '[]%' | head -1 2> /dev/null || echo "100")" || true - if [[ "$current_volume" -eq 0 ]]; then - amixer sset Capture 70% - bashio::log.warning "Microphone was off, volume set to 70%." - fi || true -fi ######################## # CONFIGURE birdnet-go #