From 774dc88f49dfbf0b4286c242fbf43030e60a5dd5 Mon Sep 17 00:00:00 2001 From: Sangchul Lee Date: Fri, 7 Oct 2016 11:42:36 +0900 Subject: [PATCH] Disable focus feature of the radio stream Since radio stream type is used in radio framework and they make a focus handle for ASM backward compatibility by using mm-sound API directly, it is not needed anymore. [Version] 0.3.72 [Profile] Common [Issue Type] Feature enhancement Change-Id: I657ebbcffa104d29daa8271f120dfb8ae672382f --- packaging/capi-media-sound-manager.spec | 2 +- src/sound_manager_private.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/packaging/capi-media-sound-manager.spec b/packaging/capi-media-sound-manager.spec index 7cd6d99..1635ec0 100755 --- a/packaging/capi-media-sound-manager.spec +++ b/packaging/capi-media-sound-manager.spec @@ -1,6 +1,6 @@ Name: capi-media-sound-manager Summary: Sound Manager library -Version: 0.3.71 +Version: 0.3.72 Release: 0 Group: Multimedia/API License: Apache-2.0 diff --git a/src/sound_manager_private.c b/src/sound_manager_private.c index ac259d9..71579c5 100644 --- a/src/sound_manager_private.c +++ b/src/sound_manager_private.c @@ -207,6 +207,7 @@ void _set_focus_availability(sound_stream_info_s *stream_info) return; } if (!strncmp(stream_info->stream_type, "solo", SOUND_STREAM_TYPE_LEN) || + !strncmp(stream_info->stream_type, "radio", SOUND_STREAM_TYPE_LEN) || !strncmp(stream_info->stream_type, "loopback-mirroring", SOUND_STREAM_TYPE_LEN)) { stream_info->is_focus_unavailable = true; LOGI("this stream_type[%s] does not support focus", stream_info->stream_type); -- 2.7.4