Fix the code for AVC mode 25/225325/1 submit/tizen/20200220.012925
authorDoHyun Pyun <dh79.pyun@samsung.com>
Wed, 19 Feb 2020 06:20:09 +0000 (15:20 +0900)
committerDoHyun Pyun <dh79.pyun@samsung.com>
Wed, 19 Feb 2020 06:20:09 +0000 (15:20 +0900)
Change-Id: I566f6908529fc23c46c3636f68935cf02764c899
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
src/bluetooth-audio.c
test/bt_unit_test.h

index da5d103..2e9b116 100644 (file)
@@ -381,7 +381,7 @@ int bt_audio_is_avc_activated(bool *activated)
        BT_CHECK_AUDIO_INIT_STATUS();
        BT_CHECK_INPUT_PARAMETER(activated);
 
-       ret = bluetooth_audio_get_absolute_volume((unsigned int *)activated);
+       ret = bluetooth_audio_is_avc_activated(activated);
        ret = _bt_get_error_code(ret);
 
        if (BT_ERROR_NONE != ret)
index 76d9ad7..e41dcf0 100644 (file)
@@ -211,15 +211,6 @@ typedef enum {
        BT_UNIT_TEST_FUNCTION_AUDIO_DISCONNECT,
        BT_UNIT_TEST_FUNCTION_AUDIO_SINK_CONNECT,
        BT_UNIT_TEST_FUNCTION_AUDIO_SINK_DISCONNECT,
-       BT_UNIT_TEST_FUNCTION_AUDIO_SET_ABSOLUTE_VOLUME,
-       BT_UNIT_TEST_FUNCTION_AUDIO_GET_ABSOLUTE_VOLUME,
-       BT_UNIT_TEST_FUNCTION_AUDIO_IS_AVC_ACTIVATED,
-       BT_UNIT_TEST_FUNCTION_AUDIO_SET_ABSOLUTE_VOLUME_CHANGED_CB,
-       BT_UNIT_TEST_FUNCTION_AUDIO_UNSET_ABSOLUTE_VOLUME_CHANGED_CB,
-       BT_UNIT_TEST_FUNCTION_AUDIO_SET_AVC_STATUE_CHANGED_CB,
-       BT_UNIT_TEST_FUNCTION_AUDIO_UNSET_AVC_STATUE_CHANGED_CB,
-       BT_UNIT_TEST_FUNCTION_AUDIO_SET_CONNECTION_STATE_CHANGED_CB,
-       BT_UNIT_TEST_FUNCTION_AUDIO_UNSET_CONNECTION_STATE_CHANGED_CB,
        BT_UNIT_TEST_FUNCTION_AG_OPEN_SCO,
        BT_UNIT_TEST_FUNCTION_AG_CLOSE_SCO,
        BT_UNIT_TEST_FUNCTION_AG_IS_SCO_OPENED,
@@ -241,6 +232,15 @@ typedef enum {
        BT_UNIT_TEST_FUNCTION_AG_SWITCH_HEADSET,
        BT_UNIT_TEST_FUNCTION_A2DP_SOURCE_ROLE,
        BT_UNIT_TEST_FUNCTION_A2DP_SINK_ROLE,
+       BT_UNIT_TEST_FUNCTION_AUDIO_SET_ABSOLUTE_VOLUME,
+       BT_UNIT_TEST_FUNCTION_AUDIO_GET_ABSOLUTE_VOLUME,
+       BT_UNIT_TEST_FUNCTION_AUDIO_IS_AVC_ACTIVATED,
+       BT_UNIT_TEST_FUNCTION_AUDIO_SET_ABSOLUTE_VOLUME_CHANGED_CB,
+       BT_UNIT_TEST_FUNCTION_AUDIO_UNSET_ABSOLUTE_VOLUME_CHANGED_CB,
+       BT_UNIT_TEST_FUNCTION_AUDIO_SET_AVC_STATUE_CHANGED_CB,
+       BT_UNIT_TEST_FUNCTION_AUDIO_UNSET_AVC_STATUE_CHANGED_CB,
+       BT_UNIT_TEST_FUNCTION_AUDIO_SET_CONNECTION_STATE_CHANGED_CB,
+       BT_UNIT_TEST_FUNCTION_AUDIO_UNSET_CONNECTION_STATE_CHANGED_CB,
        BT_UNIT_TEST_FUNCTION_AG_IS_WBS_MODE,
        BT_UNIT_TEST_FUNCTION_AG_SET_VENDOR_CMD_CB,
        BT_UNIT_TEST_FUNCTION_AG_UNSET_VENDOR_CMD_CB,