diff options
| -rw-r--r-- | audio/audio.conf | 4 | ||||
| -rw-r--r-- | audio/manager.c | 6 | 
2 files changed, 5 insertions, 5 deletions
| diff --git a/audio/audio.conf b/audio/audio.conf index 0d733105..07ed3ea4 100644 --- a/audio/audio.conf +++ b/audio/audio.conf @@ -16,9 +16,9 @@  # service interacts with remote headset devices)  [Headset] -# Set to true to only support HSP +# Set to true to support HFP (in addition to HSP only which is the default)  # Defaults to false -DisableHFP=true +EnableHFP=false  # HFP Gateway features  # Defaults to false diff --git a/audio/manager.c b/audio/manager.c index 69f9237f..c5f7df30 100644 --- a/audio/manager.c +++ b/audio/manager.c @@ -1540,7 +1540,7 @@ 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; @@ -1569,7 +1569,7 @@ static int headset_server_init(DBusConnection *conn, GKeyFile *config)  				(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); @@ -1578,7 +1578,7 @@ static int headset_server_init(DBusConnection *conn, GKeyFile *config)  		}  	} -	if (no_hfp) +	if (!hfp)  		return 0;  	chan = DEFAULT_HF_AG_CHANNEL; | 
