static GSList *drivers = 0;
static ofono_bool_t has_wideband = FALSE;
-static void send_new_connection(const char *card, int fd)
+static void send_new_connection(const char *card, int fd, uint8_t codec)
{
DBusMessage *msg;
DBusMessageIter iter;
- uint8_t codec = HFP_CODEC_CVSD;
msg = dbus_message_new_method_call(agent->owner, agent->path,
HFP_AUDIO_AGENT_INTERFACE, "NewConnection");
return TRUE;
}
- send_new_connection(card->path, nsk);
+ send_new_connection(card->path, nsk, card->selected_codec);
close(nsk);
return TRUE;
sk = g_io_channel_unix_get_fd(io);
- send_new_connection(card->path, sk);
+ send_new_connection(card->path, sk, card->selected_codec);
close(sk);