diff --git a/scripts/modem/sxmo_modem.sh b/scripts/modem/sxmo_modem.sh index 78e3935..bb06604 100755 --- a/scripts/modem/sxmo_modem.sh +++ b/scripts/modem/sxmo_modem.sh @@ -100,8 +100,10 @@ checkforfinishedcalls() { sxmo_jobs.sh stop proximity_lock sxmo_hook_statusbar.sh state & - if ! sxmo_modemaudio.sh reset_audio; then - sxmo_notify_user.sh --urgency=critical "We failed to reset call audio" + if sxmo_modemaudio.sh is_call_audio_mode; then + if ! sxmo_modemaudio.sh reset_audio; then + sxmo_notify_user.sh --urgency=critical "We failed to reset call audio" + fi fi sxmo_hook_after_call.sh diff --git a/scripts/modem/sxmo_modemaudio.sh b/scripts/modem/sxmo_modemaudio.sh index 5bb5e56..41acf03 100755 --- a/scripts/modem/sxmo_modemaudio.sh +++ b/scripts/modem/sxmo_modemaudio.sh @@ -17,10 +17,6 @@ ca_dbus_set_prop() { } setup_audio() { - if is_call_audio_mode; then - return - fi - if ! enable_call_audio_mode; then return 1 fi @@ -28,10 +24,6 @@ setup_audio() { } reset_audio() { - if is_default_audio_mode; then - return - fi - if ! sxmo_hook_call_audio.sh "disable"; then return 1 fi