With this change, the mute status and the volume level are initialised in the
call-volume atom. This allows also to expose the call-volume interface even
if the command +CLVL is not supported as it is the case for IFX.
---
drivers/atmodem/call-volume.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/atmodem/call-volume.c b/drivers/atmodem/call-volume.c
index e2535b1..4c32ba7 100644
--- a/drivers/atmodem/call-volume.c
+++ b/drivers/atmodem/call-volume.c
@@ -65,6 +65,7 @@ static void cmut_query(gboolean ok, GAtResult *result, gpointer
user_data)
if (g_at_result_iter_next_number(&iter, &muted) == FALSE)
return;
+ ofono_call_volume_register(cv);
ofono_call_volume_set_muted(cv, muted);
}
@@ -94,7 +95,6 @@ static void clvl_query(gboolean ok, GAtResult *result, gpointer
user_data)
(cvd->clvl_max - cvd->clvl_min);
ofono_call_volume_set_speaker_volume(cv, percent);
- ofono_call_volume_register(cv);
}
static void clvl_range_query(gboolean ok, GAtResult *result, gpointer user_data)
--
1.7.1
Show replies by date