All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 1/4] audio: remove redundant Media API option
@ 2012-08-28 10:24 chanyeol.park
  2012-08-28 10:24 ` [PATCH v2 2/4] audio: Remove unused enum values chanyeol.park
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: chanyeol.park @ 2012-08-28 10:24 UTC (permalink / raw)
  To: linux-bluetooth

From: Chan-yeol Park <chanyeol.park@samsung.com>

BlueZ supports only Media API. So option handler's are useless.
---
 audio/audio.conf |    2 +-
 audio/manager.c  |   12 ++----------
 audio/manager.h  |    2 --
 3 files changed, 3 insertions(+), 13 deletions(-)

diff --git a/audio/audio.conf b/audio/audio.conf
index 662647c..d1c57d3 100644
--- a/audio/audio.conf
+++ b/audio/audio.conf
@@ -8,7 +8,7 @@
 #Master=true
 
 # If we want to disable support for specific services
-# Defaults to supporting the services: HFP, Headset, Sink, Control and Media
+# Defaults to supporting the services: HFP, Headset, Sink, Control
 #Disable=Gateway,Source
 
 # SCO routing. Either PCM or HCI (in which case audio is routed to/from ALSA)
diff --git a/audio/manager.c b/audio/manager.c
index 999124d..6411707 100644
--- a/audio/manager.c
+++ b/audio/manager.c
@@ -112,7 +112,6 @@ static struct enabled_interfaces enabled = {
 	.sink		= TRUE,
 	.source		= FALSE,
 	.control	= TRUE,
-	.media		= TRUE,
 };
 
 static struct audio_adapter *find_adapter(GSList *list,
@@ -1180,9 +1179,6 @@ int audio_manager_init(DBusConnection *conn, GKeyFile *conf,
 			enabled.source = TRUE;
 		else if (g_str_equal(list[i], "Control"))
 			enabled.control = TRUE;
-		else if (g_str_equal(list[i], "Media"))
-			enabled.media = TRUE;
-
 	}
 	g_strfreev(list);
 
@@ -1199,8 +1195,6 @@ int audio_manager_init(DBusConnection *conn, GKeyFile *conf,
 			enabled.source = FALSE;
 		else if (g_str_equal(list[i], "Control"))
 			enabled.control = FALSE;
-		else if (g_str_equal(list[i], "Media"))
-			enabled.media = FALSE;
 	}
 	g_strfreev(list);
 
@@ -1231,8 +1225,7 @@ proceed:
 	if (enabled.control)
 		btd_register_adapter_driver(&avrcp_server_driver);
 
-	if (enabled.media)
-		btd_register_adapter_driver(&media_server_driver);
+	btd_register_adapter_driver(&media_server_driver);
 
 	if (enabled.headset)
 		btd_register_adapter_driver(&headset_server_driver);
@@ -1264,8 +1257,7 @@ void audio_manager_exit(void)
 		config = NULL;
 	}
 
-	if (enabled.media)
-		btd_unregister_adapter_driver(&media_server_driver);
+	btd_unregister_adapter_driver(&media_server_driver);
 
 	if (enabled.headset)
 		btd_unregister_adapter_driver(&headset_server_driver);
diff --git a/audio/manager.h b/audio/manager.h
index f1d3021..3c8b1e0 100644
--- a/audio/manager.h
+++ b/audio/manager.h
@@ -29,8 +29,6 @@ struct enabled_interfaces {
 	gboolean sink;
 	gboolean source;
 	gboolean control;
-	gboolean socket;
-	gboolean media;
 	gboolean media_player;
 };
 
-- 
1.7.9.5


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-09-03 11:51 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-28 10:24 [PATCH v2 1/4] audio: remove redundant Media API option chanyeol.park
2012-08-28 10:24 ` [PATCH v2 2/4] audio: Remove unused enum values chanyeol.park
2012-08-28 10:24 ` [PATCH v2 3/4] core: replace NULL by dbus invalid arguments chanyeol.park
2012-08-28 10:24 ` [PATCH v2 4/4] network: Fix bnep setup failure handle bug chanyeol.park
2012-09-03 11:51 ` [PATCH v2 1/4] audio: remove redundant Media API option Johan Hedberg

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.