1 From 65a65eb70ca5f2af4efccb2fc7d4e00661631520 Mon Sep 17 00:00:00 2001
2 From: Philippe Nunes <philippe.nunes@linux.intel.com>
3 Date: Wed, 15 Feb 2012 11:38:59 +0100
4 Subject: [PATCH] call-volume.c: Register the call-volume interface just after the +CMUT query
5 Content-Type: text/plain; charset="utf-8"
6 Content-Transfer-Encoding: 8bit
8 With this change, the mute status and the volume level are initialised in the
9 call-volume atom. This allows also to expose the call-volume interface even
10 if the command +CLVL is not supported as it is the case for IFX.
12 drivers/atmodem/call-volume.c | 2 +-
13 1 files changed, 1 insertions(+), 1 deletions(-)
15 diff --git a/drivers/atmodem/call-volume.c b/drivers/atmodem/call-volume.c
16 index e2535b1..4c32ba7 100644
17 --- a/drivers/atmodem/call-volume.c
18 +++ b/drivers/atmodem/call-volume.c
19 @@ -65,6 +65,7 @@ static void cmut_query(gboolean ok, GAtResult *result, gpointer user_data)
20 if (g_at_result_iter_next_number(&iter, &muted) == FALSE)
23 + ofono_call_volume_register(cv);
24 ofono_call_volume_set_muted(cv, muted);
27 @@ -94,7 +95,6 @@ static void clvl_query(gboolean ok, GAtResult *result, gpointer user_data)
28 (cvd->clvl_max - cvd->clvl_min);
30 ofono_call_volume_set_speaker_volume(cv, percent);
31 - ofono_call_volume_register(cv);
34 static void clvl_range_query(gboolean ok, GAtResult *result, gpointer user_data)