handsfree-audio: Add additional debugs

This commit is contained in:
Denis Kenzior 2015-04-22 17:12:48 -05:00
parent a5b040b781
commit 1c2987670d
1 changed files with 5 additions and 0 deletions

View File

@ -101,6 +101,8 @@ static void send_new_connection(const char *card, int fd, uint8_t codec)
DBusMessage *msg;
DBusMessageIter iter;
DBG("%p, fd: %d, codec: %hu", card, fd, codec);
msg = dbus_message_new_method_call(agent->owner, agent->path,
HFP_AUDIO_AGENT_INTERFACE, "NewConnection");
if (msg == NULL)
@ -183,6 +185,9 @@ static gboolean sco_accept(GIOChannel *io, GIOCondition cond,
return TRUE;
}
DBG("SCO connection setup between local: %s and remote: %s",
local, remote);
send_new_connection(card->path, nsk, card->selected_codec);
close(nsk);