sxmo_modemaudio.sh allow to brute force setup/reset

Instead, do not reset if it is already done on sxmo_modem.sh
This commit is contained in:
Willow Barraco
2023-12-27 17:34:35 +01:00
parent 5e86c77a2c
commit 6a024f2122
2 changed files with 4 additions and 10 deletions

View File

@@ -100,8 +100,10 @@ checkforfinishedcalls() {
sxmo_jobs.sh stop proximity_lock sxmo_jobs.sh stop proximity_lock
sxmo_hook_statusbar.sh state & sxmo_hook_statusbar.sh state &
if ! sxmo_modemaudio.sh reset_audio; then if sxmo_modemaudio.sh is_call_audio_mode; then
sxmo_notify_user.sh --urgency=critical "We failed to reset call audio" if ! sxmo_modemaudio.sh reset_audio; then
sxmo_notify_user.sh --urgency=critical "We failed to reset call audio"
fi
fi fi
sxmo_hook_after_call.sh sxmo_hook_after_call.sh

View File

@@ -17,10 +17,6 @@ ca_dbus_set_prop() {
} }
setup_audio() { setup_audio() {
if is_call_audio_mode; then
return
fi
if ! enable_call_audio_mode; then if ! enable_call_audio_mode; then
return 1 return 1
fi fi
@@ -28,10 +24,6 @@ setup_audio() {
} }
reset_audio() { reset_audio() {
if is_default_audio_mode; then
return
fi
if ! sxmo_hook_call_audio.sh "disable"; then if ! sxmo_hook_call_audio.sh "disable"; then
return 1 return 1
fi fi