[pulseaudio-discuss] [PATCH 0/4] Miscellaneous patches from Meamo and Meego development

2011-04-08 Thread oku
From: Jyri Sarha jyri.sa...@nokia.com This is a collection of patches which I never got around to try to get to the upstream before. All but the last one have been in use in Maemo/Meego for several months without any problems at least in that context. Anyway, as far as I can see these patches

[pulseaudio-discuss] [PATCH 1/4] protocol-native: Stop auto timing updates if connected to suspended sink or source

2011-04-08 Thread oku
From: Jyri Sarha jyri.sa...@nokia.com This quite is an old patch. It was added to N900 to avoid unnecessary wake-ups when the phone is in power save mode (= blank screen and no user interaction). In this situation if the user had a browser window with flash animation open pulseaudio kept waking

[pulseaudio-discuss] [PATCH 2/4] suspend-on-idle: Trigger mempool vacuuming

2011-04-08 Thread oku
From: Jyri Sarha jyri.sa...@nokia.com In a setup with one or more filter sinks or sources there is always at least one stream existing. In such a situation normal mempool vacuuming never happens. This patch causes suspend-on-idle module to vacuum memory when ever it notices that all sinks and

[pulseaudio-discuss] [PATCH 3/4] core: no rewinding on volume change if the sink does not support it.

2011-04-08 Thread oku
From: Jyri Sarha jyri.sa...@nokia.com No volume is applied to a stream before pa_sink_render or some it's siblings is called. Because of this there is no use to rewind on volume change if the sink does not support it. It is just a waste of CPU. --- src/pulsecore/sink-input.c |6 --

[pulseaudio-discuss] [PATCH 4/4] alsa-mixer: Add force-hw-volume flag to alsa profile sets

2011-04-08 Thread oku
From: Jyri Sarha jyri.sa...@nokia.com Before this patch, if any of the paths in a path set do not support HW volume then the HW volume is disabled for the whole set. In some cases this is a bit drastic measure. For instance, if all but one of the paths support HW volume and dB there no problem to

[pulseaudio-discuss] [PATCH 4/5] alsa-sink: Fix double use of string

2011-01-13 Thread oku
From: Jyri Sarha jyri.sa...@nokia.com --- src/modules/alsa/alsa-sink.c | 14 -- 1 files changed, 8 insertions(+), 6 deletions(-) diff --git a/src/modules/alsa/alsa-sink.c b/src/modules/alsa/alsa-sink.c index 53c14b8..a8ba363 100644 --- a/src/modules/alsa/alsa-sink.c +++

[pulseaudio-discuss] [PATCH 5/5] alsa-sink: Don't assume we were able to enable hw-volume or sync-volume (v1.1)

2011-01-13 Thread oku
From: Jyri Sarha jyri.sa...@nokia.com This patch also disables mixer callback code if we do not have neither HW-volume or HW-mute. --- src/modules/alsa/alsa-sink.c | 42 +- 1 files changed, 21 insertions(+), 21 deletions(-) diff --git

[pulseaudio-discuss] [PATCH 2/5] core: Use volume_change_safety_margin when rewinding sync-volume events

2010-12-20 Thread oku
From: Jyri Sarha jyri.sa...@nokia.com After this patch the volume changes are applied immediately after sink rewind before processing streams and monitor source. --- src/pulsecore/sink.c | 22 -- 1 files changed, 16 insertions(+), 6 deletions(-) diff --git

[pulseaudio-discuss] [PATCH 1/5] core: Change sematics of pa_flist_new_with_name()

2010-12-20 Thread oku
From: Jyri Sarha jyri.sa...@nokia.com Name string is copied and added to flist structure. The original is responsibility of the caller. The name is only used for debug printing. --- src/pulsecore/flist.c |5 - src/pulsecore/flist.h |4 ++-- 2 files changed, 6 insertions(+), 3

[pulseaudio-discuss] [PATCH 3/5] core: Use pa_sink_get_latency_within_thread() in sync-volume code

2010-12-20 Thread oku
From: Jyri Sarha jyri.sa...@nokia.com --- src/pulsecore/sink.c | 11 ++- 1 files changed, 2 insertions(+), 9 deletions(-) diff --git a/src/pulsecore/sink.c b/src/pulsecore/sink.c index acaed15..3cadbff 100644 --- a/src/pulsecore/sink.c +++ b/src/pulsecore/sink.c @@ -2906,10 +2906,7 @@

[pulseaudio-discuss] [PATCH 5/5] alsa-sink: Don't assume we were able to enable hw-volume or sync-volume

2010-12-20 Thread oku
From: Jyri Sarha jyri.sa...@nokia.com --- src/modules/alsa/alsa-sink.c | 39 --- 1 files changed, 20 insertions(+), 19 deletions(-) diff --git a/src/modules/alsa/alsa-sink.c b/src/modules/alsa/alsa-sink.c index a8ba363..fd418fc 100644 ---

[pulseaudio-discuss] [PATCH 4/5] alsa-sink: Fix double use of string

2010-12-20 Thread oku
From: Jyri Sarha jyri.sa...@nokia.com --- src/modules/alsa/alsa-sink.c | 14 -- 1 files changed, 8 insertions(+), 6 deletions(-) diff --git a/src/modules/alsa/alsa-sink.c b/src/modules/alsa/alsa-sink.c index 53c14b8..a8ba363 100644 --- a/src/modules/alsa/alsa-sink.c +++

[pulseaudio-discuss] [PATCH 0/5] Fix flist is full log spamming

2010-11-26 Thread oku
From: Jyri Sarha jyri.sa...@nokia.com I forgot a spamming log message to the flist.c patch that was applied a few days ago. This is an attempt to lower the annoyance level of that log message. The first patch lowers the log level for the message and adds ratelimit to it. The second patch adds

[pulseaudio-discuss] [PATCH] core: New LIFO style flist implementation v2.2

2010-11-16 Thread oku
From: Jyri Sarha jyri.sa...@nokia.com The old free list implementation used objects in FIFO style. This is bad because it tries keep all the objects ever used alive and in memory. This minimizes the changes that an allocated object is already in cache. When there is shortage of physical memory

[pulseaudio-discuss] [PATCH 0/4] Review updated sync-volume patch series (man page patch not included)

2010-10-15 Thread oku
From: Jyri Sarha jyri.sa...@nokia.com Jyri Sarha (4): core: Add infrastructure for synchronizing HW and SW volume changes alsa: Take syncronized HW volume infra into use for alsa-sink udev-detect: Add sync_volume parameter daemon-conf: Add sync volume parameters to daemon-conf

[pulseaudio-discuss] [PATCH 5/5] man: sync_volume parameters to manual page

2010-10-15 Thread oku
From: Jyri Sarha jyri.sa...@nokia.com Signed-off-by: Jyri Sarha jyri.sa...@nokia.com Reviewed-by: Tanu Kaskinen tanu.kaski...@digia.com --- man/pulse-daemon.conf.5.xml.in | 26 ++ 1 files changed, 26 insertions(+), 0 deletions(-) diff --git

[pulseaudio-discuss] [PATCH 4/4] daemon-conf: Add sync volume parameters to daemon-conf

2010-10-15 Thread oku
From: Jyri Sarha jyri.sa...@nokia.com Signed-off-by: Jyri Sarha jyri.sa...@nokia.com Reviewed-by: Tanu Kaskinen tanu.kaski...@digia.com Reviewd-by: Colin Guthrie cguth...@mandriva.org --- src/daemon/daemon-conf.c |9 + src/daemon/daemon-conf.h |5 -

[pulseaudio-discuss] [PATCH 2/4] alsa: Take syncronized HW volume infra into use for alsa-sink

2010-10-15 Thread oku
From: Jyri Sarha jyri.sa...@nokia.com Signed-off-by: Jyri Sarha jyri.sa...@nokia.com Reviewed-by: Tanu Kaskinen tanu.kaski...@digia.com Reviewd-by: Colin Guthrie cguth...@mandriva.org --- src/modules/alsa/alsa-mixer.c | 117 +-- src/modules/alsa/alsa-mixer.h

[pulseaudio-discuss] [PATCH 1/4] core: Add infrastructure for synchronizing HW and SW volume changes

2010-10-15 Thread oku
From: Jyri Sarha jyri.sa...@nokia.com To make concurrent use of SW and HW volume glitchles their application needs to be synchronized. For accurate synchronization the HW volume needs to be applied in IO thread. This patch adds infrastructure to delay the applying of HW volume to match with SW

[pulseaudio-discuss] [PATCH 0/5] HW and SW volume syncronization in IO-thread

2010-10-13 Thread oku
From: Jyri Sarha jyri.sa...@nokia.com The first patch in the set gives sink implementor a possibility to synchronize HW and SW volume usage in IO-thread. The remaining patches implement the synchronization for the alsa-sink and add the necessary module parameters and defaults for them in daemon

[pulseaudio-discuss] [PATCH] core: New LIFO style flist implementation v2.1

2010-09-01 Thread oku
From: Jyri Sarha jyri.sa...@nokia.com The old free list implementation used objects in FIFO style. This is bad because it tries keep all the objects ever used alive and in memory. This minimizes the changes that an allocated object is already in cache. When there is shortage of physical memory

[pulseaudio-discuss] [PATCH] core: New LIFO style flist implementation v2.0

2010-08-24 Thread oku
From: Jyri Sarha jyri.sa...@nokia.com Damn, I always need to read my own patches from the mailing list before I realize that there is something wrong with them. I think the earlier version of this same patch had a weakness that in theory the contents of a stack element may not have been

[pulseaudio-discuss] [PATCH] core: New LIFO style flist implementation v2.0

2010-08-24 Thread oku
From: Jyri Sarha jyri.sa...@nokia.com The old free list implementation used objects in FIFO style. This is bad because it tries keep all the objects ever used alive and in memory. This minimizes the changes that an allocated object is already in cache. When there is shortage of physical memory