Jaechul Lee [Wed, 10 Jun 2020 08:34:56 +0000 (17:34 +0900)]
Add mutex to stream_info structure for virtual stream APIs
pthread_mutex is added in stream_info structure for managing a virtual
stream instance and INVAILD_STATE error is returned when
destroy_stream_information is called without destroying a virtual
stream.
[Version] 0.6.7
[Issue Type] BUG(MMFWN-4276)
Change-Id: I4ebac494e5111c2eb53745ca2036706c3ce19769
Signed-off-by: Jaechul Lee <jcsing.lee@samsung.com>
Sangchul Lee [Wed, 20 May 2020 05:24:32 +0000 (14:24 +0900)]
Remove meaningless error converting code
[Version] 0.6.6
[Issue Type] Code cleanup
Change-Id: I38b25758d2bbbdd1c6d1a54114641145f425fb20
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
Sangchul Lee [Fri, 17 Apr 2020 03:50:46 +0000 (12:50 +0900)]
Comply with the Tizen coding rule
[Version] 0.6.5
[Issue Type] Coding convention
Change-Id: I6e76d35b7860f1c9df53bc423a6f3aa124332dfa
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
Sangchul Lee [Mon, 3 Feb 2020 08:03:20 +0000 (17:03 +0900)]
sound_manager_private: Use #define directive for timeout value
Some of cases used with the value of 1000 are also revised to
use the same value of the define.
[Version] 0.6.4
[Issue Type] Revise
Change-Id: Ic0d9ea6d54575739e4c75ece20773c6fd3030059
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
(cherry picked from commit
7b3c55c1ab0e99d3daef9bb93b15bb66eba83ed2)
Sangchul Lee [Fri, 31 Jan 2020 01:54:23 +0000 (10:54 +0900)]
Add new routing API set
Functions are added as below
: sound_manager_set_stream_preemptive_device()
: sound_manager_get_stream_preemptive_device()
This function is to set a device id to streams made by the specific stream type.
Note that it'll affect all the streams belong to the stream type regardless of
process, it should be used carefully.
[Version] 0.6.3
[Issue Type] New feature
Change-Id: I35d902f77d4adc77490b9eacee505a1a1332f882
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
(cherry picked from commit
40ddaaf16b5536ba2e804e33a8974ecc9414b39f)
Seungbae Shin [Mon, 23 Dec 2019 08:13:56 +0000 (17:13 +0900)]
Fix build error due to toolchain upgrade (gcc6->gcc9)
error: '%s' directive argument is null [-Werror=format-overflow=]
[Version] 0.6.2
[Issue Type] Toolchain
Change-Id: I4706f7d338165e786877103cf96fd0073479330a
Sangchul Lee [Wed, 11 Dec 2019 00:00:11 +0000 (09:00 +0900)]
Add support for internal volume API set
[Version] 0.6.1
[Issue Type] New feature
Change-Id: I030a5411bd828f20276e8002f8160412e1b0f1f4
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
Sangchul Lee [Fri, 5 Apr 2019 01:42:31 +0000 (10:42 +0900)]
Add internal API to get the pid of the latest stream
- int sound_manager_get_latest_stream_pid(int stream_type, unsigned int *pid)
[Version] 0.6.0
[Issue Type] New feature
Change-Id: I39013f1bb6297a5b47c3d75e52f12460800c07bb
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
Jeongmo Yang [Thu, 21 Nov 2019 10:23:51 +0000 (19:23 +0900)]
Add invalid state error in _activate_ducking()
[Version] 0.5.46
[Profile] Common
[Issue Type] Update
Change-Id: If734ff442ceb2d0b7807101e81dd5bbe7355b573
Signed-off-by: Jeongmo Yang <jm80.yang@samsung.com>
Jeongmo Yang [Fri, 8 Nov 2019 04:58:09 +0000 (13:58 +0900)]
Change first parameter of _get_ducking_state() to check server connection in it
[Version] 0.5.45
[Profile] Common
[Issue Type] Update
Change-Id: Iaf0136107be17626242fec828253763b1819de75
Signed-off-by: Jeongmo Yang <jm80.yang@samsung.com>
Jeongmo Yang [Wed, 6 Nov 2019 05:08:51 +0000 (14:08 +0900)]
Add new flag to check server disconnection
[Version] 0.5.44
[Profile] Common
[Issue Type] Error handling
Change-Id: I2fae80fc122fc933b37401c45db8c5e665d42c84
Signed-off-by: Jeongmo Yang <jm80.yang@samsung.com>
Jeongmo Yang [Mon, 4 Nov 2019 11:52:39 +0000 (20:52 +0900)]
Set activated volume ratio instead of 1.0 when deactivate ducking
- The audio HAL of TV refers activated volume ratio when deactivate ducking
to distinguish which activated stream is deactivated.
[Version] 0.5.43
[Profile] Common
[Issue Type] Update
Change-Id: I06dd59d7e310913e3f56b2e0c4ef90842c37126d
Signed-off-by: Jeongmo Yang <jm80.yang@samsung.com>
Seungbae Shin [Tue, 22 Oct 2019 09:00:17 +0000 (18:00 +0900)]
fixup! Fix improper function reference
Change-Id: I389a54312c937a193d294f68fb68948ce25ece9f
Sangchul Lee [Mon, 21 Oct 2019 02:55:34 +0000 (11:55 +0900)]
sound_manager_test: Fix Coverity defect
[Version] 0.5.42
[Issue Type] Coverity
Change-Id: I8c24d5700410047509bfbd78092b07312a4145dc
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
Seungbae Shin [Fri, 18 Oct 2019 08:39:07 +0000 (17:39 +0900)]
Fix improper function reference
[Version] 0.5.41
[Issue Type] Document
Change-Id: I7d6b479fb501c703a4224713f9662e5056af45fb
Jeongmo Yang [Tue, 10 Sep 2019 05:58:54 +0000 (14:58 +0900)]
Update some description as suggested by documentation team.
[Version] 0.5.40-1
[Profile] Common
[Issue Type] Update description
Change-Id: Ifa5623c96a8e2e225ed41af915c3e7bbb2c32e1b
Signed-off-by: Jeongmo Yang <jm80.yang@samsung.com>
Sangchul Lee [Wed, 28 Aug 2019 09:09:37 +0000 (18:09 +0900)]
Get preferred device id from server
[Version] 0.5.40
[Issue Type] Improvement
Change-Id: I40e0843d4ca07612b247e825cc373395336e5485
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
Seungbae Shin [Wed, 28 Aug 2019 07:35:43 +0000 (16:35 +0900)]
testsuite : check return value of API properly.
[Version] 0.5.39
[Issue Type] Coverity
Change-Id: I0a9450ca656b64d579591f367be74d15d2a6caf7
Jeongmo Yang [Tue, 27 Aug 2019 05:58:42 +0000 (14:58 +0900)]
Set volume ratio as 1.0 when deactivate ducking
[Version] 0.5.38
[Profile] Common
[Issue Type] Update
Change-Id: I68f8ee43318b5b69460ceec57775ac85f4236994
Signed-off-by: Jeongmo Yang <jm80.yang@samsung.com>
Jeongmo Yang [Wed, 21 Aug 2019 02:14:26 +0000 (11:14 +0900)]
[ACR-1442] Change valid range of ratio for sound_manager_activate_ducking()
[Version] 0.5.37
[Profile] Common
[Issue Type] API change
Change-Id: I17c3aacc7a390b9424d2fb133fda5aa70bc3be86
Signed-off-by: Jeongmo Yang <jm80.yang@samsung.com>
Sangchul Lee [Mon, 19 Aug 2019 07:40:38 +0000 (16:40 +0900)]
Add internal API to set preferred device id
It'll be used in CSharp API. (Tizen.Multimedia.AudioStreamPolicy)
[Version] 0.5.36
[Issue Type] New internal API
Change-Id: Ib5d21b430b411662e151fee1845a57af66f4927c
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
Sangchul Lee [Mon, 12 Aug 2019 03:37:03 +0000 (12:37 +0900)]
fixup! Add new APIs to set or get preferred built-in device
Change-Id: Ia76f7cd745eb7e9b234d72aff1482285d2986795
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
Sangchul Lee [Wed, 7 Aug 2019 07:32:39 +0000 (16:32 +0900)]
sound_manager_test: Exclude a test case for compiling with TIZEN_FEATURE_TV_PROD
sound_manager_set_virtual_stream_volume() test case is excluded.
[Version] 0.5.35
[Issue Type] Testsuite
Change-Id: I4d6cf7b4995a648b8566a926ab2b6bb922b9fd0d
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
Sangchul Lee [Fri, 2 Aug 2019 08:08:40 +0000 (17:08 +0900)]
Move sound_stream_ducking_h definition to CAPI_MEDIA_SOUND_MANAGER_VOLUME_MODULE group
[Version] 0.5.34
[Issue Type] Doxygen
Change-Id: I55c0cc6ebd76b107ec15a2f096f5c3eacacbe2d8
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
Sangchul Lee [Fri, 2 Aug 2019 02:11:21 +0000 (11:11 +0900)]
sound_manager_test: Print device type with string format
[Version] 0.5.33
[Issue Type] Testsuite
Change-Id: I6cf221190eb7f33d2fd24b0874c5e015375bb923
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
Sangchul Lee [Wed, 3 Jul 2019 05:18:35 +0000 (14:18 +0900)]
Add new APIs to set or get preferred built-in device
These new APIs are to set or get a specific built-in device when
the system has multiple devices of the same built-in device type.
When there's only one device for a built-in device type in the system,
nothing will happen even if these functions succeed in operation.
- sound_manager_set_preferred_device
- sound_manager_get_preferred_device
[Version] 0.5.32
[Issue Type] New feature
Change-Id: I7a709462031238de4127d9e6a5087577245f1627
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
Sangchul Lee [Tue, 6 Aug 2019 22:48:51 +0000 (22:48 +0000)]
Revert "Add sound_manager_set_virtual_stream_volume() in sound_manager_internal_tv.h"
This reverts commit
0002193b13dffd30b604307d2cc7ac8cbb7b663c.
Change-Id: I7818daffbbafce8f4b15bde0abcf71f490b3fb6d
jungsup lee [Tue, 6 Aug 2019 05:28:03 +0000 (14:28 +0900)]
Add sound_manager_set_virtual_stream_volume() in sound_manager_internal_tv.h
[Version] 0.5.32
[Issue Type] Bug Fix
Change-Id: I8216dc63483b9c74e99378b3ebf4189f4d895c70
Signed-off-by: jungsup lee <jungsup4.lee@samsung.com>
Jeongmo Yang [Wed, 19 Jun 2019 05:19:42 +0000 (14:19 +0900)]
[ACR-1422] Add new APIs for sound ducking
- sound_manager_create_stream_ducking
- sound_manager_is_ducked
- sound_manager_activate_ducking
- sound_manager_deactivate_ducking
- sound_manager_destroy_stream_ducking
[Version] 0.5.31
[Issue Type] New feature
Change-Id: I69edb909e469a8ce7078a5fe23701856db738b8e
Signed-off-by: Jeongmo Yang <jm80.yang@samsung.com>
Seungbae Shin [Mon, 8 Jul 2019 05:49:49 +0000 (14:49 +0900)]
Add gcov package for line coverage automation
[Version] 0.5.30
[Issue Type] Coverage
Change-Id: I7826a3247240a779f978a6eaac0da842eb697f0e
Seungbae Shin [Mon, 8 Jul 2019 05:48:27 +0000 (14:48 +0900)]
Merge branch 'tizen_line_coverage' into tizen
Change-Id: I44835edc52e068b08c5d126cf52bba481eff09f1
Sangchul Lee [Wed, 3 Jul 2019 05:30:47 +0000 (14:30 +0900)]
Remove unused destructor/constructor block
[Version] 0.5.29
[Issue Type] Code clean-up
Change-Id: I0c5c28b8848bed4f1f8b20cd3d8a04b3094952c1
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
Sangchul Lee [Wed, 3 Jul 2019 05:03:52 +0000 (14:03 +0900)]
Fix wrong description in doxygen
[Version] 0.5.28
[Issue Type] Typo
Change-Id: Ie877d79080ce5899893acfe3b70dd1cd95ab97db
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
Sangchul Lee [Tue, 25 Jun 2019 07:13:00 +0000 (07:13 +0000)]
Merge "Add new device type - SOUND_DEVICE_NETWORK" into tizen
Sangchul Lee [Mon, 24 Jun 2019 05:52:53 +0000 (14:52 +0900)]
fixup! Add new internal stream type - SOUND_STREAM_TYPE_MEDIA_NETWORK_SOURCE
Change-Id: I11edfcf3143c87ebaf74266e4a8aeafd1afd6c9d
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
Sangchul Lee [Tue, 18 Jun 2019 01:44:48 +0000 (10:44 +0900)]
Add new device type - SOUND_DEVICE_NETWORK
SOUND_DEVICE_NETWORK type is newly added to support network audio
devices. Even though there might be different kinds of network
audio protocols, user would be notified by this new device type.
The name property of the device would be a hint to distinguish
each network device.
[Version] 0.5.27
[Issue Type] New feature
Change-Id: I01551e307d7d086b6aac090a7e39ffb20353240c
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
Sangchul Lee [Tue, 18 Jun 2019 01:00:41 +0000 (10:00 +0900)]
Add internal API to set ACM master mode
[Version] 0.5.26
[Issue Type] New feature
Change-Id: Ib144b92e53d5a59f38cae1dab65eb6564197e6ce
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
Sangchul Lee [Tue, 18 Jun 2019 00:43:00 +0000 (09:43 +0900)]
Add new internal stream type - SOUND_STREAM_TYPE_MEDIA_NETWORK_SOURCE
[Version] 0.5.25
[Issue Type] New feature
Change-Id: I53bf840763f1bf127c3478edb4088bd5ecd6e9e1
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
Sangchul Lee [Fri, 10 May 2019 08:00:17 +0000 (17:00 +0900)]
Check non-NULL before g_error_free()
It is added to avoid warning log inside of g_error_free().
[Version] 0.5.24
[Issue Type] Improvement
Change-Id: I3e1d63f8a4bc0e169daeb720eb4a2753a3f04bcc
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
Sangchul Lee [Tue, 23 Apr 2019 07:09:22 +0000 (16:09 +0900)]
Merge branch 'tizen' into tizen_line_coverage
Change-Id: I860bd7c9d8bf82b4dfb2b50ea5bce7ea0fb482d3
Sangchul Lee [Mon, 22 Apr 2019 01:42:49 +0000 (10:42 +0900)]
Add internal API for setting virtual stream volume
[Version] 0.5.23
[Issue Type] New feature
Change-Id: Ia803cdb4c09ceed2de53d577420e44fa2f34320c
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
Sangchul Lee [Wed, 27 Mar 2019 05:59:19 +0000 (14:59 +0900)]
Fix invalid length which is set to strncmp()
[Version] 0.5.22
[Issue Type] test suite
Change-Id: I35e0bbc95f04b7e40d7f23954dac2db6057e6049
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
Sangchul Lee [Fri, 22 Mar 2019 01:44:43 +0000 (10:44 +0900)]
Return error of acquiring/releasing focus in focus watch callback when the previous request is in progress
[Version] 0.5.21
[Issue Type] Enhancement
Change-Id: Ic78f6f13024de8f604570f35ca5e28f8a07f3ee6
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
Sangchul Lee [Thu, 14 Mar 2019 07:57:19 +0000 (16:57 +0900)]
sound_manager_test: Add media compressed stream type to test stream info. creation
[Version] 0.5.20
[Issue Type] Testsuite
Change-Id: I7319d0528ad7a775bce427bff1d0cb207214057a
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
Sangchul Lee [Thu, 14 Feb 2019 08:28:47 +0000 (17:28 +0900)]
Add mute API set for internal use
[Version] 0.5.19
[Issue Type] New feature
Change-Id: I0078859a58d8d6420bf8ca9842165ca5c4d8f339
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
Sangchul Lee [Wed, 13 Feb 2019 02:23:25 +0000 (11:23 +0900)]
Add sound_manager_is_stream_on_device_by_id() for internal use
[Version] 0.5.18
[Issue Type] API
Change-Id: Ied2143e2e098c379f17df2f49e1688f672d45466
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
Sangchul Lee [Wed, 23 Jan 2019 00:53:34 +0000 (09:53 +0900)]
sound_manager_doc: Fix typo
[Version] 0.5.17
[Issue Type] typo
Change-Id: Ic9a9bc41ffb6a2461cb0a64addd66ac211c22e5f
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
Sangchul Lee [Thu, 3 Jan 2019 06:39:44 +0000 (15:39 +0900)]
Merge branch 'tizen' into tizen_line_coverage
Change-Id: I4164f814dce9acd3a384d3d4b7945b19cfccaae7
Seungbae Shin [Fri, 7 Dec 2018 07:54:05 +0000 (16:54 +0900)]
Fix invalid format string
[Version] 0.5.16
[Issue Type] Build
Change-Id: Ibd38654244af29f39bbf2265667428500b77aba9
Sangchul Lee [Tue, 6 Nov 2018 05:41:23 +0000 (14:41 +0900)]
Remove the limitation of stream type with manual route when virtual stream start
[Version] 0.5.15
[Issue Type] Policy
Change-Id: Iae8275822613fd878f0d87e5914093d4451c380b
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
Sangchul Lee [Thu, 25 Oct 2018 07:06:28 +0000 (16:06 +0900)]
Merge branch 'tizen' into tizen_line_coverage
Change-Id: I92241459b8222c8a3d6e685d0ae491a5b5359f75
Sangchul Lee [Wed, 24 Oct 2018 07:43:43 +0000 (16:43 +0900)]
Fix description
[Version] 0.5.14
[Issue Type] Description
Change-Id: I0628f0687e8dbe14aa1b0cdcc4f80f46fa04b383
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
Sangchul Lee [Thu, 18 Oct 2018 04:46:42 +0000 (13:46 +0900)]
Revise location of putting LCOV_EXCL_START/STOP macros and apply LCOV_EXCL_LINE macros to sound_manager_private.c
Change-Id: I054e5afd650590fca7148d935842568e3225ae7a
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
Sangchul Lee [Mon, 8 Oct 2018 02:34:46 +0000 (11:34 +0900)]
Add more LCOV_EXCL_START/STOP macros to sound_manager_private.c #2
Change-Id: I15a5a0a64ba60d0e9cb1643aa4f6f1dd6637fb03
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
Sangchul Lee [Fri, 5 Oct 2018 07:03:04 +0000 (16:03 +0900)]
Add more LCOV_EXCL_START/STOP macros to sound_manager_private.c
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
SeokHoon Lee [Tue, 18 Sep 2018 04:44:09 +0000 (13:44 +0900)]
Add gcov environment
Signed-off-by: SeokHoon Lee <andy.shlee@samsung.com>
Change-Id: I34d80dc365b953f7f5706151fb908f553a3fb68a
Sangchul Lee [Mon, 3 Sep 2018 08:28:47 +0000 (17:28 +0900)]
Add internal APIs for USB devices
These will be used to CSharp API.
[Version] 0.5.13
[Issue Type] New internal API
Change-Id: I09cc7a5049455240e0780dc14c7b8dc985b54827
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
Sangchul Lee [Thu, 9 Aug 2018 07:51:26 +0000 (16:51 +0900)]
Add sound_manager_is_device_running_by_id() for internal usage
It will be used for CSharp API.
[Version] 0.5.12
[Issue Type] New internal API
Change-Id: Iadbda94e2b02fe20d64a0b26845ed6f337604511
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
Sangchul Lee [Tue, 14 Aug 2018 02:46:11 +0000 (11:46 +0900)]
Fix typo in doxygen
[Version] 0.5.11
[Issue Type] Doxygen
Change-Id: I9af57a0a8e47314174be6cdd92252d323dfb03a3
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
Sangchul Lee [Mon, 30 Jul 2018 04:21:17 +0000 (13:21 +0900)]
Add new APIs for USB audio output device
For getting/setting a particular sample format and rate,
a user can use these new APIs below.
sound_manager_get_supported_sample_formats()
sound_manager_set_sample_format()
sound_manager_get_sample_format()
sound_manager_get_supported_sample_rates()
sound_manager_set_sample_rate()
sound_manager_get_sample_rate()
If a user wants to use stream's original sample information
to the USB device without S/W resampling in audio daemon,
these new APIs can be useful.
sound_manager_set_avoid_resampling()
sound_manager_get_avoid_resampling()
A user can set the USB device only for media sound. If set
it true, only media type streams can be routed to the device.
sound_manager_set_media_stream_only()
sound_manager_get_media_stream_only()
[Version] 0.5.10
[Issue Type] New API
Change-Id: I8a6b49539776b56a87cd5b10914d3ded2d01db06
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
Seungbae Shin [Wed, 8 Aug 2018 03:51:29 +0000 (12:51 +0900)]
Fix coverity issues
[Version] 0.5.9
[Issue Type] Coverity
Change-Id: I1b3656a8f50b1635c5f99427b0ca598fa95c4a81
Sangchul Lee [Thu, 26 Jul 2018 03:18:26 +0000 (12:18 +0900)]
Remove menu item which doesn't exist
[Version] 0.5.8
[Issue Type] Testsuite
Change-Id: Ib2365f16f37a08c8a24607f74f298f5ee88aa595
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
Seungbae Shin [Tue, 10 Jul 2018 06:25:36 +0000 (15:25 +0900)]
Fix for improper referencing of deprecated API
[Version] 0.5.7
[Issue Type] Doxygen
Change-Id: I29fc7ec0a60f44d51557c3ffcfab7fe623f1b2a8
Sangchul Lee [Mon, 18 Dec 2017 01:18:12 +0000 (10:18 +0900)]
Revise codes to comply with API changes of libmm-sound
some functions of libmm-sound regarding focus was changed.
[Version] 0.5.6
[Issue Type] API changes of dependency module
Change-Id: Ifd561d5155b652abda2f4b412766b510c765074f
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
Sangchul Lee [Thu, 31 May 2018 00:02:05 +0000 (09:02 +0900)]
Declare deprecation of SOUND_DEVICE_STATE_DEACTIVATED_MASK and SOUND_DEVICE_STATE_ACTIVATED_MASK
This activated/deactivated state concept is not used anymore.
(It is from tizen_4.0 branch)
[Version] 0.5.5
[Issue Type] deprecation
Change-Id: I0305f72bc60d115e815679dad428483bdd29d753
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
Sangchul Lee [Mon, 14 May 2018 06:32:20 +0000 (15:32 +0900)]
Remove unused functions
[Version] 0.5.4
[Issue Type] code clean-up
Change-Id: Ie180c447d0f0fc92fc00cd89c53a8e5eda14189c
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
Seungbae Shin [Mon, 23 Apr 2018 10:13:04 +0000 (19:13 +0900)]
Fix for TV product build macro
[Version] 0.5.3
[Issue Type] Build
Change-Id: I83576b20c88752d449f857bedaa8472fff17e7af
Sangchul Lee [Tue, 26 Sep 2017 01:45:38 +0000 (10:45 +0900)]
Add new APIs to get device state
The running state of a device represents whether an audio stream is routed
to the device or not. User can notice the state by using these new APIs.
- sound_manager_is_device_running()
- sound_manager_add_device_running_changed_cb()
- sound_manager_remove_device_running_changed_cb()
[Version] 0.5.2
[Issue Type] New feature
Change-Id: I2f31356058b4402e5d0814c0bbe994cfd7b21286
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
Sangchul Lee [Tue, 13 Feb 2018 00:15:37 +0000 (09:15 +0900)]
Remove deprecated behavior in sound_manager_get_current_sound_type()
[Version] 0.5.1
[Issue Type] Clean-up
Change-Id: I99da3cb1edda0dd2559f0ef899f6368a3471ed7d
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
Sangchul Lee [Thu, 16 Nov 2017 04:00:52 +0000 (13:00 +0900)]
Remove deprecated APIs declared since Tizen 3.0
[Version] 0.5.0
[Issue Type] Clean-up
Change-Id: I5b33264126f71aeaa289546f10923cf4f145de7d
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
Sangchul Lee [Tue, 17 Oct 2017 09:10:03 +0000 (18:10 +0900)]
Apply macro for excluding lines to increase TC coverage result
[Version] 0.4.24
[Issue Type] TC Coverage
Change-Id: I4186d7ee5be18ef7dcd5014fa4cd7a07934cc70f
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
Sangchul Lee [Thu, 28 Sep 2017 04:34:12 +0000 (13:34 +0900)]
Declare deprecation of device state APIs since tizen 4.0.
- sound_manager_get_device_state()
- sound_manager_add_device_state_changed_cb()
- sound_manager_remove_device_state_changed_cb()
Theses APIs for device state are not related to state of actual streams
which are running on the device. Rather the device state is changed by
session activation globally. It is called 'active device' concept.
As a result, it is not suitable for stream based concept that we seek
since tizen 3.0.
[Version] 0.4.23
[Issue Type] Deprecation
Change-Id: Ia8ab9f5c13689bbd41ae3463240fba90dd0f28df
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
(cherry picked from commit
72fa27d38e32e0c7c09f2c65d50118e22d48149d)
Sangchul Lee [Mon, 4 Sep 2017 01:41:15 +0000 (10:41 +0900)]
Revise dbus error handling codes to be more defensive
[Version] 0.4.22
[Issue Type] Enhancement
Change-Id: I08d99c364881d9252c12c7f607a9be07e8d1a780
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
Sangchul Lee [Tue, 22 Aug 2017 05:27:34 +0000 (14:27 +0900)]
Fix focus acquired state check condition
[Version] 0.4.21
[Issue Type] Enhancement
Change-Id: Ic399e2849a2467b0c933d01491f02cdf3af4ca0e
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
Sangchul Lee [Tue, 22 Aug 2017 05:24:27 +0000 (14:24 +0900)]
Add testcase for getting device state by id
[Version] 0.4.20
[Issue Type] Testcase
Change-Id: I55f9df7579d3bd1551edcbffb48faae067091c67
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
Sangchul Lee [Thu, 10 Aug 2017 10:57:53 +0000 (19:57 +0900)]
Add a mutex lock for focus callback
[Version] 0.4.19
[Issue Type] Enhancement
Change-Id: Iad902c6c3d44ac336ac37e4813d1124ac1a2b9d4
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
Sangchul Lee [Fri, 4 Aug 2017 02:08:35 +0000 (11:08 +0900)]
Add new API to remove all devices from stream information handle
[Version] 0.4.18
[Issue Type] New API
Change-Id: I3c918cf712e3bcbddb79fe3613cb2e06e0a6e55e
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
Sangchul Lee [Mon, 31 Jul 2017 06:39:11 +0000 (15:39 +0900)]
Fix SVACE issues
Some range checking codes that are "always false which may be caused by a logical error" are fixed.
[Version] 0.4.17
[Issue Type] Enhancement
Change-Id: I13d800f1e90b2fde67a3eac2fc798ca3c453c9f5
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
Sangchul Lee [Wed, 28 Jun 2017 02:13:42 +0000 (11:13 +0900)]
Add support for more filters
SOUND_FILTER_LOW_PASS, SOUND_FILTER_HIGH_PASS, SOUND_FILTER_DELAY are added.
Added to check if the preset is valid for filter.
[Version] 0.4.16
[Issue Type] Enhancement
Change-Id: I124f7f1aac227b0fc03fb5a733acedc2f24f0705
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
Sangchul Lee [Wed, 28 Jun 2017 02:22:29 +0000 (11:22 +0900)]
Add new internal APIs to sound_manager_internal_tv.h
[Version] 0.4.15
[Issue Type] Header
Change-Id: I84bf5e3f28ed7a71801d28ce348003eb06fddd83
Sangchul Lee [Wed, 21 Jun 2017 08:11:13 +0000 (17:11 +0900)]
Add new internal stream type for compressed media
[Version] 0.4.14
[Issue Type] New feature
Change-Id: I50c26bc0a1c7cbf401d181bb88a6338509341ae3
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
Sangchul Lee [Fri, 16 Jun 2017 00:56:04 +0000 (09:56 +0900)]
Add new API to deliver focus to another stream info handle without invoking focus(watch) state changed callback
[Version] 0.4.13
[Issue Type] New feature
Change-Id: If2422f28fd1148fd2885fde160efa1e38cabdff8
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
Sangchul Lee [Tue, 20 Jun 2017 02:20:45 +0000 (11:20 +0900)]
Add mutex lock to protect focus state of stream information handle
[Version] 0.4.12
[Issue Type] Enhancement
Change-Id: Iad37b8f3c94300615bc9aaac2bb30261b79f2084
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
Sangchul Lee [Mon, 19 Jun 2017 08:58:30 +0000 (17:58 +0900)]
Add mutex lock after init to SM_ENTER_CRITICAL_SECTION_WITH_RETURN macro
Initialize mutex in case of declaring.
[Version] 0.4.11
[Issue Type] Enhancement
Change-Id: I5ca5c4d20ae4d37e00de43393d428c4301b62ba2
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
Sangchul Lee [Thu, 15 Jun 2017 07:43:32 +0000 (16:43 +0900)]
Conditions for checking focus state is revised considering that it could be called within focus callback
[Version] 0.4.10
[Issue Type] Fix bug and enhancement
Change-Id: Ibb74305e23fc16745adb26ac5103e0bdabdc22e4
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
Sangchul Lee [Wed, 7 Jun 2017 02:03:29 +0000 (11:03 +0900)]
Modifiy description
It is the revert commit of
e0b2bff97347db2af56426c1727020dde0c3e41d(Revise error description).
And added more comments for tizen 4.0.
[Version] 0.4.9
[Issue Type] Description
Change-Id: I0beb6ca1d74fceb6b1bc967867e2f36cc8e522f0
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
Sangchul Lee [Mon, 29 May 2017 02:44:16 +0000 (11:44 +0900)]
Add sound_manager_acquire_focus_all() and sound_manager_release_focus_all()
These functions do not return error even though one or all of focuses
have already been released or acquired.
These are intended to be used to acquire all focuses or release all focuses
with checking its state more loosely.
[Version] 0.4.8
[Issue Type] New API
Change-Id: Icb1757bef790f01875ef8d97cf07026966122b8e
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
Sangchul Lee [Thu, 15 Jun 2017 05:48:05 +0000 (14:48 +0900)]
Add new internal APIs to get device vendor id/product id
- sound_manager_get_device_vendor_id()
- sound_manager_get_device_product_id()
[Version] 0.4.7
[Issue Type] New internal API
Change-Id: I22979338683b1d0b5462984f2bf7f2d38ccfba82
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
Sangchul Lee [Wed, 14 Jun 2017 02:42:05 +0000 (11:42 +0900)]
fixup! Check state before acquiring/releasing focus
[Version] 0.4.6
[Issue Type] Bug fix
Change-Id: Ib55f011d9968f28b58058887bbd966001415b5b1
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
Sangchul Lee [Tue, 13 Jun 2017 08:43:27 +0000 (17:43 +0900)]
Add new internal stream type - SOUND_STREAM_TYPE_VOICE_RECOGNITION_SERVICE
It is added to be used in a daemon process to provide voice recognition service.
[Version] 0.4.5
[Issue Type] New enum
Change-Id: I51cdb00e1216c0f90f02fb7fcb8ff9f716d4b327
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
Sangchul Lee [Thu, 8 Jun 2017 02:18:05 +0000 (11:18 +0900)]
fixup! Add new internal APIs to add/remove device id to stream_info and to get device state by id
Remove wrong parameter checking codes.
Fix sound_manager_test to test new API properly.
[Version] 0.4.4
[Issue Type] Bug fix
Change-Id: I1808e6406fb622df767febc6604cc07c91b68be1
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
Sangchul Lee [Thu, 1 Jun 2017 08:23:34 +0000 (17:23 +0900)]
Add new internal APIs to add/remove device id to stream_info and to get device state by id
- sound_manager_add_device_id_for_stream_routing()
- sound_manager_remove_device_id_for_stream_routing()
- sound_manager_get_device_state_by_id()
[Version] 0.4.3
[Issue Type] New internal API
Change-Id: Ic3943ba95ccf0d121d1f7c3c47086ab4ac59b698
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
Sangchul Lee [Tue, 16 May 2017 04:52:52 +0000 (13:52 +0900)]
Revise error description
Remove SOUND_MANAGER_ERROR_INVALID_OPERATION error type of
sound_manager_acquire_focus() and sound_manager_release_focus().
[Version] 0.4.2
[Issue Type] Enhancement
Change-Id: I969ae48294598ce61ba09aed9293a8d12a386eec
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
Sangchul Lee [Fri, 3 Mar 2017 07:54:51 +0000 (16:54 +0900)]
Check state before acquiring/releasing focus
[Version] 0.4.1
[Issue Type] Enhancement
Change-Id: I9d2b200497b625eab7016216732d189926f4b376
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
Sangchul Lee [Thu, 11 May 2017 03:59:52 +0000 (12:59 +0900)]
Revise error type in case of error of Dbus method in _set_manual_route_info()
[Version] 0.3.114
[Issue Type] Enhancement
Change-Id: Iae738484158740bf0f694a23c5f15c8850e0d12d
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
Sangchul Lee [Tue, 2 May 2017 02:14:02 +0000 (11:14 +0900)]
Merge branch 'tizen_3.0' into tizen
Change-Id: I5340031f35f703870c7f46e118ebd2559e58e6c4
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
Sangchul Lee [Wed, 26 Apr 2017 07:58:28 +0000 (16:58 +0900)]
Fix session interrupted callback in case of SOUND_SESSION_INTERRUPTED_BY_EARJACK_UNPLUG
Added to check pulseaudio stream information whether it invokes user callback or not.
The invoking condition complies with legacy session policy.
[Version] 0.3.113
[Profile] Common
[Issue Type] Backward compatibility
Change-Id: I10bd367ecbc6670a0b9b1dd220ba556d6cb2d846
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
Seungbae Shin [Wed, 19 Apr 2017 13:15:53 +0000 (22:15 +0900)]
Fix SVACE defect
[Version] 0.3.110
[Profile] Common
[Issue Type] Security
Change-Id: I4461f459392003077658fb51cb3081442c09b433
Sangchul Lee [Tue, 18 Apr 2017 01:31:54 +0000 (10:31 +0900)]
Fix memory leak in sound_manager_get_current_playback[recording]_focus()
[Version] 0.3.112
[Profile] Common
[Issue Type] Memory leak
Change-Id: I0462f443d453e4c5331cad83c855f82e69c68698
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
Sangchul Lee [Fri, 14 Apr 2017 02:49:40 +0000 (11:49 +0900)]
Fix to release internal focus of voip session when getting back to another session from the voip session
focus state watch callback will be called if the voip session is changed to another session
[Version] 0.3.111
[Profile] Common
[Issue Type] Bug fix
Change-Id: I9c3dbd1372360e4d302dc9c8e87a80260b8e609d
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>