* [PATCH 1/2] audio: Remove left over of HFP removal
@ 2012-12-05 10:16 Chan-yeol Park
2012-12-05 10:16 ` [PATCH 2/2] audio: Remove not used auto connect flag Chan-yeol Park
2012-12-05 11:03 ` [PATCH 1/2] audio: Remove left over of HFP removal Johan Hedberg
0 siblings, 2 replies; 5+ messages in thread
From: Chan-yeol Park @ 2012-12-05 10:16 UTC (permalink / raw)
To: linux-bluetooth
---
profiles/audio/audio.conf | 21 ++-------------------
profiles/audio/manager.c | 10 ----------
2 files changed, 2 insertions(+), 29 deletions(-)
diff --git a/profiles/audio/audio.conf b/profiles/audio/audio.conf
index 6bf4482..12b9c55 100644
--- a/profiles/audio/audio.conf
+++ b/profiles/audio/audio.conf
@@ -8,12 +8,8 @@
#Master=true
# If we want to disable support for specific services
-# 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)
-# Defaults to HCI
-#SCORouting=PCM
+# Defaults to supporting the services: Sink, Control
+#Disable=Source
# Automatically connect both A2DP and HFP/HSP profiles for incoming
# connections. Some headsets that support both profiles will only connect the
@@ -21,16 +17,3 @@
# idea.
#AutoConnect=true
-# Headset interface specific options (i.e. options which affect how the audio
-# service interacts with remote headset devices)
-[Headset]
-
-# Maximum number of connected HSP/HFP devices per adapter. Defaults to 1
-MaxConnected=1
-
-# Set to true to enable use of fast connectable mode (faster page scanning)
-# for HFP when incoming call starts. Default settings are restored after
-# call is answered or rejected. Page scan interval is much shorter and page
-# scan type changed to interlaced. Such allows faster connection initiated
-# by a headset.
-FastConnectable=false
diff --git a/profiles/audio/manager.c b/profiles/audio/manager.c
index 714489a..4e0c631 100644
--- a/profiles/audio/manager.c
+++ b/profiles/audio/manager.c
@@ -81,7 +81,6 @@ struct profile_req {
};
static gboolean auto_connect = TRUE;
-static int max_connected_headsets = 1;
static GKeyFile *config = NULL;
static GSList *adapters = NULL;
static GSList *devices = NULL;
@@ -619,15 +618,6 @@ int audio_manager_init(GKeyFile *conf)
} else
auto_connect = b;
- err = NULL;
- i = g_key_file_get_integer(config, "Headset", "MaxConnected",
- &err);
- if (err) {
- DBG("audio.conf: %s", err->message);
- g_clear_error(&err);
- } else
- max_connected_headsets = i;
-
proceed:
if (enabled.source)
btd_profile_register(&a2dp_source_profile);
--
1.7.9.5
^ permalink raw reply related [flat|nested] 5+ messages in thread* [PATCH 2/2] audio: Remove not used auto connect flag
2012-12-05 10:16 [PATCH 1/2] audio: Remove left over of HFP removal Chan-yeol Park
@ 2012-12-05 10:16 ` Chan-yeol Park
2012-12-05 11:03 ` [PATCH 1/2] audio: Remove left over of HFP removal Johan Hedberg
1 sibling, 0 replies; 5+ messages in thread
From: Chan-yeol Park @ 2012-12-05 10:16 UTC (permalink / raw)
To: linux-bluetooth
This flag is not used anymore because HFP is moved away from bluez
It was used for Automatic HFP+A2DP connection with incomming connection.
---
profiles/audio/audio.conf | 7 -------
profiles/audio/avdtp.c | 11 -----------
profiles/audio/device.h | 2 --
profiles/audio/manager.c | 10 ----------
profiles/audio/sink.c | 2 --
profiles/audio/source.c | 2 --
6 files changed, 34 deletions(-)
diff --git a/profiles/audio/audio.conf b/profiles/audio/audio.conf
index 12b9c55..f556610 100644
--- a/profiles/audio/audio.conf
+++ b/profiles/audio/audio.conf
@@ -10,10 +10,3 @@
# If we want to disable support for specific services
# Defaults to supporting the services: Sink, Control
#Disable=Source
-
-# Automatically connect both A2DP and HFP/HSP profiles for incoming
-# connections. Some headsets that support both profiles will only connect the
-# other one automatically so the default setting of true is usually a good
-# idea.
-#AutoConnect=true
-
diff --git a/profiles/audio/avdtp.c b/profiles/audio/avdtp.c
index e38c95b..4b74b65 100644
--- a/profiles/audio/avdtp.c
+++ b/profiles/audio/avdtp.c
@@ -436,8 +436,6 @@ static GSList *servers = NULL;
static GSList *avdtp_callbacks = NULL;
-static gboolean auto_connect = TRUE;
-
static int send_request(struct avdtp *session, gboolean priority,
struct avdtp_stream *stream, uint8_t signal_id,
void *buffer, size_t size);
@@ -2549,8 +2547,6 @@ static void avdtp_confirm_cb(GIOChannel *chan, gpointer data)
goto drop;
}
- dev->auto_connect = auto_connect;
-
return;
drop:
@@ -3880,13 +3876,6 @@ int avdtp_init(const bdaddr_t *src, GKeyFile *config)
} else
master = tmp;
- tmp = g_key_file_get_boolean(config, "General", "AutoConnect",
- &err);
- if (err)
- g_clear_error(&err);
- else
- auto_connect = tmp;
-
proceed:
server = g_new0(struct avdtp_server, 1);
diff --git a/profiles/audio/device.h b/profiles/audio/device.h
index 0801cda..77e3c98 100644
--- a/profiles/audio/device.h
+++ b/profiles/audio/device.h
@@ -39,8 +39,6 @@ struct audio_device {
bdaddr_t src;
bdaddr_t dst;
- gboolean auto_connect;
-
struct sink *sink;
struct source *source;
struct control *control;
diff --git a/profiles/audio/manager.c b/profiles/audio/manager.c
index 4e0c631..355d7fb 100644
--- a/profiles/audio/manager.c
+++ b/profiles/audio/manager.c
@@ -80,7 +80,6 @@ struct profile_req {
btd_profile_cb cb;
};
-static gboolean auto_connect = TRUE;
static GKeyFile *config = NULL;
static GSList *adapters = NULL;
static GSList *devices = NULL;
@@ -579,8 +578,6 @@ int audio_manager_init(GKeyFile *conf)
{
char **list;
int i;
- gboolean b;
- GError *err = NULL;
if (!conf)
goto proceed;
@@ -611,13 +608,6 @@ int audio_manager_init(GKeyFile *conf)
}
g_strfreev(list);
- b = g_key_file_get_boolean(config, "General", "AutoConnect", &err);
- if (err) {
- DBG("audio.conf: %s", err->message);
- g_clear_error(&err);
- } else
- auto_connect = b;
-
proceed:
if (enabled.source)
btd_profile_register(&a2dp_source_profile);
diff --git a/profiles/audio/sink.c b/profiles/audio/sink.c
index 466c0a8..bc9a194 100644
--- a/profiles/audio/sink.c
+++ b/profiles/audio/sink.c
@@ -366,8 +366,6 @@ int sink_connect(struct audio_device *dev, audio_device_cb cb, void *data)
return -EIO;
}
- dev->auto_connect = FALSE;
-
pending = sink->connect;
pending->cb = cb;
diff --git a/profiles/audio/source.c b/profiles/audio/source.c
index 157a4e8..1105d3e 100644
--- a/profiles/audio/source.c
+++ b/profiles/audio/source.c
@@ -366,8 +366,6 @@ int source_connect(struct audio_device *dev, audio_device_cb cb, void *data)
return -EIO;
}
- dev->auto_connect = FALSE;
-
pending = source->connect;
pending->cb = cb;
pending->cb_data = data;
--
1.7.9.5
^ permalink raw reply related [flat|nested] 5+ messages in thread* Re: [PATCH 1/2] audio: Remove left over of HFP removal
2012-12-05 10:16 [PATCH 1/2] audio: Remove left over of HFP removal Chan-yeol Park
2012-12-05 10:16 ` [PATCH 2/2] audio: Remove not used auto connect flag Chan-yeol Park
@ 2012-12-05 11:03 ` Johan Hedberg
1 sibling, 0 replies; 5+ messages in thread
From: Johan Hedberg @ 2012-12-05 11:03 UTC (permalink / raw)
To: Chan-yeol Park; +Cc: linux-bluetooth
Hi Chan-yeol,
On Wed, Dec 05, 2012, Chan-yeol Park wrote:
> ---
> profiles/audio/audio.conf | 21 ++-------------------
> profiles/audio/manager.c | 10 ----------
> 2 files changed, 2 insertions(+), 29 deletions(-)
Both patches have been applied. Thanks.
Johan
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH 1/2] audio: Remove left over of HFP removal
@ 2012-12-05 2:27 chanyeol.park
2012-12-05 8:43 ` Johan Hedberg
0 siblings, 1 reply; 5+ messages in thread
From: chanyeol.park @ 2012-12-05 2:27 UTC (permalink / raw)
To: linux-bluetooth
From: Chan-yeol Park <chanyeol.park@samsung.com>
---
profiles/audio/main.c | 8 --------
1 file changed, 8 deletions(-)
diff --git a/profiles/audio/main.c b/profiles/audio/main.c
index ce060fc..c5d1426 100644
--- a/profiles/audio/main.c
+++ b/profiles/audio/main.c
@@ -44,8 +44,6 @@
#include "device.h"
#include "manager.h"
-static GIOChannel *sco_server = NULL;
-
static GKeyFile *load_config_file(const char *file)
{
GError *err = NULL;
@@ -81,12 +79,6 @@ static int audio_init(void)
static void audio_exit(void)
{
- if (sco_server) {
- g_io_channel_shutdown(sco_server, TRUE, NULL);
- g_io_channel_unref(sco_server);
- sco_server = NULL;
- }
-
audio_manager_exit();
}
--
1.7.9.5
^ permalink raw reply related [flat|nested] 5+ messages in thread
end of thread, other threads:[~2012-12-05 11:03 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-12-05 10:16 [PATCH 1/2] audio: Remove left over of HFP removal Chan-yeol Park
2012-12-05 10:16 ` [PATCH 2/2] audio: Remove not used auto connect flag Chan-yeol Park
2012-12-05 11:03 ` [PATCH 1/2] audio: Remove left over of HFP removal Johan Hedberg
-- strict thread matches above, loose matches on Subject: below --
2012-12-05 2:27 chanyeol.park
2012-12-05 8:43 ` Johan Hedberg
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).