diff options
author | João Paulo Rechi Vita <jprvita@openbossa.org> | 2013-04-16 19:32:21 -0300 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2013-04-16 14:20:40 -0500 |
commit | a2d0f434fa1fb91bd7138ad2dd09b4b9dc5aa23b (patch) | |
tree | 7883b4f86b9f72ba8fc0ab2e1a82912ca32f79ef /src | |
parent | 82909259c4886a89c00c7ae2fe502d9b99e45647 (diff) | |
download | ofono-a2d0f434fa1fb91bd7138ad2dd09b4b9dc5aa23b.tar.bz2 |
handsfree-audio: Add debug logging
Print debug messages when Handsfree Audio Agent registers or unregisters
itself.
Diffstat (limited to 'src')
-rw-r--r-- | src/handsfree-audio.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/handsfree-audio.c b/src/handsfree-audio.c index c24e7876..dc378534 100644 --- a/src/handsfree-audio.c +++ b/src/handsfree-audio.c @@ -674,10 +674,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"); @@ -718,6 +724,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); } |