summaryrefslogtreecommitdiffstats
path: root/audio/headset.c
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.dentz@openbossa.org>2007-07-20 18:03:20 +0000
committerLuiz Augusto von Dentz <luiz.dentz@openbossa.org>2007-07-20 18:03:20 +0000
commitac9481b7ad48944f727f6f42237e4e4da32a10a7 (patch)
treef1f037c7089ccf8cc9f8efe7711a262bbfdd0148 /audio/headset.c
parent072e787344d83af866fc6fb4f7ee88fd5d62cac2 (diff)
Move server registration and sdp record code from gateway to manager.
Diffstat (limited to 'audio/headset.c')
-rw-r--r--audio/headset.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/audio/headset.c b/audio/headset.c
index 1e57c177..e97a99cf 100644
--- a/audio/headset.c
+++ b/audio/headset.c
@@ -1279,9 +1279,6 @@ void headset_update(void *device, sdp_record_t *record, uint16_t svc)
{
struct headset *headset = ((struct device *) device)->headset;
- if (!gateway_is_enabled(svc))
- return;
-
switch (svc) {
case HANDSFREE_SVCLASS_ID:
if (headset->hfp_handle &&
@@ -1330,11 +1327,6 @@ struct headset *headset_init(void *device, sdp_record_t *record,
if (!record)
goto register_iface;
- if (!gateway_is_enabled(svc)) {
- g_free(hs);
- return NULL;
- }
-
switch (svc) {
case HANDSFREE_SVCLASS_ID:
hs->hfp_handle = record->handle;