From 85f8559613e68efdb97d31da661e857fa183ac31 Mon Sep 17 00:00:00 2001 From: Gaston Gonzalez Date: Thu, 31 Oct 2024 07:29:45 -0700 Subject: [PATCH] JS8Call - Fixed an audio decode issue in JS8Call when the ET_DEVICE plughw device is used. --- overlay/opt/emcomm-tools/bin/et-js8call | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/overlay/opt/emcomm-tools/bin/et-js8call b/overlay/opt/emcomm-tools/bin/et-js8call index dedad8d..ef9609d 100755 --- a/overlay/opt/emcomm-tools/bin/et-js8call +++ b/overlay/opt/emcomm-tools/bin/et-js8call @@ -2,7 +2,7 @@ # # Author : Gaston Gonzalez # Date : 24 October 2024 -# Updated : 28 October 2024 +# Updated : 30 October 2024 # Purpose : Wrapper script for starting JS8Call with PnP support # # Preconditions @@ -62,7 +62,15 @@ update-config () { APLAY_OUT=$(arecord -l | grep ET_AUDIO) if [ $? -eq 0 ]; then AUDIO_DEVICE=$(echo $APLAY_OUT | cut -d"," -f2 | cut -d":" -f1 | awk '{print $2}') - JS8_AUDIO_DEVICE="plughw:CARD=ET_AUDIO,DEV=${AUDIO_DEVICE}" + + # JS8Call has an issue decoding the received audio following a + # transmission when the device below is used. + # + #JS8_AUDIO_DEVICE="plughw:CARD=ET_AUDIO,DEV=${AUDIO_DEVICE}" + # + # Instead, the following device solves this issue: + JS8_AUDIO_DEVICE="sysdefault:CARD=ET_AUDIO" + et-log "Using '${JS8_AUDIO_DEVICE}' for JS8Call configuration." # 3. Check for existing JS8Call sound configuration