From 0bdf9aaa6a82c91bd455a387e964bb2860fced29 Mon Sep 17 00:00:00 2001 From: DoHyun Pyun Date: Tue, 11 Oct 2016 13:50:14 +0900 Subject: [PATCH] Exclude enhance audio feature During A2DP streaming SCO is playing, the dbus call for pulseaudio is blocked. Because of this, the target is doing abnormal operations. After re-verifying the feature, we will include it again. Change-Id: I669f20e223f7b7d1f730a68c5f7ca1af6b1634fa Signed-off-by: DoHyun Pyun --- ag-agent/bluetooth-ag-agent.c | 3 +++ packaging/bluetooth-agent.spec | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/ag-agent/bluetooth-ag-agent.c b/ag-agent/bluetooth-ag-agent.c index 95e8173..5fd9364 100755 --- a/ag-agent/bluetooth-ag-agent.c +++ b/ag-agent/bluetooth-ag-agent.c @@ -1884,6 +1884,9 @@ static int __bt_ag_sco_connect(bt_ag_info_t *hs) bt_ag_slconn_t *slconn = hs->slc; /*guint watch_id;*/ + if (hs->state == HEADSET_STATE_ON_CALL) + return BT_HFP_AGENT_ERROR_ALREADY_CONNECTED; + if (hs->state != HEADSET_STATE_CONNECTED) return BT_HFP_AGENT_ERROR_NOT_CONNECTED; #ifdef TIZEN_MEDIA_ENHANCE diff --git a/packaging/bluetooth-agent.spec b/packaging/bluetooth-agent.spec index 1514011..1c4f4a2 100644 --- a/packaging/bluetooth-agent.spec +++ b/packaging/bluetooth-agent.spec @@ -45,7 +45,7 @@ cp %{SOURCE1001} . export CFLAGS="$CFLAGS -DTIZEN_DEBUG_ENABLE" export CXXFLAGS="$CXXFLAGS -DTIZEN_DEBUG_ENABLE" export FFLAGS="$FFLAGS -DTIZEN_DEBUG_ENABLE" -export CFLAGS="$CFLAGS -DTIZEN_MEDIA_ENHANCE" +#export CFLAGS="$CFLAGS -DTIZEN_MEDIA_ENHANCE" export CFLAGS="$CFLAGS -DTIZEN_BT_HFP_AG_ENABLE" %ifarch aarch64 -- 2.7.4