summaryrefslogtreecommitdiffstats
path: root/btif/src
diff options
context:
space:
mode:
authorKausik Sinnaswamy <kausik@broadcom.com>2012-04-20 00:27:00 +0530
committerMatthew Xie <mattx@google.com>2012-07-14 11:19:17 -0700
commite35926125a5320f5de50c22765f8ce07c588ff78 (patch)
tree5594c22319ce137f8b966bf37984a9cc55e6dd54 /btif/src
parentf06f57927f92d717497b409be7746644dbd5b2af (diff)
downloadexternal_bluetooth_bluedroid-e35926125a5320f5de50c22765f8ce07c588ff78.zip
external_bluetooth_bluedroid-e35926125a5320f5de50c22765f8ce07c588ff78.tar.gz
external_bluetooth_bluedroid-e35926125a5320f5de50c22765f8ce07c588ff78.tar.bz2
Added support to send the Audio state changed events for A2DP
Change-Id: Ia2f2eb02bc967d150f6c499da24fe6d7294fd7f5
Diffstat (limited to 'btif/src')
-rw-r--r--btif/src/btif_av.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/btif/src/btif_av.c b/btif/src/btif_av.c
index 2eb9563..fd8b857 100644
--- a/btif/src/btif_av.c
+++ b/btif/src/btif_av.c
@@ -371,7 +371,6 @@ static BOOLEAN btif_av_state_opening_handler(btif_sm_event_t event, void *p_data
/* inform the application of the event */
HAL_CBACK(bt_av_callbacks, connection_state_cb,
state, &(btif_av_cb.peer_bda));
-
/* change state to open/idle based on the status */
btif_sm_change_state(btif_av_cb.sm_handle, av_state);
} break;
@@ -537,10 +536,8 @@ static BOOLEAN btif_av_state_started_handler(btif_sm_event_t event, void *p_data
switch (event)
{
case BTIF_SM_ENTER_EVT:
-#ifdef ENABLE_AUDIO_STATE_CB
HAL_CBACK(bt_av_callbacks, audio_state_cb,
BTAV_AUDIO_STATE_STARTED, &(btif_av_cb.peer_bda));
-#endif
break;
case BTIF_SM_EXIT_EVT:
@@ -590,7 +587,6 @@ static BOOLEAN btif_av_state_started_handler(btif_sm_event_t event, void *p_data
return FALSE;
}
-#ifdef ENABLE_AUDIO_STATE_CB
if (p_av->suspend.initiator != TRUE)
{
/* remote suspend, notify HAL and await audioflinger to
@@ -604,7 +600,6 @@ static BOOLEAN btif_av_state_started_handler(btif_sm_event_t event, void *p_data
HAL_CBACK(bt_av_callbacks, audio_state_cb,
BTAV_AUDIO_STATE_STOPPED, &(btif_av_cb.peer_bda));
}
-#endif
btif_sm_change_state(btif_av_cb.sm_handle, BTIF_AV_STATE_OPENED);
break;
@@ -612,10 +607,8 @@ static BOOLEAN btif_av_state_started_handler(btif_sm_event_t event, void *p_data
btif_a2dp_on_stopped(&p_av->suspend);
-#ifdef ENABLE_AUDIO_STATE_CB
HAL_CBACK(bt_av_callbacks, audio_state_cb,
BTAV_AUDIO_STATE_STOPPED, &(btif_av_cb.peer_bda));
-#endif
/* if stop was successful, change state to open */
if (p_av->suspend.status == BTA_AV_SUCCESS)