Skip to contentSkip to conversation

call-volume.c: Register the call-volume interface just after the +CMUT query

PATCH New Philippe Nunes 1 participant 1 message Feb 16, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 call-volume.c: Register the call-volume interface just after the +CMUT query

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(-)
drivers/atmodem/call-volume.c +1 -1
index e2535b1..4c32ba7 100644
@@ -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)
Signature · 1 line
1.7.1