From: Jeongho Mok Date: Mon, 5 Dec 2016 04:26:04 +0000 (+0900) Subject: Change bt to bt-sco X-Git-Tag: accepted/tizen/4.0/unified/20170816.011802^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=eaea5512a5d5ab475c7d04756b62dc7c6faf19f3;p=platform%2Fadaptation%2Fnexell%2Faudio-hal-alc5658.git Change bt to bt-sco [Version] 0.2.24 [Profile] Common [Issue Type] Code Enhancement Change-Id: I65d09ed90eff77e2c0c135c688f9893166ef6de8 --- diff --git a/packaging/audio-hal-alc5658.spec b/packaging/audio-hal-alc5658.spec index 74a44b8..528fa6f 100644 --- a/packaging/audio-hal-alc5658.spec +++ b/packaging/audio-hal-alc5658.spec @@ -1,6 +1,6 @@ Name: audio-hal-alc5658 Summary: TIZEN Audio HAL for ALC5658 -Version: 0.2.23 +Version: 0.2.24 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;