projects
/
platform
/
core
/
connectivity
/
bluetooth-frwk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Reduce the predefined logic (PredefinedPreprocessor)
[platform/core/connectivity/bluetooth-frwk.git]
/
bt-service
/
services
/
audio
/
a2dp_src
/
bt-service-a2dp-src.c
diff --git
a/bt-service/services/audio/a2dp_src/bt-service-a2dp-src.c
b/bt-service/services/audio/a2dp_src/bt-service-a2dp-src.c
index
68e3342
..
4a99dc9
100644
(file)
--- a/
bt-service/services/audio/a2dp_src/bt-service-a2dp-src.c
+++ b/
bt-service/services/audio/a2dp_src/bt-service-a2dp-src.c
@@
-111,10
+111,8
@@
static void __bt_handle_av_connected_state(bluetooth_device_address_t *address)
/* Add data from the connected list */
_bt_add_headset_to_list(BT_AUDIO_A2DP, BT_STATE_CONNECTED, addr);
/* Add data from the connected list */
_bt_add_headset_to_list(BT_AUDIO_A2DP, BT_STATE_CONNECTED, addr);
-#ifdef TIZEN_FEATURE_BT_AVC_TARGET
/* Send the information to Absolute Volume Controller */
_bt_audio_handle_a2dp_state_changed(addr, true);
/* Send the information to Absolute Volume Controller */
_bt_audio_handle_a2dp_state_changed(addr, true);
-#endif
/* Delete waiting device data if present */
wait_device = _bt_get_audio_wait_data();
/* Delete waiting device data if present */
wait_device = _bt_get_audio_wait_data();
@@
-199,10
+197,8
@@
static void __bt_handle_av_disconnected_state(bluetooth_device_address_t *addres
/* Remove data from the connected list */
_bt_remove_headset_from_list(BT_AUDIO_A2DP, addr);
/* Remove data from the connected list */
_bt_remove_headset_from_list(BT_AUDIO_A2DP, addr);
-#ifdef TIZEN_FEATURE_BT_AVC_TARGET
/* Send the information to Absolute Volume Controller */
_bt_audio_handle_a2dp_state_changed(addr, false);
/* Send the information to Absolute Volume Controller */
_bt_audio_handle_a2dp_state_changed(addr, false);
-#endif
_bt_connection_manager_set_state(addr, BLUETOOTH_EVENT_AV_DISCONNECTED);
_bt_connection_manager_set_state(addr, BLUETOOTH_EVENT_AV_DISCONNECTED);