diff options
author | Sangchul Lee <sc11.lee@samsung.com> | 2016-06-17 07:42:46 +0900 |
---|---|---|
committer | Sangchul Lee <sc11.lee@samsung.com> | 2016-06-17 07:43:46 +0900 |
commit | b91394c8ebd927b3ef5f82e48c2877c6dce5930e (patch) | |
tree | 203c7cc6a73d77e341c6ec30e190217dde8d4f38 | |
parent | 8f57054bdf10c9eeffda38115f22f5d707884538 (diff) | |
download | audio-hal-sc7727-b91394c8ebd927b3ef5f82e48c2877c6dce5930e.tar.gz audio-hal-sc7727-b91394c8ebd927b3ef5f82e48c2877c6dce5930e.tar.bz2 audio-hal-sc7727-b91394c8ebd927b3ef5f82e48c2877c6dce5930e.zip |
In case of Voice verb with Bluetooth device, make this device alonesubmit/tizen/20160627.065544submit/tizen/20160623.063229accepted/tizen/mobile/20160629.015840
[Version] 0.1.13
[Profile] Mobile
[Issue Type] Bug Fix
Change-Id: I8dceaf20f49d6153cd2b42d3e56e72cf7c6ba8c0
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
-rw-r--r-- | packaging/audio-hal-sc7727.spec | 2 | ||||
-rw-r--r-- | tizen-audio-impl-ucm.c | 13 |
2 files changed, 13 insertions, 2 deletions
diff --git a/packaging/audio-hal-sc7727.spec b/packaging/audio-hal-sc7727.spec index 9bd0580..984a7b1 100644 --- a/packaging/audio-hal-sc7727.spec +++ b/packaging/audio-hal-sc7727.spec @@ -1,6 +1,6 @@ Name: audio-hal-sc7727 Summary: TIZEN Audio HAL for SC7727 -Version: 0.1.12 +Version: 0.1.13 Release: 0 Group: System/Libraries License: Apache-2.0 diff --git a/tizen-audio-impl-ucm.c b/tizen-audio-impl-ucm.c index 23ce1a0..a15128f 100644 --- a/tizen-audio-impl-ucm.c +++ b/tizen-audio-impl-ucm.c @@ -387,7 +387,18 @@ audio_return_t _ucm_set_devices(audio_hal_t *ah, const char *verb, const char *d __dump_use_case(UCM_PREFIX_CURRENT, old_verb, old_dev_list, old_dev_count, NULL, 0); if (devices) { - for (dev_count = 0; devices[dev_count]; dev_count++); + if (streq(verb, "Voice")) { + /* In case of Voice verb with Bluetooth device, make this device alone */ + for (dev_count = 0; devices[dev_count]; dev_count++) { + if (streq(devices[dev_count], "Bluetooth")) { + devices = &devices[dev_count]; + dev_count = 1; + AUDIO_LOG_DEBUG("Voice verb with Bluetooth device only"); + break; + } + } + } else + for (dev_count = 0; devices[dev_count]; dev_count++); } __dump_use_case(UCM_PREFIX_REQUESTED, verb, devices, dev_count, NULL, 0); |