Re: [pulseaudio-discuss] need help with audio sync

2015-05-05 Thread Georg Chini
On 06.05.2015 04:17, golden wrote: Dear PulseAudio folks, We are using PulseAudio in our automotive project, the progress is pretty good so far. I need some help for solving the sync problems between two speakers. The pic below is the data flow of the two speakers:

[pulseaudio-discuss] need help with audio sync

2015-05-05 Thread golden
Dear PulseAudio folks, We are using PulseAudio in our automotive project, the progress is pretty good so far. I need some help for solving the sync problems between two speakers. The pic below is the data flow of the two speakers: below is the pactl list modules infor

Re: [pulseaudio-discuss] [PATCH v3 0/6] Add default volume to ports

2015-05-05 Thread Alexander E. Patrakov
06.05.2015 01:40, David Henningsson wrote: On 2015-05-05 17:28, Alexander E. Patrakov wrote: 05.05.2015 19:08, Tanu Kaskinen wrote: On Tue, 2015-05-05 at 17:31 +0500, Alexander E. Patrakov wrote: 27.04.2015 16:34, Tanu Kaskinen wrote: Here's the third version of the patch set that aims to f

Re: [pulseaudio-discuss] [PATCH v3 0/6] Add default volume to ports

2015-05-05 Thread David Henningsson
On 2015-05-05 17:28, Alexander E. Patrakov wrote: 05.05.2015 19:08, Tanu Kaskinen wrote: On Tue, 2015-05-05 at 17:31 +0500, Alexander E. Patrakov wrote: 27.04.2015 16:34, Tanu Kaskinen wrote: Here's the third version of the patch set that aims to fix the Aureon volume bug[1]. Changes in v3:

Re: [pulseaudio-discuss] [PATCH 0/5] CLI meta commands

2015-05-05 Thread Peter Meerwald
Hallo Tanu, > > > > patch 4 implements a new .ifenv CLI meta command I found useful: > > > > executes commands > > > > only when an environment variable exists (optionally with a certain > > > > value) > > > > > > Can you elaborate, what problem you solve with environment variables? Is > > > th

[pulseaudio-discuss] [PATCH v2] man: Document .ifexists CLI meta command

2015-05-05 Thread Peter Meerwald
v2 (thanks Tanu) * describe purpose and file search Signed-off-by: Peter Meerwald Cc: Tanu Kaskinen --- man/pulse-cli-syntax.5.xml.in | 13 + 1 file changed, 13 insertions(+) diff --git a/man/pulse-cli-syntax.5.xml.in b/man/pulse-cli-syntax.5.xml.in index 071b0cf..0a0faba 100644

Re: [pulseaudio-discuss] [PATCH v3 0/6] Add default volume to ports

2015-05-05 Thread Alexander E. Patrakov
05.05.2015 19:08, Tanu Kaskinen wrote: On Tue, 2015-05-05 at 17:31 +0500, Alexander E. Patrakov wrote: 27.04.2015 16:34, Tanu Kaskinen wrote: Here's the third version of the patch set that aims to fix the Aureon volume bug[1]. Changes in v3: - Use pa_parse_volume() in pa_config_parse_volume

[pulseaudio-discuss] [PATCH 5/8] card-restore: Save and restore "preferred profile" of port

2015-05-05 Thread David Henningsson
Signed-off-by: David Henningsson --- src/modules/module-card-restore.c | 63 +++ 1 file changed, 58 insertions(+), 5 deletions(-) diff --git a/src/modules/module-card-restore.c b/src/modules/module-card-restore.c index 5c55cec..5d278c1 100644 --- a/src/module

[pulseaudio-discuss] [PATCH 8/8] module-switch-on-port-available: Route to preferred profile

2015-05-05 Thread David Henningsson
This makes the routing slightly more aggressive: * It will try to route to another profile, if such a profile is preferred by the port. * It will allow changing profiles on transitions both to PA_AVAILABLE_YES and PA_AVAILABLE_NO To accommodate there is also some refactoring. Signed-off

[pulseaudio-discuss] [PATCH 2/8] card: Add variables for splitting up a profile

2015-05-05 Thread David Henningsson
It can be useful for routing modules to know if a profile consists of an output and input part, in order to e g change output profile while keeping the input profile unchanged. For now filling in these fields is optional and a routing module must be able to handle NULL in these fields. Signed-off

[pulseaudio-discuss] [PATCH 6/8] module-switch-on-port-available: Use input and output names

2015-05-05 Thread David Henningsson
In case input or output names are filled in, we can use this to get a better match in the profile_good_for_input/output functions instead of guessing based on number of sources and channels. Signed-off-by: David Henningsson --- src/modules/module-switch-on-port-available.c | 7 +++ 1 file ch

[pulseaudio-discuss] [PATCH 1/8] card: Use pa_xmalloc0 when creating new cards and profiles

2015-05-05 Thread David Henningsson
Signed-off-by: David Henningsson --- src/pulsecore/card.c | 13 ++--- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/src/pulsecore/card.c b/src/pulsecore/card.c index 6f9391e..f9a5ddc 100644 --- a/src/pulsecore/card.c +++ b/src/pulsecore/card.c @@ -41,14 +41,9 @@ pa_card_p

[pulseaudio-discuss] [PATCH 0/8] Save/restore profile per port

2015-05-05 Thread David Henningsson
This is essentially the patch set to avoid the case where * Speakers on 2.1 surround * plug in headphones, profile switches to stereo * unplug headphones, profile remains on stereo and now your subwoofer output disappeared (bad user experience), unless you select the profile manually again

[pulseaudio-discuss] [PATCH 7/8] module-alsa-card: Report available ports before unavailable ones

2015-05-05 Thread David Henningsson
In case the same jack causes one port to become available and another one unavailable, the available should be reported first. This is to avoid unnecessary changes: e g, consider a 'Headphone Jack' making 'Headphone' available and 'Speaker' unavailable. In case the unavailable change triggers firs

[pulseaudio-discuss] [PATCH 4/8] device-port: Add preferred_profile field to pa_device_port

2015-05-05 Thread David Henningsson
Signed-off-by: David Henningsson --- src/pulsecore/device-port.c | 1 + src/pulsecore/device-port.h | 1 + 2 files changed, 2 insertions(+) diff --git a/src/pulsecore/device-port.c b/src/pulsecore/device-port.c index cfe2a80..38f7354 100644 --- a/src/pulsecore/device-port.c +++ b/src/pulsecore/d

[pulseaudio-discuss] [PATCH 3/8] alsa-mixer: Fill in input and output names

2015-05-05 Thread David Henningsson
Fill in input_name and output_name to make routing easier for routing modules. Signed-off-by: David Henningsson --- src/modules/alsa/alsa-mixer.c | 14 +- src/modules/alsa/alsa-mixer.h | 3 +++ src/modules/alsa/module-alsa-card.c | 2 ++ 3 files changed, 18 insertions(+

Re: [pulseaudio-discuss] [PATCH 2/5] man: Document .ifexists CLI meta command

2015-05-05 Thread Peter Meerwald
> On Tue, 2015-05-05 at 00:13 +0200, Peter Meerwald wrote: > > Signed-off-by: Peter Meerwald > > --- > > man/pulse-cli-syntax.5.xml.in | 11 +++ > > 1 file changed, 11 insertions(+) > > > > diff --git a/man/pulse-cli-syntax.5.xml.in b/man/pulse-cli-syntax.5.xml.in > > index 071b0cf..bb3

Re: [pulseaudio-discuss] [PATCH v3 0/6] Add default volume to ports

2015-05-05 Thread Tanu Kaskinen
On Tue, 2015-05-05 at 17:31 +0500, Alexander E. Patrakov wrote: > 27.04.2015 16:34, Tanu Kaskinen wrote: > > Here's the third version of the patch set that aims to fix the Aureon > > volume bug[1]. > > > > Changes in v3: > > - Use pa_parse_volume() in pa_config_parse_volume(). > > - Add mute an

Re: [pulseaudio-discuss] [PATCH v3 2/2] bluetooth: Add optional heuristic for switching between hsp and a2dp profiles

2015-05-05 Thread Arun Raghavan
On 5 May 2015 at 18:13, Pali Rohár wrote: > On Tuesday 05 May 2015 17:40:28 Arun Raghavan wrote: >> On 1 November 2014 at 04:20, Pali Rohár wrote: >> > Not all VOIP applications (specially those which use alsa) set media.role >> > to >> > phone. This means we need some heuristic to determinate i

Re: [pulseaudio-discuss] System mode & SHM

2015-05-05 Thread Tanu Kaskinen
On Tue, 2015-05-05 at 13:51 +0200, Pali Rohár wrote: > On Tuesday 09 December 2014 22:58:07 Pali Rohár wrote: > > On Sunday 07 December 2014 00:23:08 Tanu Kaskinen wrote: > > > On Sat, 2014-12-06 at 23:59 +0100, Pali Rohár wrote: > > > > On Saturday 06 December 2014 23:20:10 Tanu Kaskinen wrote: >

Re: [pulseaudio-discuss] [PATCH 0/5] CLI meta commands

2015-05-05 Thread Tanu Kaskinen
On Tue, 2015-05-05 at 12:33 +0200, Peter Meerwald wrote: > Hello Tanu, > > > > patch 4 implements a new .ifenv CLI meta command I found useful: executes > > > commands > > > only when an environment variable exists (optionally with a certain value) > > > > Can you elaborate, what problem you sol

Re: [pulseaudio-discuss] [PATCH 2/5] man: Document .ifexists CLI meta command

2015-05-05 Thread Tanu Kaskinen
On Tue, 2015-05-05 at 00:13 +0200, Peter Meerwald wrote: > Signed-off-by: Peter Meerwald > --- > man/pulse-cli-syntax.5.xml.in | 11 +++ > 1 file changed, 11 insertions(+) > > diff --git a/man/pulse-cli-syntax.5.xml.in b/man/pulse-cli-syntax.5.xml.in > index 071b0cf..bb3ff70 100644 > ---

Re: [pulseaudio-discuss] [PATCH v3 2/2] bluetooth: Add optional heuristic for switching between hsp and a2dp profiles

2015-05-05 Thread Pali Rohár
On Tuesday 05 May 2015 17:40:28 Arun Raghavan wrote: > On 1 November 2014 at 04:20, Pali Rohár wrote: > > Not all VOIP applications (specially those which use alsa) set media.role to > > phone. This means we need some heuristic to determinate if we want to switch > > from a2dp to hsp profile based

Re: [pulseaudio-discuss] [PATCH v3 0/6] Add default volume to ports

2015-05-05 Thread Alexander E. Patrakov
27.04.2015 16:34, Tanu Kaskinen wrote: Here's the third version of the patch set that aims to fix the Aureon volume bug[1]. Changes in v3: - Use pa_parse_volume() in pa_config_parse_volume(). - Add mute and save_mute fields to pa_sink/source_port_changed_hook_data to make the mute handli

Re: [pulseaudio-discuss] [PATCH v3 2/2] bluetooth: Add optional heuristic for switching between hsp and a2dp profiles

2015-05-05 Thread Arun Raghavan
On 1 November 2014 at 04:20, Pali Rohár wrote: > Not all VOIP applications (specially those which use alsa) set media.role to > phone. This means we need some heuristic to determinate if we want to switch > from a2dp to hsp profile based on number and types of source output > (recording) > stream

Re: [pulseaudio-discuss] Patch review status wiki page updated

2015-05-05 Thread Pali Rohár
PING again! Another three months passed and my patches which finally makes bluetooth voice calls on Linux via pulseaudio usabe are still not merged nor commented since September of last year. Is there somebody who care about bluetooth support? Or is audio and bluetooth subsystems dead on Linux and

Re: [pulseaudio-discuss] System mode & SHM

2015-05-05 Thread Pali Rohár
On Tuesday 09 December 2014 22:58:07 Pali Rohár wrote: > On Sunday 07 December 2014 00:23:08 Tanu Kaskinen wrote: > > On Sat, 2014-12-06 at 23:59 +0100, Pali Rohár wrote: > > > On Saturday 06 December 2014 23:20:10 Tanu Kaskinen wrote: > > > > On Sun, 2014-11-23 at 14:43 +0100, Pali Rohár wrote: >

Re: [pulseaudio-discuss] [PATCH] Add a .travis.yml for Travis CI

2015-05-05 Thread Arun Raghavan
On 30 April 2015 at 05:52, Felipe Sateler wrote: > Installs all the build dependencies, and runs make check and > check-daemon. > > V1: Based on Arun Raghavan's travis file. Added trusty repositories to get > newer libs. > > V2: Explicitly list all dependencies instead of relying on the Ubuntu > p

Re: [pulseaudio-discuss] [PATCH] protocol-native: Fix source latency calculation in ADJUST_LATENCY mode

2015-05-05 Thread Arun Raghavan
On 13 April 2015 at 18:05, Arun Raghavan wrote: > On 13 April 2015 at 17:49, David Henningsson > wrote: >> >> >> On 2015-04-13 11:26, a...@accosted.net wrote: >>> >>> From: Arun Raghavan >>> >>> This fixes buffer attr calculation so that we set the source latency to >>> the requested latency. Th

Re: [pulseaudio-discuss] [PATCH 0/5] CLI meta commands

2015-05-05 Thread Peter Meerwald
Hello Tanu, > > patch 4 implements a new .ifenv CLI meta command I found useful: executes > > commands > > only when an environment variable exists (optionally with a certain value) > > Can you elaborate, what problem you solve with environment variables? Is > there no reasonable alternative? He

Re: [pulseaudio-discuss] [PATCH] alsa-mixer: Make line out path unavailable when "Front Headphone" is plugged in

2015-05-05 Thread Tanu Kaskinen
On Tue, 2015-05-05 at 09:45 +0200, David Henningsson wrote: > This case was apparently overlooked. > > Signed-off-by: David Henningsson > --- > src/modules/alsa/mixer/paths/analog-output-lineout.conf | 4 > 1 file changed, 4 insertions(+) > > diff --git a/src/modules/alsa/mixer/paths/analo

Re: [pulseaudio-discuss] [PATCH 0/5] CLI meta commands

2015-05-05 Thread Tanu Kaskinen
On Tue, 2015-05-05 at 00:13 +0200, Peter Meerwald wrote: > patch 4 implements a new .ifenv CLI meta command I found useful: executes > commands > only when an environment variable exists (optionally with a certain value) Can you elaborate, what problem you solve with environment variables? Is the

[pulseaudio-discuss] [PATCH] alsa-mixer: Make line out path unavailable when "Front Headphone" is plugged in

2015-05-05 Thread David Henningsson
This case was apparently overlooked. Signed-off-by: David Henningsson --- src/modules/alsa/mixer/paths/analog-output-lineout.conf | 4 1 file changed, 4 insertions(+) diff --git a/src/modules/alsa/mixer/paths/analog-output-lineout.conf b/src/modules/alsa/mixer/paths/analog-output-lineout.