public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
From: Alok <develnewbie@gmail.com>
To: BlueZ development <bluez-devel@lists.sourceforge.net>
Subject: [Bluez-devel] [Patch][HFP] no_hfp and DisableHFP
Date: Thu, 28 Feb 2008 16:20:47 +0530	[thread overview]
Message-ID: <1204195848.25999.40.camel@greatbear> (raw)

[-- Attachment #1: Type: text/plain, Size: 119 bytes --]

Hi Johan, 

Here is the patch to replace no_hfp with hfp and DisableHFP with
EnableHFP. 

Let me know.

Thanks, 
Alok.

[-- Attachment #2: patch1 --]
[-- Type: text/x-patch, Size: 1764 bytes --]

Index: audio/audio.conf
===================================================================
RCS file: /cvsroot/bluez/utils/audio/audio.conf,v
retrieving revision 1.5
diff -u -5 -p -r1.5 audio.conf
--- audio/audio.conf	23 Jan 2008 13:27:30 -0000	1.5
+++ audio/audio.conf	27 Feb 2008 15:22:16 -0000
@@ -16,11 +16,11 @@
 # service interacts with remote headset devices)
 [Headset]
 
 # Set to true to only support HSP
 # Defaults to false
-DisableHFP=true
+EnableHFP=false
 
 # HFP Gateway features
 # Defaults to false
 3WayCalling=false
 EchoCancelNoiseCancel=false
Index: audio/manager.c
===================================================================
RCS file: /cvsroot/bluez/utils/audio/manager.c,v
retrieving revision 1.90
diff -u -5 -p -r1.90 manager.c
--- audio/manager.c	19 Feb 2008 08:20:22 -0000	1.90
+++ audio/manager.c	27 Feb 2008 15:22:18 -0000
@@ -1538,11 +1538,11 @@ static GIOChannel *server_socket(uint8_t
 
 static int headset_server_init(DBusConnection *conn, GKeyFile *config)
 {
 	uint8_t chan = DEFAULT_HS_AG_CHANNEL;
 	sdp_buf_t buf;
-	gboolean no_hfp = FALSE;
+	gboolean hfp = TRUE;
 	GError *err = NULL;
 	uint32_t features;
 
 	if (!(enabled.headset || enabled.gateway))
 		return 0;
@@ -1567,20 +1567,20 @@ static int headset_server_init(DBusConne
 
 	g_io_add_watch(hs_server, G_IO_IN | G_IO_HUP | G_IO_ERR | G_IO_NVAL,
 				(GIOFunc) ag_io_cb, NULL);
 
 	if (config) {
-		no_hfp = g_key_file_get_boolean(config, "Headset", "DisableHFP",
+		hfp = g_key_file_get_boolean(config, "Headset", "EnableHFP",
 						&err);
 		if (err) {
 			debug("audio.conf: %s", err->message);
 			g_error_free(err);
 			err = NULL;
 		}
 	}
 
-	if (no_hfp)
+	if (!hfp)
 		return 0;
 
 	chan = DEFAULT_HF_AG_CHANNEL;
 
 	hf_server = server_socket(&chan);

[-- Attachment #3: Type: text/plain, Size: 228 bytes --]

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/

[-- Attachment #4: Type: text/plain, Size: 164 bytes --]

_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

                 reply	other threads:[~2008-02-28 10:50 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1204195848.25999.40.camel@greatbear \
    --to=develnewbie@gmail.com \
    --cc=bluez-devel@lists.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox