summaryrefslogtreecommitdiffstats
path: root/audio/manager.c
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@nokia.com>2008-02-19 08:20:22 +0000
committerJohan Hedberg <johan.hedberg@nokia.com>2008-02-19 08:20:22 +0000
commitb3f285d83c7dfe446bd7f2460e6f795e22a72d32 (patch)
tree1e1a1c76e1318c4cbf7edba368b57061a035030b /audio/manager.c
parent8bf41a847b9e8c768a21349659454bd2be8d1824 (diff)
Implement proper HFP SLC handling
Diffstat (limited to 'audio/manager.c')
-rw-r--r--audio/manager.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/audio/manager.c b/audio/manager.c
index c45e45db..69f9237f 100644
--- a/audio/manager.c
+++ b/audio/manager.c
@@ -1405,7 +1405,7 @@ static void auth_cb(DBusPendingCall *call, void *data)
} else {
char hs_address[18];
- headset_set_state(device, HEADSET_STATE_CONNECTED);
+ headset_set_authorized(device);
ba2str(&device->dst, hs_address);
@@ -1464,14 +1464,14 @@ static gboolean ag_io_cb(GIOChannel *chan, GIOCondition cond, void *data)
return TRUE;
}
+ set_hfp_active(device, hfp_active);
+
if (headset_connect_rfcomm(device, cli_sk) < 0) {
error("Allocating new GIOChannel failed!");
close(cli_sk);
return TRUE;
}
- set_hfp_active(device, hfp_active);
-
if (!manager_authorize(&device->dst, uuid, auth_cb, device, NULL))
goto failed;