OSDN Git Service

audio/source: Remove shutdown parameter from source_disconnect
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Mon, 18 Nov 2013 11:50:13 +0000 (13:50 +0200)
committerJohan Hedberg <johan.hedberg@intel.com>
Mon, 18 Nov 2013 12:10:49 +0000 (14:10 +0200)
This parameter is always false so it never do anything.

profiles/audio/a2dp.c
profiles/audio/source.c
profiles/audio/source.h

index 864cb18..95ffa12 100644 (file)
@@ -1887,7 +1887,7 @@ static int a2dp_source_disconnect(struct btd_service *service)
 
        DBG("path %s", path);
 
-       return source_disconnect(service, FALSE);
+       return source_disconnect(service);
 }
 
 static int a2dp_sink_connect(struct btd_service *service)
index 24a4353..7b129b7 100644 (file)
@@ -380,16 +380,13 @@ gboolean source_new_stream(struct btd_service *service, struct avdtp *session,
        return TRUE;
 }
 
-int source_disconnect(struct btd_service *service, gboolean shutdown)
+int source_disconnect(struct btd_service *service)
 {
        struct source *source = btd_service_get_user_data(service);
 
        if (!source->session)
                return -ENOTCONN;
 
-       if (shutdown)
-               avdtp_set_device_disconnect(source->session, TRUE);
-
        /* cancel pending connect */
        if (source->connect_id > 0) {
                a2dp_cancel(source->connect_id);
index c16fb4b..a014c68 100644 (file)
@@ -48,4 +48,4 @@ gboolean source_new_stream(struct btd_service *service, struct avdtp *session,
                                struct avdtp_stream *stream);
 gboolean source_setup_stream(struct btd_service *service,
                                                        struct avdtp *session);
-int source_disconnect(struct btd_service *service, gboolean shutdown);
+int source_disconnect(struct btd_service *service);