summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoão Paulo Rechi Vita <jprvita@openbossa.org>2013-04-08 17:20:07 -0300
committerJoão Paulo Rechi Vita <jprvita@openbossa.org>2013-04-16 15:31:13 -0300
commit8993a7d354d1db4a4033f2730f5ec9bc7026cf41 (patch)
treeeaedf13c5744bab92e850f7ceb87ea91712cb066
parent9466fd1dcb639439d232221d718abe735bd44238 (diff)
handsfree-audio: Log when agent (un)registerfixes
This commit logs on debug level when a Handsfree Audio Agent registers or unregisters itself and the CODECs that are enabled.
-rw-r--r--src/handsfree-audio.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/handsfree-audio.c b/src/handsfree-audio.c
index a350dc96..a3413429 100644
--- a/src/handsfree-audio.c
+++ b/src/handsfree-audio.c
@@ -700,10 +700,16 @@ static DBusMessage *am_agent_register(DBusConnection *conn,
return __ofono_error_invalid_args(msg);
}
+ DBG("Agent %s registered with the CODECs:%s%s", sender,
+ has_cvsd ? " CVSD" : "", has_msbc ? " mSBC" : "");
+
if (has_msbc && defer_setup == 1)
has_wideband = TRUE;
- else
+ else {
has_wideband = FALSE;
+ DBG("Wideband speech disabled: %s", has_msbc ?
+ "no SCO defer setup support" : "no mSBC support");
+ }
if (has_cvsd == FALSE) {
ofono_error("CVSD codec is mandatory");
@@ -744,6 +750,8 @@ static DBusMessage *am_agent_unregister(DBusConnection *conn,
agent_free(agent);
agent = NULL;
+ DBG("Agent %s unregistered", sender);
+
return dbus_message_new_method_return(msg);
}