From ad212be8bd7390ac004942302c5aa3d91e64401d Mon Sep 17 00:00:00 2001 From: Jeongho Mok Date: Mon, 5 Dec 2016 13:33:18 +0900 Subject: Change bt to bt-sco [Version] 0.1.9 [Profile] Common [Issue Type] Code Enhancement Change-Id: If82e9c6516f0454ced74bbc7e140503d3a8380aa (cherry picked from commit ef0132ba1dcafd64e4068c4d30b231c9fd51b8da) --- packaging/audio-hal-wm1831.spec | 2 +- tizen-audio-routing.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packaging/audio-hal-wm1831.spec b/packaging/audio-hal-wm1831.spec index 263fc4e..42655a8 100644 --- a/packaging/audio-hal-wm1831.spec +++ b/packaging/audio-hal-wm1831.spec @@ -1,6 +1,6 @@ Name: audio-hal-wm1831 Summary: TIZEN Audio HAL for WM1831 -Version: 0.1.8 +Version: 0.1.9 Release: 0 Group: System/Libraries License: Apache-2.0 diff --git a/tizen-audio-routing.c b/tizen-audio-routing.c index 513384e..8be716b 100644 --- a/tizen-audio-routing.c +++ b/tizen-audio-routing.c @@ -61,7 +61,7 @@ static uint32_t __convert_device_string_to_enum(const char* device_str, uint32_t device = AUDIO_DEVICE_OUT_RECEIVER; } else if ((!strncmp(device_str, "audio-jack", MAX_NAME_LEN)) && (direction == AUDIO_DIRECTION_OUT)) { device = AUDIO_DEVICE_OUT_JACK; - } else if ((!strncmp(device_str, "bt", MAX_NAME_LEN)) && (direction == AUDIO_DIRECTION_OUT)) { + } else if ((!strncmp(device_str, "bt-sco", MAX_NAME_LEN)) && (direction == AUDIO_DIRECTION_OUT)) { device = AUDIO_DEVICE_OUT_BT_SCO; } else if (!strncmp(device_str, "aux", MAX_NAME_LEN)) { device = AUDIO_DEVICE_OUT_AUX; @@ -71,7 +71,7 @@ static uint32_t __convert_device_string_to_enum(const char* device_str, uint32_t device = AUDIO_DEVICE_IN_MAIN_MIC; } else if ((!strncmp(device_str, "audio-jack", MAX_NAME_LEN)) && (direction == AUDIO_DIRECTION_IN)) { device = AUDIO_DEVICE_IN_JACK; - } else if ((!strncmp(device_str, "bt", MAX_NAME_LEN)) && (direction == AUDIO_DIRECTION_IN)) { + } else if ((!strncmp(device_str, "bt-sco", MAX_NAME_LEN)) && (direction == AUDIO_DIRECTION_IN)) { device = AUDIO_DEVICE_IN_BT_SCO; } else { device = AUDIO_DEVICE_NONE; -- cgit v1.2.3