Re: [pulseaudio-discuss] no output from pulseaudio on embedded arm platform

2012-03-22 Thread Jan Pohanka
Hello, thank you for the answers. I have pulseaudio working now. The last thing I'm not sure about is how to handle its memory requirements. PulseAudio tries to allocate 64MB per default I think, maybe too much; can be configured... Do you please know what is the minimal memory requireme

Re: [pulseaudio-discuss] Gap, silence and latency

2012-03-22 Thread James Lee
Tanu Kaskinen iki.fi> writes: > > On Fri, 2012-03-16 at 17:34 +, James Lee wrote: > > A/V sync is handled in the decoders based on the current PCR and PTS values for > > each audio/video frame. Our concern is audio latency through pulse, not > > A/V > > synchronization. The latency jum

Re: [pulseaudio-discuss] [PATCH] bluetooth: Fix uninitialized variable.

2012-03-22 Thread Tanu Kaskinen
On Thu, 2012-03-22 at 17:43 +0100, Dalleau, Frederic wrote: > Hi Tanu, > > > -unsigned frame_count; > > +unsigned frame_count = 0; > > Looks like frame_count is unused in this function, maybe it can be > simply removed? Yes, you're absolutely right. I was checking a report from C

Re: [pulseaudio-discuss] [PATCH] bluetooth: Fix uninitialized variable.

2012-03-22 Thread Dalleau, Frederic
Hi Tanu, > -        unsigned frame_count; > +        unsigned frame_count = 0; Looks like frame_count is unused in this function, maybe it can be simply removed? Regards, Frédéric ___ pulseaudio-discuss mailing list pulseaudio-discuss@lists.freedesktop

[pulseaudio-discuss] [RFC v2 18/18] bluetooth: switch between SBC and MPEG

2012-03-22 Thread Frédéric Dalleau
--- src/modules/bluetooth/module-bluetooth-device.c | 136 ++- 1 files changed, 109 insertions(+), 27 deletions(-) diff --git a/src/modules/bluetooth/module-bluetooth-device.c b/src/modules/bluetooth/module-bluetooth-device.c index cb4714d..60399c9 100644 --- a/src/modules/b

[pulseaudio-discuss] [RFC v2 17/18] bluetooth: parse MediaTransport.Codecs property

2012-03-22 Thread Frédéric Dalleau
--- src/modules/bluetooth/bluetooth-util.c | 16 +--- src/modules/bluetooth/bluetooth-util.h |1 + 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/src/modules/bluetooth/bluetooth-util.c b/src/modules/bluetooth/bluetooth-util.c index 0dbf143..a7cd783 100644 --- a/

[pulseaudio-discuss] [RFC v2 16/18] bluetooth: utility to trigger a2dp reconfigure

2012-03-22 Thread Frédéric Dalleau
--- src/modules/bluetooth/bluetooth-util.c | 64 src/modules/bluetooth/bluetooth-util.h |3 + 2 files changed, 67 insertions(+), 0 deletions(-) diff --git a/src/modules/bluetooth/bluetooth-util.c b/src/modules/bluetooth/bluetooth-util.c index 7680065..0dbf1

[pulseaudio-discuss] [RFC v2 15/18] bluetooth: Fix module-bluetooth-device load failed

2012-03-22 Thread Frédéric Dalleau
module-bluetooth-device do not load if both HFP and A2DP are connected because the profile argument is given twice. pa_modargs_new is failing in pa__init. --- src/modules/bluetooth/module-bluetooth-discover.c |3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/src/modules/bl

[pulseaudio-discuss] [RFC v2 14/18] bluetooth: Build and push fragmented MPEG frames

2012-03-22 Thread Frédéric Dalleau
--- src/modules/bluetooth/module-bluetooth-device.c | 229 +++ 1 files changed, 192 insertions(+), 37 deletions(-) diff --git a/src/modules/bluetooth/module-bluetooth-device.c b/src/modules/bluetooth/module-bluetooth-device.c index 0acce34..cb4714d 100644 --- a/src/modules/b

[pulseaudio-discuss] [RFC v2 13/18] bluetooth: Build and push IEC frame if codec is MPEG

2012-03-22 Thread Frédéric Dalleau
--- src/modules/bluetooth/module-bluetooth-device.c | 85 +-- 1 files changed, 64 insertions(+), 21 deletions(-) diff --git a/src/modules/bluetooth/module-bluetooth-device.c b/src/modules/bluetooth/module-bluetooth-device.c index 3116d9c..0acce34 100644 --- a/src/modules/bl

[pulseaudio-discuss] [RFC v2 12/18] bluetooth: declare source support for IEC61937

2012-03-22 Thread Frédéric Dalleau
--- src/modules/bluetooth/module-bluetooth-device.c | 26 +++ 1 files changed, 26 insertions(+), 0 deletions(-) diff --git a/src/modules/bluetooth/module-bluetooth-device.c b/src/modules/bluetooth/module-bluetooth-device.c index a1e37bd..3116d9c 100644 --- a/src/modules/blu

[pulseaudio-discuss] [RFC v2 11/18] bluetooth: Register MP3 sink endpoint for bluetooth

2012-03-22 Thread Frédéric Dalleau
--- src/modules/bluetooth/bluetooth-util.c | 23 +++ 1 files changed, 19 insertions(+), 4 deletions(-) diff --git a/src/modules/bluetooth/bluetooth-util.c b/src/modules/bluetooth/bluetooth-util.c index a77a0d5..7680065 100644 --- a/src/modules/bluetooth/bluetooth-util.c +++

[pulseaudio-discuss] [RFC v2 10/18] bluetooth: configure device based on selected transport

2012-03-22 Thread Frédéric Dalleau
--- src/modules/bluetooth/module-bluetooth-device.c | 58 +++--- 1 files changed, 50 insertions(+), 8 deletions(-) diff --git a/src/modules/bluetooth/module-bluetooth-device.c b/src/modules/bluetooth/module-bluetooth-device.c index 248460f..a1e37bd 100644 --- a/src/modules/blue

[pulseaudio-discuss] [RFC v2 09/18] bluetooth: Initialize codec value

2012-03-22 Thread Frédéric Dalleau
--- src/modules/bluetooth/bluetooth-util.c |3 +++ src/modules/bluetooth/module-bluetooth-device.c |7 ++- 2 files changed, 9 insertions(+), 1 deletions(-) diff --git a/src/modules/bluetooth/bluetooth-util.c b/src/modules/bluetooth/bluetooth-util.c index 1c1c7dd..a77a0d5 100

[pulseaudio-discuss] [RFC v2 08/18] bluetooth: module-bluetooth-device changes

2012-03-22 Thread Frédéric Dalleau
--- src/modules/bluetooth/module-bluetooth-device.c | 19 ++- 1 files changed, 18 insertions(+), 1 deletions(-) diff --git a/src/modules/bluetooth/module-bluetooth-device.c b/src/modules/bluetooth/module-bluetooth-device.c index 74887c0..14b196b 100644 --- a/src/modules/bluetoo

[pulseaudio-discuss] [RFC v2 07/18] bluetooth: Handle SelectConfiguration for MP3 endpoint

2012-03-22 Thread Frédéric Dalleau
--- src/modules/bluetooth/bluetooth-util.c | 141 ++-- 1 files changed, 98 insertions(+), 43 deletions(-) diff --git a/src/modules/bluetooth/bluetooth-util.c b/src/modules/bluetooth/bluetooth-util.c index 498dd28..1c1c7dd 100644 --- a/src/modules/bluetooth/bluetooth-

[pulseaudio-discuss] [RFC v2 06/18] bluetooth: Register MP3 endpoint for bluetooth

2012-03-22 Thread Frédéric Dalleau
--- src/modules/bluetooth/bluetooth-util.c | 37 --- 1 files changed, 28 insertions(+), 9 deletions(-) diff --git a/src/modules/bluetooth/bluetooth-util.c b/src/modules/bluetooth/bluetooth-util.c index 3f39a91..498dd28 100644 --- a/src/modules/bluetooth/bluetooth-ut

[pulseaudio-discuss] [RFC v2 05/18] Fix build : Remove usage of passthrough profile

2012-03-22 Thread Frédéric Dalleau
--- src/modules/bluetooth/module-bluetooth-device.c |4 1 files changed, 0 insertions(+), 4 deletions(-) diff --git a/src/modules/bluetooth/module-bluetooth-device.c b/src/modules/bluetooth/module-bluetooth-device.c index 4cd5b8d..74887c0 100644 --- a/src/modules/bluetooth/module-blueto

[pulseaudio-discuss] [RFC v2 04/18] bluetooth: Fixes for PCM-MPEG switching

2012-03-22 Thread Frédéric Dalleau
From: Arun Raghavan Refactors the codec configuration bits so we configure the codec we're going to use, and make sure the write memchunk is reinitialised while switching. --- src/modules/bluetooth/module-bluetooth-device.c | 172 --- 1 files changed, 90 insertions(+), 82 de

[pulseaudio-discuss] [RFC v2 03/18] bluetooth: Handle configuration failures more gracefully

2012-03-22 Thread Frédéric Dalleau
From: Arun Raghavan This should help make configuration failures not necessitate a bluetoothd restart. --- src/modules/bluetooth/module-bluetooth-device.c | 50 +-- 1 files changed, 28 insertions(+), 22 deletions(-) diff --git a/src/modules/bluetooth/module-bluetooth-devic

[pulseaudio-discuss] [RFC v2 02/18] bluetooth: Use new API for exposing A2DP MPEG sinks

2012-03-22 Thread Frédéric Dalleau
From: Arun Raghavan This replaces a separate A2DP passthrough profile with dynamically reconfiguring the A2DP stream for MPEG streams if required. The sink get_formats() function allows the core to introspect whether the attached headset supports this or not. --- src/modules/bluetooth/bluetooth-

[pulseaudio-discuss] [RFC v2 01/18] bluetooth: MP3 passthrough over A2DP

2012-03-22 Thread Frédéric Dalleau
From: Pierre-Louis Bossart Second version of patch to enable MP3 passthrough over A2DP, with the decoding taking place on the headset to reduce power consumption. This was only possible if PulseAudio was bypassed before with the a2dpsink element in gstreamer. This is a simpler version of an earl

[pulseaudio-discuss] [RFC v2 00/18] bluetooth: Revive MP3 passthrough over A2DP

2012-03-22 Thread Frédéric Dalleau
Hi, This is the v2 of the work on A2DP MPEG and media API. v1 tried to send MP3 using A2DP source role. v2 adds a sink to receive the MP3 data and restores SBC/MPEG switching. There is also a patch in BlueZ to make this work. It will take time before the DBUS apis are worked out. It is possible u

Re: [pulseaudio-discuss] [PATCH 0/3] New alsa path option: mute-during-activation

2012-03-22 Thread Tanu Kaskinen
On Thu, 2012-03-22 at 15:53 +0100, David Henningsson wrote: > 2012-03-22 15:20, Tanu Kaskinen skrev: > > On Thu, 2012-03-22 at 14:33 +0100, David Henningsson wrote: > >> I was loosely thinking (i e, this is not a promise!) to do something > >> like this for PulseAudio 3.0. If I get around to do tha

Re: [pulseaudio-discuss] [PATCH 0/3] New alsa path option: mute-during-activation

2012-03-22 Thread David Henningsson
2012-03-22 15:20, Tanu Kaskinen skrev: On Thu, 2012-03-22 at 14:33 +0100, David Henningsson wrote: Ideally, I would like an algorithm that on path_select, took the new mute and volume state into account, and did the following: 1) Calculated which alsa-kcontrols that needed to change, taking int

Re: [pulseaudio-discuss] [PATCH 0/3] New alsa path option: mute-during-activation

2012-03-22 Thread Tanu Kaskinen
On Thu, 2012-03-22 at 14:33 +0100, David Henningsson wrote: > Ideally, I would like an algorithm that on path_select, took the new > mute and volume state into account, and did the following: > > 1) Calculated which alsa-kcontrols that needed to change, taking into > account the new mute as well

Re: [pulseaudio-discuss] express my interests in applying GSoC 2012

2012-03-22 Thread rong deng
Thanks all for replying and giving suggestions. I've sent two patches in another thread, and I've already setup git send-email, cool! It's way easy to send patches on command lines. Personally, I'd like to use PRI-prefix, because it looks more standard. But casting and stick it with %llx should be

[pulseaudio-discuss] [PATCH] fix compilation warning via PRI prefix

2012-03-22 Thread Deng Zhenrong
modules/alsa/alsa-mixer.c:3110:21: warning: format '%lx' expects argument of type 'long unsigned int', but argument 7 has type 'pa_channel_position_mask_t' [-Wformat] modules/alsa/alsa-mixer.c:3110:21: warning: format '%lx' expects argument of type 'long unsigned int', but argument 8 has

[pulseaudio-discuss] [PATCH] fix compilation warning via casting

2012-03-22 Thread Deng Zhenrong
modules/alsa/alsa-mixer.c:3110:21: warning: format '%lx' expects argument of type 'long unsigned int', but argument 7 has type 'pa_channel_position_mask_t' [-Wformat] modules/alsa/alsa-mixer.c:3110:21: warning: format '%lx' expects argument of type 'long unsigned int', but argument 8 has

Re: [pulseaudio-discuss] [PATCH 0/3] New alsa path option: mute-during-activation

2012-03-22 Thread David Henningsson
2012-03-22 10:29, Tanu Kaskinen skrev: At least on Nokia N9 this patch helps reducing pops when changing ports. Some earlier discussion: http://lists.freedesktop.org/archives/pulseaudio-discuss/2011-September/011402.html An earlier version of the first patch was submitted in October, but it wasn

Re: [pulseaudio-discuss] no output from pulseaudio on embedded arm platform

2012-03-22 Thread Peter Meerwald
Hello, > You were right, specifying correct default-sample-rate in daemon.conf helped. > I can now play sounds with paplay. Alternate-sample-rate is not a valid > settings for my version of pulse audio. alternate-sample-rate is post-1.1 I think (and I did not get it to work) > After accessing pu

[pulseaudio-discuss] [PATCH] bluetooth: Fix uninitialized variable.

2012-03-22 Thread Tanu Kaskinen
--- src/modules/bluetooth/module-bluetooth-device.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/modules/bluetooth/module-bluetooth-device.c b/src/modules/bluetooth/module-bluetooth-device.c index d5240f5..440b4de 100644 --- a/src/modules/bluetooth/module-bluetoot

Re: [pulseaudio-discuss] express my interests in applying GSoC 2012

2012-03-22 Thread John Haxby
On 22/03/12 08:58, Tanu Kaskinen wrote: > On Wed, 2012-03-21 at 16:21 +0100, David Henningsson wrote: > >> > >> > A quick grep through the code shows that this is how we've been doing it >> > up till now, so we should probably keep it that way for consistency. >> > >> > So, just for education, wo

[pulseaudio-discuss] [PATCH] bluetooth: Don't free read_smoother in pa__done().

2012-03-22 Thread Tanu Kaskinen
pa__done() calls stop_thread(), and stop_thread() already frees the smoother. The duplicate freeing is not strictly a bug, but static analyzers (in this case Coverity) may complain about double-freeing, because when pa__done() "frees" the smoother (which doesn't actually ever happen), the pointer i

Re: [pulseaudio-discuss] no output from pulseaudio on embedded arm platform

2012-03-22 Thread Peter Meerwald
Hello Jan, > Opening a playback stream with sample specification 's16le 1ch 8000Hz' and > channel map 'mono'. playback is 1ch 8000Hz while your sink seems to be only able to do 2ch 16000Hz, maybe try to play samples which do not require PulseAudio to resample/remap? > sample spec: s

[pulseaudio-discuss] no output from pulseaudio on embedded arm platform

2012-03-22 Thread Jan Pohanka
Hello, I would like to run pulseaudio on our custom board with dm365 processor (arm926ej-s core). After some patching I have the sound running with alsa utils - I can use aplay and arecord commands and they works. I compiled pulseaudio 1.1 using buildroot. Now when I run pulseaudio deamon

[pulseaudio-discuss] [PATCH 3/3] alsa: Merge pa_alsa_setting_select with pa_alsa_path_select

2012-03-22 Thread Tanu Kaskinen
From: Jarkko Nikula As these functions are called together and are related, we might merge them and call setting_select from pa_alsa_path_select by passing optional pa_alsa_setting argument. Make also the setting_select static as it is not called outside of alsa-mixer.c after this change. [Addi

[pulseaudio-discuss] [PATCH 2/3] alsa: move pa_alsa_setting_select close to pa_alsa_path_select

2012-03-22 Thread Tanu Kaskinen
From: Jarkko Nikula Move pa_alsa_setting_select call just after the pa_alsa_path_select in [sink | source]_set_port_cb functions as there is no dependency to volume calculations that are done between these two calls. Idea here is to make possible to merge these two functions since they are called

[pulseaudio-discuss] [PATCH 1/3] alsa-mixer: Implement a new path option: "mute-during-activation".

2012-03-22 Thread Tanu Kaskinen
--- src/modules/alsa/alsa-mixer.c | 27 +++- src/modules/alsa/alsa-mixer.h |3 +- src/modules/alsa/alsa-sink.c |6 ++-- src/modules/alsa/alsa-source.c |6 ++-- .../alsa/mixer/paths/ana

[pulseaudio-discuss] [PATCH 0/3] New alsa path option: mute-during-activation

2012-03-22 Thread Tanu Kaskinen
At least on Nokia N9 this patch helps reducing pops when changing ports. Some earlier discussion: http://lists.freedesktop.org/archives/pulseaudio-discuss/2011-September/011402.html An earlier version of the first patch was submitted in October, but it wasn't merged, and it didn't get any comments

Re: [pulseaudio-discuss] express my interests in applying GSoC 2012

2012-03-22 Thread Tanu Kaskinen
On Wed, 2012-03-21 at 16:21 +0100, David Henningsson wrote: > 2012-03-21 15:29, rong deng skrev: > > 2) Would "%llx" solve this warning equally well? > > > > On 32-bit system, yes, but then, it's not portable. > > To print uin64_t on 32 bit system, we should use %llx, > > but to print it on 64