Seungbae Shin [Tue, 29 Dec 2015 10:52:49 +0000 (19:52 +0900)]
Modify license
Change-Id: I80c9daac57918597d2767867c3aa1ca8084c74a0
Mok Jeongho [Wed, 16 Dec 2015 08:31:55 +0000 (17:31 +0900)]
Remove unnecessary code
[Version] 5.0-53
[Profile] Common
[Issue Type] Code clean-up
Change-Id: I9fcdd4d2a01595cfc655260c7e64ac6b7411bc4e
Mok Jeongho [Wed, 16 Dec 2015 07:53:38 +0000 (16:53 +0900)]
Do not abort on EAGAIN of snd_pcm_writei in alsa-sink
[Version] 5.0-52
[Profile] Common
[Issue Type] Fix Bug
Change-Id: I13fb9634ff61972298510a432f8a1c9f275ab6ae
Seungbae Shin [Mon, 14 Dec 2015 02:54:28 +0000 (11:54 +0900)]
[Security] remove "User" exec-label from manifest to run as "System" domain
Change-Id: Ic7442d1ad06fe6a097679b9f621cc371008ef2b8
Seungbae Shin [Thu, 10 Dec 2015 11:39:28 +0000 (20:39 +0900)]
[Security] return security error properly & revise cynara code
Change-Id: I6c83acc03f96fd5c81dc3a1b7ef0d8d9933e6424
Mok Jeongho [Wed, 2 Dec 2015 08:22:23 +0000 (17:22 +0900)]
Do not check privilege on virtual stream.
[Version] 5.0-50
[Profile] Common
[Issue Type] Fix Bug
Change-Id: I34ef8aaed5b1f7a8e431d57d9b1ab61433f50253
Seungbae Shin [Tue, 24 Nov 2015 02:57:27 +0000 (11:57 +0900)]
Remove tdb dependancy
Let pulseaudio use default(simple) database backend.
Change-Id: I37be4305a85654ebb2ab13ebead9c62c5ffb3426
Oskar Świtalski [Mon, 19 Oct 2015 07:24:29 +0000 (09:24 +0200)]
Apply cynara privilege checks
Check following privileges:
"http://tizen.org/privilege/volume.set"
"http://tizen.org/privilege/recorder"
Change-Id: I3ee682cef72dd8e47bd33cd5bdd2fe2100a7d9f0
Signed-off-by: Oskar Świtalski <o.switalski@samsung.com>
Seonmi Jin [Thu, 12 Nov 2015 05:20:34 +0000 (14:20 +0900)]
module-alsa: Removed dependency of tizen-audio.h in the module-alsa
[Version] 5.0-48
[Profile] Common
Change-Id: I2e5567a5c329a7880f79aa2e65e035a6c4221342
Signed-off-by: Seonmi Jin <seonmi.jin@samsung.com>
Seungbae Shin [Mon, 2 Nov 2015 08:24:43 +0000 (17:24 +0900)]
Modify json pc dependancy due to json version upgrade
[Version] 5.0-47
[Profile] Common
[Issue Type] External
Change-Id: I6fec6c018274c9d5dd5165843a712c3f4de6f7ff
Sangchul Lee [Mon, 19 Oct 2015 01:44:18 +0000 (10:44 +0900)]
hal: modify tizen-audio.h
[Version] 5.0-46
[Profile] Common
[Issue Type] API modification
Change-Id: I4b3168ca4c8f439f1aa767b74e5fb62c54440b2e
KimJeongYeon [Thu, 15 Oct 2015 07:09:30 +0000 (16:09 +0900)]
hal: tizenaudio reference sink / source
[Version] 5.0-45
[Profile] Common
[Issue Type] Features
[Dependency module] NA
[Dependency commit] NA
[Comment]
Signed-off-by: KimJeongYeon <jeongyeon.kim@samsung.com>
Change-Id: I11e064bb684f8d912e72c853c1ea151e4d54450d
Sangchul Lee [Tue, 13 Oct 2015 12:37:54 +0000 (21:37 +0900)]
Code clean-up and remove ext-policy feature (no use anymore)
[Version] 5.0-44
[Profile] Common
Change-Id: I0c13d470daa203d19b25b122226cec4387789671
Sangchul Lee [Tue, 6 Oct 2015 08:14:54 +0000 (17:14 +0900)]
Add variable for checking if it uses internal codec in sink/source
[Version] 5.0-43
[Profile] Common
Change-Id: If5d0e98566a78321b0df433d2f7841b3602f5520
Sangchul Lee [Fri, 25 Sep 2015 06:36:44 +0000 (15:36 +0900)]
Include combine-sink/null-source to pulseaudio packacge
[Version] 5.0-42
[Profile] Common
Change-Id: I7caca58a17b71ff28861e8450c532d9acc9cad41
Seonmi Jin [Fri, 18 Sep 2015 08:41:08 +0000 (17:41 +0900)]
Removed modules regarding tizen platform
move to pulseaudio-modules-tizen pkg
[Version] 5.0-41
[Profile] Common
[Dependency module] pulseaudio-modules-tizen
[Dependency commit]
d4d9b738bb1645f13a89bab176321a7fe525073c
Change-Id: I395fad1e6f950eedc3c4545d49914ca674169418
Signed-off-by: Seonmi Jin <seonmi.jin@samsung.com>
Mok Jeongho [Wed, 16 Sep 2015 06:23:43 +0000 (15:23 +0900)]
device-manager set/get state with direction
Change-Id: I259d1ed6d3b36c90ea1e2d1900aa8b40c87e2b21
Seonmi Jin [Wed, 9 Sep 2015 06:19:39 +0000 (15:19 +0900)]
build install pulsecore headers
This is for building out-of-tree modules
Original Patch
https://github.com/mer-packages/pulseaudio/blob/master/rpm/1002-build-Install-pulsecore-headers.patch
[Version] 5.0-39
[Profile] Common
Change-Id: I7f2cf28a500ea36e20a470e96b97d4881114d4db
Signed-off-by: Seonmi Jin <seonmi.jin@samsung.com>
Mok Jeongho [Wed, 9 Sep 2015 08:06:55 +0000 (17:06 +0900)]
notify device disconnection before device-item release sink/source
[Version] 5.0-39
[Profile] Common
[Issue Type] bug fix
Originally, device disconnection notification is sent after
device-item/profile-item throw away its unlinked sink or source.
(exactly, not unlinked state, because this job is done when sink_unlink_hook callback called
, which is called before doing finalize jobs and making it unlinked state)
But this can be problem when someone want to access to device-item's sink
on device disconnected hook callback. (ex. for get sink-input of that sink)
So notification of device disconnection timing is moved before
release sink/source.
Change-Id: I06e7d3030403e899d24f81ab0ef6f9b1bc7dd280
Signed-off-by: Mok Jeongho <jho.mok@samsung.com>
Sangchul Lee [Tue, 8 Sep 2015 07:48:58 +0000 (16:48 +0900)]
policy: Fix seg.fault caused by calling pa_streq() with null
[Version] 5.0-38
[Profile] Common
[Issue Type] bug fix
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
Change-Id: I33ad9cd9fa0384fd83a7f416aed8a328a619365c
Mok Jeongho [Thu, 3 Sep 2015 03:45:09 +0000 (12:45 +0900)]
Replace strcmp with pa_streq in device-manager
[Version] 5.0-37
[Profile] Common
[Issue TypeB] Code Enhancement
Change-Id: I08275117e4991bb3ca25d6c0ae05bf5e1dba8c1a
Mok Jeongho [Tue, 1 Sep 2015 07:35:00 +0000 (16:35 +0900)]
enable udev with usb only
[Version] 5.0-36
[Profile] Common
[Issue TypeB] Bug Fix
Change-Id: Id77715dae5423529d44c64f87215b30358946feb
Mok Jeongho [Mon, 31 Aug 2015 05:23:15 +0000 (14:23 +0900)]
Fix bug when reference member of sink/source with PA_DEVICE
[Version] 5.0-35
[Profile] Common
[Issue Type] Bug Fix
Change-Id: I35baa4ccafb88c187a771d9814f818c79b21c10d
Sangchul Lee [Wed, 5 Aug 2015 02:03:47 +0000 (11:03 +0900)]
policy: Support master volume level
It makes possible to control overall volumes regardless of the volume type of streams.
[Version] 5.0-34
[Profile] Common
[Issue Type] New feature
Change-Id: If0832de4e8aa8b3d0fa5571780cc41e2ffc4e8e5
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
Sangchul Lee [Thu, 13 Aug 2015 07:22:39 +0000 (16:22 +0900)]
sound-player: Read data from pipe with non-blocking mode
When the client request comes from pipe, it calls read function with non-blocking mode.
It leads to avoid blocking of the context even if the pipe does not work well.
Fix bug for invalid check routine of the return value.
[Version] 5.0-33
[Profile] Common
[Issue Type] Enhance codes
Change-Id: Id62ef8a2f867d21ffaf704577246b96029a67191
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
Sangchul Lee [Tue, 11 Aug 2015 10:18:51 +0000 (19:18 +0900)]
policy: Add skip routine for the specific name of a stream
There are streams that need to be skipped processing in stream-manager.
Fix bug regarding setting device state in module-policy.c.
[Version] 5.0-32
[Profile] Common
[Issue Type] Enhance codes
Change-Id: Ib95f60f14e6e7098561cf9c3277b97dca225cb46
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
Mok Jeongho [Fri, 7 Aug 2015 07:30:17 +0000 (16:30 +0900)]
device-manager : remove build warning
[Version] 5.0-31
[Profile] Common
[Issue Type] Remove Warning
Change-Id: I33e73c68c5ce78e6c56a2fbcf3d5cdbae98c6a72
Seungbae Shin [Mon, 10 Aug 2015 08:02:04 +0000 (17:02 +0900)]
Disable "XDG standard for the runtime dir"
Change-Id: I0e1174dde0e8a75a611ab0b5ca8de0a708d5f02e
Sangchul Lee [Fri, 7 Aug 2015 11:28:57 +0000 (20:28 +0900)]
policy: Apply the stream focus status that is used to determine the audio routing
Keep the routing of an stream if it has got a focus(playback/capture) even if any stream tries to play.
Code clean-up.
[Version] 5.0-29
[Profile] Common
[Issue Type] Enhance feature
Change-Id: I6b801c0c46c8dce1bef88d46bbd3dd31b04578c0
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
KimJeongYeon [Thu, 30 Jul 2015 08:23:07 +0000 (17:23 +0900)]
policy: pulseaudio changed latency type to string
[Version] 5.0
[Profile] Common
[Issue Type] Features
[Dependency module] NA
[Dependency commit] NA
[Comment]
Signed-off-by: KimJeongYeon <jeongyeon.kim@samsung.com>
Change-Id: Ied51259b24c0be5eb82da65efaf2f727c4e10a28
Sangchul Lee [Mon, 27 Jul 2015 12:02:41 +0000 (21:02 +0900)]
policy/sound-player: Remove build warnings
[Version] 5.0-27
[Profile] Common
[Issue Type] Code clean-up
Change-Id: Ia299b8fb764c34f2bf53af34347c193c4f34bbf1
Sangchul Lee [Mon, 27 Jul 2015 12:05:16 +0000 (21:05 +0900)]
policy: Include omitted header
[Version] 5.0-26
[Profile] Common
[Issue Type] Fix bug
Change-Id: I6a804eba891dc1795c1822f6bbad4ebd55d8df85
Mok Jeongho [Fri, 24 Jul 2015 01:20:22 +0000 (10:20 +0900)]
Fix code for earjack connection interface changed.
[Version] 5.0-24
[Profile] Common
[Issue Type] Fix bug
Change-Id: Iea1798587865b2d503fc8a7cf6485f34ca191c78
Signed-off-by: Mok Jeongho <jho.mok@samsung.com>
Sangchul Lee [Fri, 24 Jul 2015 03:08:03 +0000 (12:08 +0900)]
policy: Add channel-map information to the stream (in sink-input new callback)
Fix bug - pa_sink_input_new() failed due to the lack of channel-map information whereas the volume channel is set.
[Version] 0.5-24
[Profile] Common
[Issue Type] Fix bug
Change-Id: I3be247e78c528ab2c53227a269b6f784a196ab62
jungsup lee [Fri, 22 May 2015 04:09:15 +0000 (13:09 +0900)]
Bug fix : pulseaudio crash when load module-alsa-card
In case of alsa-ucm is not available for deteched alsa-card(ex. usb devices)
Pulseaudio is crashed when module-alsa-card is loading
[Version] 4.0.186
[Profile] Common
[Issue Type] Fix bug
Change-Id: Ib3974be5dc5a350d8f4498f54773e6b864bdec80
Signed-off-by: jungsup lee <jungsup4.lee@samsung.com>
Jeongho Mok [Mon, 13 Jul 2015 08:47:22 +0000 (17:47 +0900)]
Fix crash, and some debugging code
[Version] 0.5-23
[Profile] Common
[Issue Type] crash
Change-Id: Icf792dc017950701b3acb1f6df36273dd695ef22
Signed-off-by: Jeongho Mok <jho.mok@samsung.com>
Sangchul Lee [Wed, 15 Jul 2015 05:53:16 +0000 (14:53 +0900)]
sound-player: Support EOS signal
Send the end of stream dbus signal when the stream played by dbus method(SimplePlay/SamplePlay) is finished
[Version] 0.5-22
[Profile] Common
[Issue Type] feature enhancement
Change-Id: I42cf7dd2630b90b14edf5ee02d5041851e954678
Sangchul Lee [Wed, 15 Jul 2015 01:23:41 +0000 (10:23 +0900)]
policy: Modify API for updating routing option in stream-manager
Support name and its value of the option
[Version] 0.5-21
[Profile] Common
[Issue Type] Enhancement feature
Change-Id: I231e3c498492211d5209315f3e7c1be970b2dea9
Sangchul Lee [Tue, 23 Jun 2015 09:16:01 +0000 (18:16 +0900)]
Modify pulseaudio-system.conf file for updating dbus access right, policy/sound-player: change dbus path
[Version] 0.5-20
[Profile] Common
[Issue Type] access right
Change-Id: Ia2c9657bab3ba727df067305733ce7111b3612c4
Jeongho Mok [Mon, 11 May 2015 04:00:03 +0000 (13:00 +0900)]
policy: Modify device-manager and stream-manager
Support BT SCO on/off/get-property interface to device-manager
Modify device-manager possible to have only playback devices
Use device.string for identify sink/source in device-manager
Send volume changed signal through dbus interface in stream-manager
[Version] 0.5-19
[Profile] Common
[Issue Type] add features and modify logic
Change-Id: Ia6a75e0e2baa8ab6f040c27787af681ef59c2916
Signed-off-by: Jeongho Mok <jho.mok@samsung.com>
Sangchul Lee [Mon, 4 May 2015 11:32:04 +0000 (20:32 +0900)]
policy: Add features and revise codes
Add dbus method to get current volume type in stream-manager.c
Add combine-sink usecase in module-policy.c (support BT device with AUTO_ALL route type)
Add sink-input move start/finish callback for muting/unmuting in stream-manager.c
Trigger to change routing path and to inform stream connection info when the state of stream is changed
Change pa_idxset_remove_all to pa_idxset_remove_by_data to avoid abnormal behavior
Revise manual routing logic (available for resetting routing per direction)
Fix memory leaks in stream-manager.c/stream-manager-volume.c
[Version] 0.5-18
[Profile] Common
[Issue Type] add features and fix bugs
Change-Id: Ia1b539f17236f93fd5fd0df2fafd9e1414e06a6e
Seungbae Shin [Thu, 7 May 2015 05:15:14 +0000 (14:15 +0900)]
policy: Revise codes to enable feature and clean-up
Enable device-manager
Remove unused functions
Disable deprecated policy extension functions
[Version] 0.5-17
[Profile] Common
[Issue Type] code clean-up
Change-Id: I8c534111a80ba05bba3b011a2817e136aba07561
Jeongho Mok [Mon, 4 May 2015 11:12:52 +0000 (20:12 +0900)]
Add security check code
[Version] 0.5-16
[Profile] Common
[Issue Type] security
Change-Id: Ie72d71eba28870002c72adf0d4821897d947f145
Signed-off-by: Jeongho Mok <jho.mok@samsung.com>
Sangchul Lee [Thu, 30 Apr 2015 07:10:26 +0000 (16:10 +0900)]
policy: Revise codes
Fix warning: ISO forbids mixed declarations and code
Fix warning: unused variable
Remove unused code
Revise code for easy readable
[Version] 0.5-15
[Profile] Common
[Issue Type] code clean-up
Change-Id: I0d21ce2995b34b5efc60443bab152bda3c789646
Signed-off-by: Seungbae Shin <seungbae.shin@samsung.com>
Sangchul Lee [Tue, 21 Apr 2015 03:59:07 +0000 (12:59 +0900)]
policy: Integrating with device-manager and stream-manager
Apply current state of the volume-mute to the new stream when calling sink-input-put/source-output-put callback
Change logic for getting volume level and mute
Remove GET_VOLUME_LEVEL_MAX operation in module-policy.c/ext-policy.c
Support stream connection information API for hal-manager
Support manual routing
Remove sample play feature in module-policy (rather it is recommended to use module-sound-player)
Fix bugs
[Version] 0.5-14
[Profile] Common
[Issue Type] add features and fix bugs
Change-Id: I00dc48805965a4c1987ef547269d83ce9fb854cc
Jeongho Mok [Fri, 10 Apr 2015 06:29:44 +0000 (15:29 +0900)]
policy: Modify device manager
Convert some hashmap to idxset for convenience.
Convert some enums to string (device-type, device-role).
Include vconf for get device status.
Separate device-profile from device-type.
Merge some functions which was only for sink or source.
Give same structure(dm_device) when device connected/disconnected.
Apply device mask when get connected device list.
Handle method call GetBTA2DPStatus status.
Ignore duplicated device set-state call.
Fix bug - processed twice when bt-sink loaded.
Fix some bugs.
[Version] 0.5-13
[Profile] Common
[Issue Type] add features and etc.
Change-Id: I17a869ed13d50a8c6bd947e343b593aa7c60e89a
Signed-off-by: Jeongho Mok <jho.mok@samsung.com>
Seonmi Jin [Fri, 1 May 2015 06:53:47 +0000 (15:53 +0900)]
tizenaudio-sink: Modify description and add valid_modargs
Modify description and add valid modargs, move it to tizen directory
[Version] 0.5-12
[Profile] Common
[Issue Type] add feature
Change-Id: Ib8db498c2f8d40934cbc0cc946a2d8ee3a1c5dd0
Signed-off-by: Seonmi Jin <seonmi.jin@samsung.com>
Sangchul Lee [Tue, 21 Apr 2015 16:01:21 +0000 (01:01 +0900)]
module-sound-player: Support role and volume_gain for playback. Add dbus method for play a sample that is already uploaded.
module-policy: Apply volume gain modifier for each stream in stream-manager.c
In module-sound-player, previous argument for volume type and gain was a value of integer type.
Now it is divided to two values of string type. With these information, stream-manager of the module-policy can manage its volume value.
[Version] 0.5-11
[Profile] Common
[Issue Type] add features
Change-Id: I4b566480f8b8c708bfd1126fab023a91e6b25b95
Sangchul Lee [Mon, 20 Apr 2015 02:47:40 +0000 (11:47 +0900)]
module-policy: Add dbus interface for setting/getting volume feature(level/mute)
Add dbus methods for setting/getting volume level and mute in stream-manager.c
Remove unused codes
[Version] 0.5-10
[Profile] Common
[Issue Type] add features
Change-Id: I07821484abbc3a4ffa96755fe84813f772a83664
Sangchul Lee [Fri, 19 Jun 2015 08:09:32 +0000 (17:09 +0900)]
Modify module-policy (including stream-manager.c/device-manager/hal-manager/communicator)
Apply initial volume level when initializing volume map
Rename APIs in device-manager.c
Add hal-manager APIs
Revise codes in stream-manager-volume.c
Ready for route option feature
Remove update_volume feature that is called when active device is changed in sound_server
Prepare interface for device information changed callback (communicator.c/device-manager.c/module-policy.c)
Change default booting sound
[Version] 0.5-9
[Profile] Common
[Issue Type] code refactorying
Change-Id: Iebf7e70c501be01b45888b217c60685d9094ecb6
Sangchul Lee [Wed, 15 Apr 2015 06:09:26 +0000 (15:09 +0900)]
1.Add hal-manager.c 2.Move and reorganize volume feature (move to stream-manager-volume.c)
[Version] 0.5-8
[Profile] Common
[Issue Type] code refactorying
Change-Id: Ic88589216154b54092d18262a92a5c619cca61f3
Seonmi Jin [Tue, 14 Apr 2015 15:45:34 +0000 (00:45 +0900)]
Module-policy: Fix to get sample format in sink_input_new_hook_callback()
Sample format is used in _add_hal_buffer_attr_by_latency()
Stream: Fixed default tlength from 250ms to 350ms
[Version] 0.5-7
[Profile] Common
[Issue Type] bug fix
Change-Id: Iae70823f8035f2c1e0f831ccd74a46df3d4e331c
Signed-off-by: Seonmi Jin <seonmi.jin@samsung.com>
Jeongho Mok [Wed, 25 Feb 2015 13:26:08 +0000 (22:26 +0900)]
Add device manager, on disabled status
Gather module-policy related files into tizen directory
[Version] 0.5-6
[Profile] Common
[Issue Type] add feature
Change-Id: Ied3a013fe665bbe5175cb8dda2996950da922b52
Signed-off-by: Jeongho Mok <jho.mok@samsung.com>
Sangchul Lee [Fri, 3 Apr 2015 08:36:36 +0000 (17:36 +0900)]
Add dbus methods to set devices for manual routing and to set routing options in stream-manager
Replace pa_idxset_iterate() to PA_IDXSET_FOREACH()
[Version] 0.5-5
[Profile] Common
[Issue Type] add feature
Change-Id: I600359b93f6e38fad8c986e5e7c8a047f71e6d84
youngseok7.lee [Mon, 6 Apr 2015 09:16:47 +0000 (18:16 +0900)]
Apply ASLR
[Version] 0.5-4
[Profile] Common
[Issue Type] build option
Change-Id: I7befe4300465b670b49a510c1848651350bfe7e2
Seungbae Shin [Thu, 2 Apr 2015 09:42:51 +0000 (18:42 +0900)]
policy: Remove unused USE_DBUS_PROTOCOL feature
[Version] 0.5-3
[Profile] Common
[Issue Type] code clean
Remove unused USE_DBUS_PROTOCOL feature
Update code for property changed signal
Change-Id: I2dd2819737753af1e934566cbc4d5ba438779104
Jeongho Mok [Mon, 26 Jan 2015 01:43:19 +0000 (10:43 +0900)]
policy: Add Dbus Interface
[Version] 0.5.2
[Profile] Common
[Issue Type] Add feature
Change-Id: Iae3ae0f0cab59409c1afe3b6ff7e834ab0e27047
Signed-off-by: Jeongho Mok <jho.mok@samsung.com>
Heechul Jeon [Wed, 24 Jun 2015 08:15:28 +0000 (01:15 -0700)]
Merge "policy: Add stream-manager.c and communicater.c" into tizen
Sangchul Lee [Fri, 12 Jun 2015 06:54:56 +0000 (15:54 +0900)]
policy: Add stream-manager.c and communicater.c
Add stream-map parsing logic to stream-manager.c
Add initial codes for matching up each sink-input/source-output and it's clients to stream-manager.c
Support dbus methods for getting stream list and stream information per type to stream-manager.c
Manage streams made by pa_scache, virtual-stream from sound-manager
[Version] 0.5.1
[Profile] Common
[Issue Type] Add feature
Change-Id: Ia66f42960c3f260e046f211cef097d026cf67694
Seonmi Jin [Tue, 3 Mar 2015 05:20:11 +0000 (14:20 +0900)]
tizenaudio-sink: Modified the function to set sample_spec
Change-Id: I21b100d761a04df9c124e1b0dc6915b0cc9b10da
Signed-off-by: Seonmi Jin <seonmi.jin@samsung.com>
Sangchul Lee [Mon, 2 Mar 2015 14:01:52 +0000 (23:01 +0900)]
Add module-sound-player for playing sound file and sound sample
Change-Id: I2d553cae4881c12c43bac6c94baaa3c58078fcae
Seonmi Jin [Mon, 2 Mar 2015 06:08:19 +0000 (15:08 +0900)]
tizenaudio-sink: Moved it to the tizen directory
Change-Id: Ieaf760021c6fc673c19670233ca6943d976ff8e0
Signed-off-by: Seonmi Jin <seonmi.jin@samsung.com>
Sun Young Jeong [Wed, 25 Feb 2015 12:21:32 +0000 (21:21 +0900)]
Refactoring Audio-HAL
Adjust latency using audio-hal
Change-Id: Iaaf30b959b06b117fd1a24a2f602cf28eba429e4
Signed-off-by: Sun Young Jeong <sy7787.jeong@samsung.com>
Seonmi Jin [Tue, 10 Feb 2015 08:57:13 +0000 (17:57 +0900)]
pulse: add to module-tizenaudio-sink
Change-Id: Id13ebd31770ddc0434120199288b6ba814cd8a7b
Signed-off-by: Seonmi Jin <seonmi.jin@samsung.com>
Seungbae Shin [Fri, 12 Jun 2015 08:28:18 +0000 (17:28 +0900)]
[systemd][fix] install service files to system directory for auto-launching on boot
Change-Id: Ib5913a8ea94a5390cd5b18cf9e71a6a40e562860
Seungbae Shin [Wed, 27 May 2015 13:07:25 +0000 (22:07 +0900)]
[systemd] install service files to system directory for auto-launching on boot
Change-Id: I255900c3c5dc50992304b9e1541573795dfccf35
Seungbae Shin [Tue, 12 May 2015 13:41:00 +0000 (22:41 +0900)]
Fix udev rules file install location for 64bit
Change-Id: I49897b1bccd9b0b25903b49e7bb82b0562dfe182
Heechul Jeon [Mon, 27 Apr 2015 07:49:52 +0000 (00:49 -0700)]
Merge "1. Added commands in ext-policy for other application (like sound manager). 2. Add pa_context_set_default_sink_for_usb() for usb sink selection. 3. Add new API pa_context_set_default_sink_by_api_bus for sound server pactl. 4. Sync code from tizen_2.3." into tizen
Deepak Srivastava [Thu, 16 Apr 2015 04:20:35 +0000 (09:50 +0530)]
Enabled pcm dump feature
Change-Id: I4292add289777169c317b9667ed3fa63c98ae81e
Deepak Srivastava [Fri, 24 Apr 2015 05:51:47 +0000 (11:21 +0530)]
1. Added commands in ext-policy for other application (like sound manager).
2. Add pa_context_set_default_sink_for_usb() for usb sink selection.
3. Add new API pa_context_set_default_sink_by_api_bus for sound server pactl.
4. Sync code from tizen_2.3.
Change-Id: Ie26a3989c2a4829c52af8580944313a4db0fadc2
Manish Sogi [Mon, 20 Apr 2015 12:02:57 +0000 (17:32 +0530)]
Enabled TIZEN specific bluetooth changes
Change-Id: I135172f01a84f05bbfc22d5e52a5a9bfdb590946
Ruchika Saxena [Thu, 26 Mar 2015 11:43:34 +0000 (17:13 +0530)]
Integrating audio_interface_t struct and VOIP changes
Change-Id: I6f49cb5b7b35832b37e842b877748fe31d9870d3
Jaska Uimonen [Fri, 12 Dec 2014 06:22:21 +0000 (08:22 +0200)]
release: updated changelog
Change-Id: I3a743a2de07722c0ae20f473136cfb24fefabbd2
Signed-off-by: Jaska Uimonen <jaska.uimonen@intel.com>
Ismo Puustinen [Wed, 10 Dec 2014 11:08:51 +0000 (13:08 +0200)]
config: do not change digital controls from analog path config.
When the default ALSA analog path configuration is loaded, it disables
digital IEC958 mixer controls. This should not be needed, since digital outputs
are handled from a different sink. Therefore remove the configuration that
touches the controls.
Change-Id: Ia7b049d55bcece26eae8e2b9f2c5b3f2df66bbd6
Ronan Le Martret [Tue, 2 Dec 2014 08:54:59 +0000 (09:54 +0100)]
remove bashisme
- build Tizen on yocto project
Change-Id: I01c49db28f516cf2cc4a25cf9abd5ee2f3489d68
Signed-off-by: Ronan Le Martret <ronan@fridu.net>
Tanu Kaskinen [Tue, 30 Sep 2014 09:29:06 +0000 (12:29 +0300)]
volume-api: Fix strict-aliasing warnings
It's apparently not safe to reinterpret the memory stored in double
variables as uint64_t, so let's use memcpy().
Change-Id: If6474f2d047c92d9dd7607ed5692ccd08f78b5f3
Tanu Kaskinen [Fri, 28 Nov 2014 08:55:30 +0000 (10:55 +0200)]
inidb: Avoid calling fclose() twice
f needs to be set to NULL after calling fclose(), otherwise fclose
will be called again in the "fail" section if the first call fails,
which results in undefined behaviour (a crash has been observed[1]).
[1] https://lists.tizen.org/pipermail/ivi/2014-November/003693.html
Change-Id: Iaa1539a379b8be31b62834f49240d17fdf45c893
Tanu Kaskinen [Wed, 29 Oct 2014 20:20:01 +0000 (22:20 +0200)]
packaging: Add the pulseaudio-cascaded-setup package
Change-Id: I1a1504ac2496af127557c5d45f64fef4c284cdc6
Tanu Kaskinen [Wed, 1 Oct 2014 10:27:25 +0000 (13:27 +0300)]
Add systemd service and socket files for the system mode
Change-Id: If3783b3a86108dd968911613f5f63693cb5161c6
Tanu Kaskinen [Thu, 23 Oct 2014 10:27:54 +0000 (13:27 +0300)]
Add configuration for the "cascaded setup"
If cascaded.pa is installed, then hardware should be managed by the
system instance, and user instances should use the hardware via the
system instance.
Change-Id: I6879bbcb50e131941c75b8c91a11e098d07428e5
Tanu Kaskinen [Wed, 12 Nov 2014 13:22:03 +0000 (15:22 +0200)]
systemd: Disable TCP socket activation for user instances
The TCP port can be listened by only one process, so if the system
instance listens it, then user instances can't listen. Or if there
are multiple users, only one can listen.
Since systemd uses an "all or nothing" approach, the unix socket
activation doesn't work either when the TCP socket fails. It's not
terribly important to have TCP socket activation (at least at this
point), so let's just drop it from user instances.
Change-Id: I6258ee9c7a5ae7de4dcee209440de2df7a779e1d
Tanu Kaskinen [Thu, 30 Oct 2014 10:24:33 +0000 (12:24 +0200)]
packaging: Install the tunnel-manager and logind files
Change-Id: I0502677165496449db85569f985de1a317f781b1
Tanu Kaskinen [Wed, 3 Dec 2014 12:39:52 +0000 (14:39 +0200)]
tunnel-manager: Implement a policy that enables tunnels based on the device seat
Change-Id: Ib4dd17936ff0f18f8cbf9b3e723a183a73f354af
Tanu Kaskinen [Thu, 4 Dec 2014 10:46:05 +0000 (12:46 +0200)]
udev: Store the seat id in device proplists
When using PulseAudio in system mode, it may be interesting to know
which seats the devices are assigned to. This will be used in the
tunnel manager to filter out the devices that belong to other users.
Change-Id: Iad81513430d448bd5974e5b021293ed0976f426d
Tanu Kaskinen [Wed, 3 Dec 2014 13:20:19 +0000 (15:20 +0200)]
logind: Add seat tracking
This will be used by the tunnel manager to filter out devices in the
system instance that belong to some other user.
Change-Id: Ib1ba098014a485fef320a6ce4bc034973b607e9c
Tanu Kaskinen [Tue, 2 Dec 2014 19:48:37 +0000 (21:48 +0200)]
logind: Move the code that interfaces with logind to liblogind.so
This doesn't change the behaviour in any important way. The purpose of
this move is to provide access to logind from multiple modules without
needing to use the logind API from more than one place. Currently
there's only one module using liblogind.so, but module-tunnel-manager
will need seat tracking, so that will be another module that needs to
access logind.
Change-Id: I352193fef0d0b0601ea509af501af395786c6cf9
Tanu Kaskinen [Wed, 3 Dec 2014 12:05:44 +0000 (14:05 +0200)]
tunnel-manager: Make the tunnel enabling policy configurable
There's no real configurability yet, because only one condition is
supported. Support for more conditions will be added later.
The syntax of the configuration option pretends to conform to some
programming language, but there's no real parser for the language.
A proper parser may be implemented later, but for now the option
values are parsed simply by comparing to a list of predefined string
constants.
Change-Id: I57bbb0cd2b91691415be78f9732aef6b3bebde56
Tanu Kaskinen [Thu, 27 Nov 2014 10:30:35 +0000 (12:30 +0200)]
tunnel-manager: Load tunnel sinks and sources
This makes the tunnel manager load tunnel sinks and sources for all
devices in the remote servers, except for monitor sources.
Change-Id: Ie3793dfc8a500b2ae7ec6b2b0a82e49793361f91
Tanu Kaskinen [Thu, 27 Nov 2014 12:57:10 +0000 (14:57 +0200)]
tunnel-new: Read parameters from tunnel manager when available
This prepares for loading tunnel sink and source module instances from
the tunnel manager.
If the tunnel manager is available, and the tunnel manager has
sample spec and channel map information for the device, then let's use
that information when creating the sink or source so that the tunnel
will automatically match the parameters of the remote device. The
remote device's proplist is copied to the tunnel too.
Change-Id: I2755d6fc984d9014bc039924dd1d51ea5689c22c
Tanu Kaskinen [Fri, 3 Oct 2014 04:20:11 +0000 (07:20 +0300)]
tunnel-manager: New module for managing tunnels to remote servers
The initial use case for this module is to connect user PulseAudio
instances to the system instance via tunnel sinks and sources. This
is the so called "cascaded setup". The point of doing that is to allow
multiple users to access the same hardware simultaneously.
The module connects to zero or more remote servers and builds an
internal representation of all sinks and sources in those servers.
Currently the module doesn't actually load any tunnel sinks or
sources, because the tunnel sink and source code have to be first
modified a bit (the next patch does that).
The remote servers are configured in a separate configuration file
that is named tunnel-manager.conf. Currently only the server address
can be configured, but I expect more configuration options to be
implement in the future, such as options for defining the policy of
which remote devices to use. Here's an example of the configuration
file syntax:
[RemoteServer foo]
address = /run/pulse/native
[RemoteServer bar]
address = example.com
The bulk of the functionality is not in module-tunnel-manager.so, but
in libtunnel-manager.so, which will be used also by the tunnel sink
and source modules to access the information that the tunnel manager
has previously queried from the remote server.
Change-Id: I3d41936451572b6341cfb9717e07b355d8449490
Tanu Kaskinen [Thu, 4 Dec 2014 13:51:26 +0000 (15:51 +0200)]
device-type: Add pa_device_type_to_string()
This is needed by the tunnel manager. It feels a bit silly to
introduce new source files for just this function, but I couldn't
think of any other appropriate place. pa_device_type_t is defined
in pulse/def.h, and that's not an appropriate place for any
functions.
Change-Id: I6f969fe3acb934e8bb8fdfa5873a4d6d3fa6721c
Tanu Kaskinen [Wed, 12 Nov 2014 09:42:55 +0000 (11:42 +0200)]
module: Add PA_CORE_HOOK_MODULE_UNLOAD
Change-Id: I20a6bdd2f367a332554d86219de0ea22e08d82d9
Tanu Kaskinen [Fri, 3 Oct 2014 04:42:21 +0000 (07:42 +0300)]
tunnel-sink-new: Fix requested latency check
This fixes a bug in latency configuration. The wrong type in the cast
caused UINT64_MAX being not treated as special, so the configured
latency was set to UINT64_MAX usecs, which of course is absurdly huge
latency.
Change-Id: Iec239e7970944ed920837580a09bfe76a2ae2bfd
Tanu Kaskinen [Fri, 3 Oct 2014 04:38:55 +0000 (07:38 +0300)]
tunnel-sink-new: Limit the maximum latency to 200 ms
The default maximum latency is 10 seconds, which is not good,
especially since the tunnel sink doesn't support rewinding. Due to the
lack of rewinding, e.g. volume changes take a long time with large
latencies.
Change-Id: I13753d30a17598ebc9e6a3eda3db4096ff6fcf4e
Tanu Kaskinen [Wed, 12 Nov 2014 08:53:15 +0000 (10:53 +0200)]
build-sys: Fix a variable value check
Change-Id: Ie39c9c335baf70d5a6c40fa4b6845ff78e2812ec
Jaska Uimonen [Fri, 24 Oct 2014 06:39:01 +0000 (09:39 +0300)]
release: updated changelog
Change-Id: Ia12c7675382e3f8852549508bd62d5410d429be1
Jaska Uimonen [Mon, 27 Oct 2014 12:42:22 +0000 (14:42 +0200)]
Disable loading of protocol esound module
There seems to be nobody in tizen using esound
so we might as well disable the loading of the
corresponding pulseaudio protocol. If this is
later on enabled the socket should be also added
to pulseaudio.socket if the socket activation
is wanted also for esound.
Change-Id: Ieec337d3d36c8fc94aff7678b4657ffc656c1e73
Jaska Uimonen [Thu, 23 Oct 2014 06:50:21 +0000 (09:50 +0300)]
add systemd socket activation files to spec
Change-Id: Ia7341844fc0be2f9449e306470b05a3653c3eee9
Jaska Uimonen [Fri, 31 Oct 2014 09:39:50 +0000 (11:39 +0200)]
add tcp ipv4 local port to default.pa
Change-Id: I226cad5552c6331b90269bba751ef01e942a05da
Jaska Uimonen [Wed, 5 Nov 2014 11:53:28 +0000 (13:53 +0200)]
add ipv4 socket to pulseaudio.socket
Change-Id: I68867a475ba6892d1ca3c24e985687219e807a92