no_hfp and DisableHFP
PATCH 1/1 no_hfp and DisableHFP
Hi Johan,
Here is the patch to replace no_hfp with hfp and DisableHFP with EnableHFP.
Let me know.
Thanks,
Alok.
Index: audio/audio.conf
===================================================================
RCS file: /cvsroot/bluez/utils/audio/audio.conf,v
retrieving revision 1.5
audio.conf +1 -1
@@ -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
manager.c +3 -3
@@ -1538,11 +1538,11 @@ static GIOChannel *server_socket(uint8_tstatic 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(DBusConneg_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);
-------------------------------------------------------------------------
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/
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel