Re: [pulseaudio-discuss] [PATCH] sink, source: Add a mode to avoid resampling if possible

2017-01-29 Thread Tanu Kaskinen
On Sun, 2017-01-29 at 23:23 +0530, Arun Raghavan wrote: > > On Sun, 29 Jan 2017, at 02:29 PM, Tanu Kaskinen wrote: > > On Sun, 2017-01-29 at 10:29 +0530, Arun Raghavan wrote: > > > This adds an "avoid-resampling" option to daemon.conf that makes the > > >

Re: [pulseaudio-discuss] [PATCH] Fix: Distorted audio during Bluetooth SCO HFP/HSP playback

2017-01-31 Thread Tanu Kaskinen
On Mon, 2017-01-30 at 17:28 +0100, Georg Chini wrote: > On 27.01.2017 21:40, Georg Chini wrote: > > On 03.01.2017 18:17, Tanu Kaskinen wrote: > > > On Thu, 2016-12-15 at 12:34 +0530, Renjith Thomas wrote: > > > > Issue: When HFP/HSP profile is used with certain

Re: [pulseaudio-discuss] How to avoid socket activation for root?

2017-01-31 Thread Tanu Kaskinen
On Mon, 2017-01-30 at 10:17 -0300, Felipe Sateler wrote: > On 28 January 2017 at 11:24, Ahmed S. Darwish wrote: > > On Sat, Jan 28, 2017 at 04:00:31PM +0200, Ahmed S. Darwish wrote: > > > Unless we want a restricting directive directly inside systemd, > > > below trick seems to work here: > > > >

Re: [pulseaudio-discuss] bluetooth latencies

2017-01-31 Thread Tanu Kaskinen
On Mon, 2017-01-30 at 17:35 +0100, Georg Chini wrote: > Hello, > > in module-bluez5-device.c and module-bluez4-device.c, latencies for > bluetooth are defined as follows: > > #define FIXED_LATENCY_PLAYBACK_A2DP (25 * PA_USEC_PER_MSEC) > #define FIXED_LATENCY_PLAYBACK_SCO (125 * PA_USEC_PER_MSEC)

Re: [pulseaudio-discuss] [PATCH] Up max channels to 64 for MADI cards etc

2017-01-31 Thread Tanu Kaskinen
On Sat, 2017-01-28 at 17:30 -0800, Klaus Badelt wrote: > Great workaround for now. > > Do you see a chance of using up to 32 channels of any capture/playback are > used, instead of ignoring it? Yes, if you write a patch for that :) -- Tanu https://www.patreon.com/tanuk

Re: [pulseaudio-discuss] [PATCH] alsa-util: don't crash on devices with more than 32 channels

2017-01-31 Thread Tanu Kaskinen
On Sun, 2017-01-29 at 10:36 +0900, Takashi Sakamoto wrote: > On Jan 29 2017 01:08, Tanu Kaskinen wrote: > > The pa_channel_map_init_extend() call later in the function crashes if > > if ss->channels is greater than PA_CHANNELS_MAX. > > > > Reported here: > > ht

Re: [pulseaudio-discuss] [PATCH 1/3] refactor default sink/source handling

2017-01-31 Thread Tanu Kaskinen
On Mon, 2017-01-30 at 14:37 +0530, Arun Raghavan wrote: > > On Thu, 8 Sep 2016, at 04:36 PM, Tanu Kaskinen wrote: > > +void pa_core_update_default_sink(pa_core *core) { > > +pa_sink *best = NULL; > > +pa_sink *sink; > > +uint32_t idx; >

Re: [pulseaudio-discuss] [PATCH 3/3] sink, source: copy priority from active port

2017-01-31 Thread Tanu Kaskinen
On Mon, 2017-01-30 at 14:54 +0530, Arun Raghavan wrote: > On Thu, 8 Sep 2016, at 04:36 PM, Tanu Kaskinen wrote: > > It was reported in bug 93006 that on hardware that has HDMI and analog > > outputs on different cards, the HDMI sink is chosen by default even when > > headphone

Re: [pulseaudio-discuss] How to avoid socket activation for root?

2017-02-02 Thread Tanu Kaskinen
On Tue, 2017-01-31 at 11:18 -0300, Felipe Sateler wrote: > On 31 January 2017 at 10:45, Tanu Kaskinen wrote: > > On Mon, 2017-01-30 at 10:17 -0300, Felipe Sateler wrote: > > > On 28 January 2017 at 11:24, Ahmed S. Darwish > > > wrote: > > > > On Sat, Ja

[pulseaudio-discuss] [PATCH] systemd: disable socket activation for root

2017-02-03 Thread Tanu Kaskinen
We disallow autospawning for root, but when using systemd socket activation to start pulseaudio, that replaces the autospawning mechanism, and there was no similar "root protection" in socket activation. This patch disables the socket activation for root. Thanks to Felipe Sateler for coming up wit

[pulseaudio-discuss] [PATCH] iochannel: don't use variable length array in union

2017-02-04 Thread Tanu Kaskinen
Clang didn't like the variable length array: pulsecore/iochannel.c:358:17: error: fields must have a constant size: 'variable length array in structure' extension will never be supported uint8_t data[CMSG_SPACE(sizeof(int) * nfd)]; ^ Commit 451d1d6762 introduced the variab

Re: [pulseaudio-discuss] Classification of ucm scripts

2017-02-05 Thread Tanu Kaskinen
On Tue, 2017-01-31 at 17:29 +0530, kranthi kumar wrote: > Hi All, > > I am very new to pulseaudio environment. I have working ucm scripts for > playback and capture in HiFi profile. The requirement is that I need to > split the scripts into codec specific and machine specific. Codec and > machine

Re: [pulseaudio-discuss] combined sink does not work with pulseaudio-dlna

2017-02-06 Thread Tanu Kaskinen
On Wed, 2017-02-01 at 09:44 +0100, Ivan Kanis wrote: > Hello, > > I am trying to get sound output from the speaker plugged on my computer > and the Chromecast audio in the living room. > > I have launched the program pulseaudio-dlna and I can hear audio on the > Chromecast when I select it as pla

Re: [pulseaudio-discuss] PA 10 : paplay can't connect !

2017-02-06 Thread Tanu Kaskinen
On Wed, 2017-02-01 at 16:39 -0500, sean darcy wrote: > On 01/28/2017 07:22 AM, Tanu Kaskinen wrote: > > I suspect > > {fd19a5b3f9ab48aeae18d687a1e5c0cc}unix:/run/user/1001/pulse/native > > comes from the X server. On your Fedora laptop, module-x11-publish puts > >

[pulseaudio-discuss] [PATCH v2 0/2] Improve default device policy

2017-02-07 Thread Tanu Kaskinen
ing about what to do about that, so I'll submit that patch separately later, or a different patch that achieves the same goal. Tanu Kaskinen (2): refactor default sink/source handling core, device-port: check availability when choosing the default device src/modules/dbus/iface-core.c

[pulseaudio-discuss] [PATCH v2 1/2] refactor default sink/source handling

2017-02-07 Thread Tanu Kaskinen
Currently the default sink policy is simple: either the user has configured it explicitly, in which case we always use that as the default, or we pick the sink with the highest priority. The sink priorities are currently static, so there's no need to worry about updating the default sink when sink

[pulseaudio-discuss] [PATCH v2 2/2] core, device-port: check availability when choosing the default device

2017-02-07 Thread Tanu Kaskinen
It doesn't make sense to use a sink or source whose active port is unavailable, so let's take this into account when choosing the default sink and source. --- src/pulsecore/core.c| 16 src/pulsecore/device-port.c | 8 2 files changed, 24 insertions(+) diff --git

Re: [pulseaudio-discuss] [PATCH 3/3] sink, source: copy priority from active port

2017-02-07 Thread Tanu Kaskinen
On Thu, 2017-02-02 at 13:02 +0530, Arun Raghavan wrote: > On Tue, 31 Jan 2017, at 08:01 PM, Tanu Kaskinen wrote: > > On Mon, 2017-01-30 at 14:54 +0530, Arun Raghavan wrote: > > > I don't agree with this approach -- it conflates the priority values of > > > two diffe

Re: [pulseaudio-discuss] bluetooth latencies

2017-02-07 Thread Tanu Kaskinen
On Thu, 2017-02-02 at 11:29 +0100, Georg Chini wrote: > On 31.01.2017 14:51, Tanu Kaskinen wrote: > > On Mon, 2017-01-30 at 17:35 +0100, Georg Chini wrote: > > > Hello, > > > > > > in module-bluez5-device.c and module-bluez4-device.c, latencies for &g

Re: [pulseaudio-discuss] bluetooth latencies

2017-02-07 Thread Tanu Kaskinen
On Tue, 2017-02-07 at 15:51 +0100, Georg Chini wrote: > On 07.02.2017 15:28, Tanu Kaskinen wrote: > > On Thu, 2017-02-02 at 11:29 +0100, Georg Chini wrote: > > > On 31.01.2017 14:51, Tanu Kaskinen wrote: > > > > On Mon, 2017-01-30 at 17:35 +0100, Geor

Re: [pulseaudio-discuss] Unable to run pulseaudio on embedded platform

2017-02-08 Thread Tanu Kaskinen
On Thu, 2017-02-02 at 17:29 +0530, Rinaldo Rex wrote: > Hi, > > I'm working on an embedded platform which runs automotive grade Linux. I'm > trying to use pulseaudio for a while now and it keeps failing. I've tried > modifying the configuration files and also by removing them to regenerate > the d

Re: [pulseaudio-discuss] [PATCH] systemd: disable socket activation for root

2017-02-08 Thread Tanu Kaskinen
On Fri, 2017-02-03 at 10:17 -0300, Felipe Sateler wrote: > On 3 February 2017 at 05:51, Tanu Kaskinen wrote: > > We disallow autospawning for root, but when using systemd socket > > activation to start pulseaudio, that replaces the autospawning > > mechanism, and there

Re: [pulseaudio-discuss] [PATCH] systemd: disable socket activation for root

2017-02-09 Thread Tanu Kaskinen
On Wed, 2017-02-08 at 12:41 -0500, Joe wrote: > I'm completely out of my depth here - I program mostly in bash, but ... > > If you want to know if you can do something, one way is to try to do it > and see if it fails. > > What would happen if you just issued something harmless like a touch > c

Re: [pulseaudio-discuss] [PATCH] systemd: disable socket activation for root

2017-02-09 Thread Tanu Kaskinen
On Wed, 2017-02-08 at 10:06 -0300, Felipe Sateler wrote: > On 8 February 2017 at 09:36, Tanu Kaskinen wrote: > > On Fri, 2017-02-03 at 10:17 -0300, Felipe Sateler wrote: > > > On 3 February 2017 at 05:51, Tanu Kaskinen wrote: > > > > We disallow autospawning fo

Re: [pulseaudio-discuss] [PATCH] systemd: disable socket activation for root

2017-02-09 Thread Tanu Kaskinen
On Thu, 2017-02-09 at 20:52 +0200, Tanu Kaskinen wrote: > On Wed, 2017-02-08 at 10:06 -0300, Felipe Sateler wrote: > > On 8 February 2017 at 09:36, Tanu Kaskinen wrote: > > > On Fri, 2017-02-03 at 10:17 -0300, Felipe Sateler wrote: > > > > On 3 February 2017

[pulseaudio-discuss] [PATCH v2] systemd: disable socket activation for root

2017-02-09 Thread Tanu Kaskinen
We disallow autospawning for root, but when using systemd socket activation to start pulseaudio, that replaces the autospawning mechanism, and there was no similar "root protection" in socket activation. This patch disables the socket activation for root. --- src/daemon/systemd/user/pulseaudio.soc

Re: [pulseaudio-discuss] [PATCH v2] systemd: disable socket activation for root

2017-02-10 Thread Tanu Kaskinen
On Thu, 2017-02-09 at 22:35 +0200, Tanu Kaskinen wrote: > We disallow autospawning for root, but when using systemd socket > activation to start pulseaudio, that replaces the autospawning > mechanism, and there was no similar "root protection" in socket > activation. This pat

Re: [pulseaudio-discuss] Access control

2017-02-13 Thread Tanu Kaskinen
On Fri, 2017-01-27 at 17:15 +0100, Wim Taymans wrote: > Hi All, > > I took another look at the access control patches. > > There was a desire from Arun and Tanu to have the access control > checks more integrated > into the core objects instead of just some checks in the native protocol. I don't

[pulseaudio-discuss] [PATCH v3] systemd: disable socket activation for root

2017-02-14 Thread Tanu Kaskinen
We disallow autospawning for root, but when using systemd socket activation to start pulseaudio, that replaces the autospawning mechanism, and there was no similar "root protection" in socket activation. This patch disables the socket activation for root. --- src/daemon/systemd/user/pulseaudio.soc

Re: [pulseaudio-discuss] [PATCH] bluetooth: Correct fixed latency for HSP sink

2017-02-14 Thread Tanu Kaskinen
On Sat, 2017-02-04 at 19:34 +0100, Georg Chini wrote: > The fixed latency for the HSP sink was set to 125 ms plus one write block > size. > pa_sink_get_latency() however returns 28 ms like it does for A2DP and also for > the HSP source. > Therefore this patch corrects the fixed latency of the HSP

Re: [pulseaudio-discuss] [PATCH v2] bluetooth: Make use of getsockopt() to determine MTU configurable

2017-02-14 Thread Tanu Kaskinen
On Sat, 2017-02-04 at 20:32 +0100, Georg Chini wrote: > A recent patch changed the MTU size from the default value of 48 to the value > returned by getsockopt(). This breaks HSP for some setups. To circumvent the > problem, this patch introduces a boolean parameter "autodetect_mtu" for > module-blu

Re: [pulseaudio-discuss] [PATCH] bluetooth: Correct fixed latency for HSP sink

2017-02-14 Thread Tanu Kaskinen
On Tue, 2017-02-14 at 10:51 +0100, Georg Chini wrote: > On 14.02.2017 10:25, Tanu Kaskinen wrote: > > On Sat, 2017-02-04 at 19:34 +0100, Georg Chini wrote: > > > The fixed latency for the HSP sink was set to 125 ms plus one write block > > > size. > > > pa_sink

Re: [pulseaudio-discuss] [PATCH] backend-native: rebase of patch to support HSP HeadeSet profile

2017-02-14 Thread Tanu Kaskinen
On Sat, 2017-02-04 at 20:47 +0100, Georg Chini wrote: > Subject: [PATCH] backend-native: rebase of patch to support HSP HeadeSet > profile Usually it's not interesting that a patch was rebased. In this case it's good to mention it in the commit message, since the one who did the rebasing is diffe

Re: [pulseaudio-discuss] problem with webrtc and pulseaudio

2017-02-14 Thread Tanu Kaskinen
On Mon, 2017-02-13 at 13:50 -0300, Fatima Castiglione Maldonado 发 wrote: > Hi, > > am new to this list, my name is Fatima. Welcome to the list! > We are using a webapp called BigBlueButton.org for conferencing. > It work OK while using it under Firefox on Ubuntu 14.04. > When we use it under Chr

Re: [pulseaudio-discuss] [PATCH] backend-native: rebase of patch to support HSP HeadeSet profile

2017-02-14 Thread Tanu Kaskinen
On Tue, 2017-02-14 at 12:24 +0100, Georg Chini wrote: > On 14.02.2017 12:08, Tanu Kaskinen wrote: > > On Sat, 2017-02-04 at 20:47 +0100, Georg Chini wrote: > > > Subject: [PATCH] backend-native: rebase of patch to support HSP HeadeSet > > > profile > > > &

Re: [pulseaudio-discuss] Access control

2017-02-15 Thread Tanu Kaskinen
On Tue, 2017-02-14 at 13:28 +0100, Wim Taymans wrote: > On 13 February 2017 at 13:58, Tanu Kaskinen wrote: > > On Fri, 2017-01-27 at 17:15 +0100, Wim Taymans wrote: > > > Hi All, > > > > > > I think (1) is quite ugly and requires you to modify many funct

Re: [pulseaudio-discuss] problem with webrtc and pulseaudio

2017-02-15 Thread Tanu Kaskinen
On Tue, 2017-02-14 at 11:21 -0300, Fatima Castiglione Maldonado 发 wrote: > > So Chrome 56 on Ubuntu 14.04 works on other machines except that one > > notebook model? > > That is exactly our situation. > > > Does the volume meter for the microphone in pavucontrol show any activity? > > Yes. > >

Re: [pulseaudio-discuss] [PATCH 1/4] bluez5-device: Use correct constants for fixed latency in PA_SINK_MESSAGE_GET_LATENCY

2017-02-15 Thread Tanu Kaskinen
On Tue, 2017-02-14 at 14:33 +0100, Georg Chini wrote: > The PA_SINK_GET_LATENCY message handler falsely always added the A2DP latency > as fixed > latency instead of the profile specific constant. > > --- > src/modules/bluetooth/module-bluez5-device.c | 2 +- > 1 file changed, 1 insertion(+), 1

Re: [pulseaudio-discuss] [PATCH 2/4] backend-native: add support for the HSP Headset profile

2017-02-15 Thread Tanu Kaskinen
On Tue, 2017-02-14 at 14:33 +0100, Georg Chini wrote: > From: Wim Taymans > > This is a rebase of Wim Taymans patch to support the HSP headset role that has > somehow been forgotten. Original patch can be found at > https://lists.freedesktop.org/archives/pulseaudio-discuss/2015-February/023242.ht

[pulseaudio-discuss] [PATCH v3 0/2] Improve default device policy

2017-02-16 Thread Tanu Kaskinen
pa_core.default_sink/source a bit more verbose. - Dropped the patch that uses the active port's priority as the sink/source priority. The discussion is ongoing about what to do about that, so I'll submit that patch separately later, or a different patch that achieves the same goal.

[pulseaudio-discuss] [PATCH v3 2/2] core, device-port: check availability when choosing the default device

2017-02-16 Thread Tanu Kaskinen
It doesn't make sense to use a sink or source whose active port is unavailable, so let's take this into account when choosing the default sink and source. --- No changes in v2 or v3. src/pulsecore/core.c| 16 src/pulsecore/device-port.c | 8 2 files changed, 24

[pulseaudio-discuss] [PATCH v3 1/2] refactor default sink/source handling

2017-02-16 Thread Tanu Kaskinen
Currently the default sink policy is simple: either the user has configured it explicitly, in which case we always use that as the default, or we pick the sink with the highest priority. The sink priorities are currently static, so there's no need to worry about updating the default sink when sink

Re: [pulseaudio-discuss] problem with webrtc and pulseaudio

2017-02-16 Thread Tanu Kaskinen
On Wed, 2017-02-15 at 16:44 -0300, Fatima Castiglione Maldonado 发 wrote: > > The strange thing is that earlier you got some sound from chrome, andes > > if I understood correctly, you had pavucontrol open. If you have > > pavucontrol open, and you can see activity in the mic volume meter, it > > me

Re: [pulseaudio-discuss] combined sink does not work with pulseaudio-dlna

2017-02-16 Thread Tanu Kaskinen
On Wed, 2017-02-15 at 17:25 +0100, Ivan Kanis wrote: > The author of the dlna plugin has told me that the combined sink feature > is not implemented in his module. He has given me an alternative with > the loopback module: > > load-module module-loopback sink=alsa_output.pci-_00_1b.0.analog-st

Re: [pulseaudio-discuss] Access control

2017-02-16 Thread Tanu Kaskinen
On Wed, 2017-02-15 at 11:34 +0100, Timothy Hobbs wrote: > Obviously, this question reveals my total ignorance of pulseaudio > architecture, but why are you implementing access control in pulseaudio > itself, rather than using a firewall wrapper that parses the info being > sent down the pulse au

Re: [pulseaudio-discuss] [PATCH] bluez5-device: Use correct constants for fixed latency in PA_{SINK, SOURCE}_MESSAGE_GET_LATENCY

2017-02-16 Thread Tanu Kaskinen
On Wed, 2017-02-15 at 11:32 +0100, Georg Chini wrote: > The PA_{SINK,SOURCE}_GET_LATENCY message handlers falsely always added the > A2DP latency as fixed > latency instead of the profile specific constant. > > --- > src/modules/bluetooth/module-bluez5-device.c | 4 ++-- > 1 file changed, 2 inse

Re: [pulseaudio-discuss] Pulse audio's UNIX sockets and other questions about pulse and containers

2017-02-16 Thread Tanu Kaskinen
On Fri, 2017-02-10 at 19:08 +0100, Timothy Hobbs wrote: > Hello, > > I'm trying to discover the best way to share pulse audio between linux > containers. I have found a great deal of answers to this problem online. > Some of them involve sharing UNIX sockets, while others suggest > connecting v

Re: [pulseaudio-discuss] Handling of port latency offsets

2017-02-16 Thread Tanu Kaskinen
On Fri, 2017-02-10 at 14:38 +0100, Georg Chini wrote: > Hi, > > during my work on module-loopback I came upon an issue regarding the > handling > of the port latency offsets. > The functions pa_{source,sink}_get_latency_within_thread() return the > latencies > including the offset. Those functio

Re: [pulseaudio-discuss] Handling of port latency offsets

2017-02-18 Thread Tanu Kaskinen
On Thu, 2017-02-16 at 13:10 +0100, Georg Chini wrote: > On 16.02.2017 12:59, Tanu Kaskinen wrote: > > On Fri, 2017-02-10 at 14:38 +0100, Georg Chini wrote: > > > Hi, > > > > > > during my work on module-loopback I came upon an issue regarding the > > &g

Re: [pulseaudio-discuss] [PATCH 01/22] loopback: Rename sink_input_buffer to loopback_memblockq_length

2017-02-18 Thread Tanu Kaskinen
On Mon, 2017-02-13 at 13:01 +0100, Georg Chini wrote: > The variable does no longer represent the length of the whole sink input > buffer, > therefore it has been renamed. > > --- > src/modules/module-loopback.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) Looks good, applied.

Re: [pulseaudio-discuss] Signals from PA dbus interface

2017-02-18 Thread Tanu Kaskinen
On Fri, 2017-02-17 at 03:07 -0500, Paul Stone wrote: > Hoping someone with more familiarity can shed some light or point me in the > direction of the information I'm looking for. The basic problem is I'm > having problems capturing a profile change signal from PA via dbus using > Gio with CJS/GJS.

[pulseaudio-discuss] [PATCH] dbus: fix card profile change signals

2017-02-18 Thread Tanu Kaskinen
The "profile->card != c->card" check always evaluated to false, so the CardProfileUpdated signal was never sent. The reason: call_data was assigned to a pa_card_profile pointer, but the correct type is a pa_card pointer. --- src/modules/dbus/iface-card.c | 16 1 file changed, 8 in

Re: [pulseaudio-discuss] Signals from PA dbus interface

2017-02-18 Thread Tanu Kaskinen
On Sat, 2017-02-18 at 18:17 +0200, Tanu Kaskinen wrote: > On Fri, 2017-02-17 at 03:07 -0500, Paul Stone wrote: > > Hoping someone with more familiarity can shed some light or point me in the > > direction of the information I'm looking for. The basic problem is I'm > &

Re: [pulseaudio-discuss] problem with webrtc and pulseaudio

2017-02-19 Thread Tanu Kaskinen
On Thu, 2017-02-16 at 21:26 -0300, Fatima Castiglione Maldonado 发 wrote: > > To narrow down the problem further, you could try recording from the > > microphone at the same time when chrome is supposed to be recording > > from it. You can use this command: > > parecord --device=alsa_input.pci-_

Re: [pulseaudio-discuss] [PATCH] module-coreaudio-device: fix improper memory handling leading to crashes.

2017-02-19 Thread Tanu Kaskinen
On Sun, 2017-02-12 at 05:39 +0100, Mihai Moldovan wrote: > Make sure that we NULL pointers after freeing them. Otherwise bad things > happen. > > Signed-off-by: Mihai Moldovan > --- > src/modules/macosx/module-coreaudio-device.c | 8 > 1 file changed, 4 insertions(+), 4 deletions(-) Ca

[pulseaudio-discuss] [PATCH paprefs] build-sys: don't reference README when lynx is disabled

2017-02-19 Thread Tanu Kaskinen
lynx is required for generating README, so building failed when lynx was disabled. --- Makefile.am | 11 --- doc/Makefile.am | 9 ++--- 2 files changed, 14 insertions(+), 6 deletions(-) diff --git a/Makefile.am b/Makefile.am index 30b014c..6f14ab6 100644 --- a/Makefile.am +++ b/M

Re: [pulseaudio-discuss] [PATCH] Added fixed port 5004 option for rtp sender

2017-02-19 Thread Tanu Kaskinen
On Sat, 2017-02-11 at 11:55 +0100, archli...@nicohood.de wrote: > From: NicoHood > > --- > src/paprefs.cc| 23 --- > src/paprefs.glade | 56 > ++- > 2 files changed, 67 insertions(+), 12 deletions(-) Thanks! Applied.

Re: [pulseaudio-discuss] [PATCH 00/21 v2] Optimize latency handling in module-loopback

2017-02-20 Thread Tanu Kaskinen
On Sun, 2017-02-19 at 17:15 +0100, Georg Chini wrote: > This is version 2 of the new loopback patch series. This is actually v8 of the series, isn't it? I'd prefer you to not reset the version numbering (I use it in local branch names, for example). No need to resend the patches because of this, i

Re: [pulseaudio-discuss] [PATCH 01/21 v2] loopback: correct comments about the thread calling a function

2017-02-20 Thread Tanu Kaskinen
On Sun, 2017-02-19 at 17:15 +0100, Georg Chini wrote: > The comments were wrong and confusing. > > --- > src/modules/module-loopback.c | 10 +- > 1 file changed, 5 insertions(+), 5 deletions(-) Thanks, applied. -- Tanu https://www.patreon.com/tanuk

Re: [pulseaudio-discuss] problem with webrtc and pulseaudio

2017-02-20 Thread Tanu Kaskinen
On Sun, 2017-02-19 at 14:02 -0300, Fatima Castiglione Maldonado 发 wrote: > > Ok, that suggests that the problem is not with chrome specifically. But > > in your first mail you said that firefox works fine... > > Firefox works ok, have just tested it again to be sure. > > > If you record with pare

Re: [pulseaudio-discuss] Pulseadio on Raspberry Pi or C.H.I.P.

2017-02-21 Thread Tanu Kaskinen
On Tue, 2017-02-21 at 09:53 +, Emil Borconi-Szedressy wrote: > Hi. > > I'm trying to set up a small (and cheap) ARM SBC to operate as a HFP+A2DP > receiver. I have read loads of documentation on how to get this done and I > had some success on a Raspberry Pi 2 using pre-build packages from > J

Re: [pulseaudio-discuss] [PATCH 02/21 v2] loopback: Initialize latency at startup and during source/sink changes

2017-02-23 Thread Tanu Kaskinen
On Sun, 2017-02-19 at 17:15 +0100, Georg Chini wrote: > The current code does not make any attempt to initialize the end-to-end > latency > to a value near the desired latency. This leads to underruns at startup > because > the memblockq is initially empty and to very long adjustment times for lo

Re: [pulseaudio-discuss] problem with webrtc and pulseaudio

2017-02-23 Thread Tanu Kaskinen
On Tue, 2017-02-21 at 19:39 -0300, Fatima Castiglione Maldonado 发 wrote: > Done. > I have run both browsers and, while doing each audio test, executed pactl > list. Output is attached for both test instances. Chrome and firefox use the same latency configuration and the same sample rate, so neithe

Re: [pulseaudio-discuss] [PATCH 02/21 v2] loopback: Initialize latency at startup and during source/sink changes

2017-02-24 Thread Tanu Kaskinen
On Thu, 2017-02-23 at 17:55 +0100, Georg Chini wrote: > On 23.02.2017 12:17, Tanu Kaskinen wrote: > > On Sun, 2017-02-19 at 17:15 +0100, Georg Chini wrote: > > > The current code does not make any attempt to initialize the end-to-end > > > latency > > > to a

Re: [pulseaudio-discuss] [PATCH 02/21 v2] loopback: Initialize latency at startup and during source/sink changes

2017-02-24 Thread Tanu Kaskinen
On Thu, 2017-02-23 at 18:05 +0100, Georg Chini wrote: > On 23.02.2017 12:17, Tanu Kaskinen wrote: > > On Sun, 2017-02-19 at 17:15 +0100, Georg Chini wrote: > > > The current code does not make any attempt to initialize the end-to-end > > > latency > > > to a

Re: [pulseaudio-discuss] [PATCH 02/21 v2] loopback: Initialize latency at startup and during source/sink changes

2017-02-25 Thread Tanu Kaskinen
On Sat, 2017-02-25 at 12:13 +0100, Georg Chini wrote: > On 24.02.2017 19:19, Tanu Kaskinen wrote: > > On Thu, 2017-02-23 at 17:55 +0100, Georg Chini wrote: > > > On 23.02.2017 12:17, Tanu Kaskinen wrote: > > > > On Sun, 2017-02-19 at 17:15 +0100, Georg Chini

Re: [pulseaudio-discuss] [PATCH 02/21 v2] loopback: Initialize latency at startup and during source/sink changes

2017-02-25 Thread Tanu Kaskinen
On Sat, 2017-02-25 at 14:01 +0100, Georg Chini wrote: > On 25.02.2017 13:51, Tanu Kaskinen wrote: > > On Sat, 2017-02-25 at 12:13 +0100, Georg Chini wrote: > > > On 24.02.2017 19:19, Tanu Kaskinen wrote: > > > > On Thu, 2017-02-23 at 17:55 +0100, Georg Chini wrote:

Re: [pulseaudio-discuss] [PATCH 02/21 v2] loopback: Initialize latency at startup and during source/sink changes

2017-02-25 Thread Tanu Kaskinen
On Sat, 2017-02-25 at 19:21 +0200, Tanu Kaskinen wrote: > On Sat, 2017-02-25 at 14:01 +0100, Georg Chini wrote: > > On 25.02.2017 13:51, Tanu Kaskinen wrote: > > > The second adjustment does the right thing regardless of whether the > > > first adjustment was done or not

Re: [pulseaudio-discuss] [PATCH 02/21 v2] loopback: Initialize latency at startup and during source/sink changes

2017-02-27 Thread Tanu Kaskinen
On Sat, 2017-02-25 at 22:09 +0100, Georg Chini wrote: > On 25.02.2017 20:29, Tanu Kaskinen wrote: > > On Sat, 2017-02-25 at 19:21 +0200, Tanu Kaskinen wrote: > > > On Sat, 2017-02-25 at 14:01 +0100, Georg Chini wrote: > > > > On 25.02.2017 13:51, Tanu Kaskin

Re: [pulseaudio-discuss] [PATCH 02/21 v2] loopback: Initialize latency at startup and during source/sink changes

2017-02-27 Thread Tanu Kaskinen
On Sat, 2017-02-25 at 22:23 +0100, Georg Chini wrote: > > > Sorry, slowly I am thinking that you don't want the patches at all and > > > are nitpicking to discourage me. If you don't want the patches, just say > > > so. > > > > I assure you, I want these patches, especially this one, because this

Re: [pulseaudio-discuss] [PATCH 02/21 v2] loopback: Initialize latency at startup and during source/sink changes

2017-02-27 Thread Tanu Kaskinen
On Mon, 2017-02-27 at 08:44 +0100, Georg Chini wrote: > > > > > > > > > +/* If the source has overrun, assume that > > > > > > > > > the maximum it should have pushed is > > > > > > > > > + * one full source latency. It may still be > > > > > > > > > possible that

Re: [pulseaudio-discuss] [PATCH] module-coreaudio-device: fix improper memory handling leading to crashes.

2017-02-27 Thread Tanu Kaskinen
On Sat, 2017-02-25 at 10:38 +0100, Mihai Moldovan wrote: > Make sure that we NULL pointers after freeing them. Otherwise bad things > happen. > --- > src/modules/macosx/module-coreaudio-device.c | 8 > 1 file changed, 4 insertions(+), 4 deletions(-) Thanks, I applied both patches. -- T

Re: [pulseaudio-discuss] problem with webrtc and pulseaudio

2017-02-28 Thread Tanu Kaskinen
On Fri, 2017-02-24 at 23:52 -0300, Fatima Castiglione Maldonado 发 wrote: > > At this point I don't expect this problem to get solved, but if you want > > to still continue debugging, you could try one more time to get a > > PulseAudio log. Based on the earlier experiments it looks like chrome > > d

Re: [pulseaudio-discuss] [PATCH] Fix wrong input device in module-waveout

2017-02-28 Thread Tanu Kaskinen
On Thu, 2017-02-23 at 17:38 +0100, Moritz Bruder wrote: > Both input and output device were chosen with the same device number. > This is problematic as those numbers don't have to correspond. > Additionally the input device was named after the output device. This > commit adresses both issues by p

Re: [pulseaudio-discuss] [PATCH v9] loopback: Initialize latency at startup and during source/sink changes

2017-02-28 Thread Tanu Kaskinen
On Mon, 2017-02-27 at 13:54 +0100, Georg Chini wrote: > case SINK_INPUT_MESSAGE_POST: > > -pa_sink_input_assert_io_context(u->sink_input); > +pa_memblockq_push_align(u->memblockq, chunk); > + > +/* If push has not been called yet, latency adjustments i

Re: [pulseaudio-discuss] [PATCH v9] loopback: Initialize latency at startup and during source/sink changes

2017-02-28 Thread Tanu Kaskinen
On Tue, 2017-02-28 at 16:30 +0100, Georg Chini wrote: > On 28.02.2017 16:11, Tanu Kaskinen wrote: > > On Mon, 2017-02-27 at 13:54 +0100, Georg Chini wrote: > > > case SINK_INPUT_MESSAGE_POST: > > > > > > -pa_sink_i

Re: [pulseaudio-discuss] [PATCH] Fix wrong input device in module-waveout

2017-03-01 Thread Tanu Kaskinen
On Wed, 2017-03-01 at 15:54 +0100, Moritz Bruder wrote: > Am 28.02.2017 um 14:40 schrieb Tanu Kaskinen: > > On Thu, 2017-02-23 at 17:38 +0100, Moritz Bruder wrote: > > > Both input and output device were chosen with the same device number. > > > This is problematic as

Re: [pulseaudio-discuss] Control ladspa plugin using libpulse instead of the dbus interface

2017-03-05 Thread Tanu Kaskinen
On Sat, 2017-03-04 at 23:46 -0300, wellington wallace wrote: > Hello, > > I am able to dynamically change ladspa plugin controls using pulseaudio's > dbus interface. But as this api is not recommended I would like to do > the same using libpulse. I have read the documentation but I could not find

Re: [pulseaudio-discuss] [PATCH 1/3] backend-native: add support for the HSP Headset role

2017-03-06 Thread Tanu Kaskinen
On Thu, 2017-03-02 at 17:04 +0100, Georg Chini wrote: > #define HSP_AG_PROFILE "/Profile/HSPAGProfile" > +#define HSP_HS_PROFILE "/Profile/HSPHSProfile" > + > +/* RFCOMM channel for HSP headset role */ > +#define HSP_HS_DEFAULT_CHANNEL 3 The comment still doesn't explain why 3 is a good default.

Re: [pulseaudio-discuss] [PATCH v2 01/10] build: Add Coverity scan model

2017-03-07 Thread Tanu Kaskinen
On Tue, 2017-03-07 at 10:02 +0100, Peter Meerwald-Stadler wrote: > > Ack, go ahead and push this. Do we need to modify our Coverity project > > settings? > > pushed, no need to modify server side Coverity settings You seemed to push the whole patch set without responding to the issues that Hajime

[pulseaudio-discuss] New reviewer: Georg Chini

2017-03-07 Thread Tanu Kaskinen
Hi all, A small (or maybe big? or mid-sized?) announcement: Georg Chini kindly offered to help with reviewing patches, and we granted him commit rights too. This should reduce our problems with keeping up with the incoming patches. -- Tanu https://www.patreon.com/tanuk

Re: [pulseaudio-discuss] [PATCH 1/3 v2] backend-native: add support for the HSP Headset role

2017-03-07 Thread Tanu Kaskinen
On Tue, 2017-03-07 at 13:44 +0100, Georg Chini wrote: > From: Wim Taymans > > > This is a rebase of Wim Taymans patch to support the HSP headset role that has > somehow been forgotten. Original patch can be found at > https://lists.freedesktop.org/archives/pulseaudio-discuss/2015-February/023242

Re: [pulseaudio-discuss] [PATCH] iochannel: don't use variable length array in union

2017-03-07 Thread Tanu Kaskinen
On Tue, 2017-03-07 at 13:42 +0100, Georg Chini wrote: > On 04.02.2017 13:19, Tanu Kaskinen wrote: > > Clang didn't like the variable length array: > > > > pulsecore/iochannel.c:358:17: error: fields must have a constant size: > > 'variable length array

Re: [pulseaudio-discuss] [PATCH v2 1/2] Fix wrong input device in module-waveout

2017-03-07 Thread Tanu Kaskinen
On Wed, 2017-03-01 at 19:29 +0100, Moritz Bruder wrote: > Both input and output device were chosen with the same device number. > This is problematic as those numbers don't have to correspond. > Additionally the input device was named after the output device. This > commit adresses both issues by p

Re: [pulseaudio-discuss] [PATCH 2/3] bluetooth: use native and ofono backends in parallel with headset=auto

2017-03-09 Thread Tanu Kaskinen
On Thu, 2017-03-02 at 17:04 +0100, Georg Chini wrote: > This patch changes the behavior of the headset=auto switch for > module-bluez5-discover. > With headset=auto now both backends will be active at the same time for the > AG role and > the switching between the backends is only done for the HS

Re: [pulseaudio-discuss] [PATCH 2/3] bluetooth: use native and ofono backends in parallel with headset=auto

2017-03-10 Thread Tanu Kaskinen
On Fri, 2017-03-10 at 08:13 +0100, Georg Chini wrote: > On 10.03.2017 00:33, Tanu Kaskinen wrote: > > On Thu, 2017-03-02 at 17:04 +0100, Georg Chini wrote: > > > -pa_bluetooth_backend *pa_bluetooth_native_backend_new(pa_core *c, > > > pa_bluetooth_discovery *y) {

Re: [pulseaudio-discuss] [PATCH 2/3] bluetooth: use native and ofono backends in parallel with headset=auto

2017-03-10 Thread Tanu Kaskinen
On Fri, 2017-03-10 at 10:19 +0100, Georg Chini wrote: > On 10.03.2017 08:13, Georg Chini wrote: > > On 10.03.2017 00:33, Tanu Kaskinen wrote: > > > On Thu, 2017-03-02 at 17:04 +0100, Georg Chini wrote: > > > > This patch changes the behavior of the headset=auto swi

Re: [pulseaudio-discuss] [PATCH 2/3] bluetooth: use native and ofono backends in parallel with headset=auto

2017-03-11 Thread Tanu Kaskinen
On Fri, 2017-03-10 at 21:24 +0100, Georg Chini wrote: > On 10.03.2017 19:21, Tanu Kaskinen wrote: > > On Fri, 2017-03-10 at 08:13 +0100, Georg Chini wrote: > > > On 10.03.2017 00:33, Tanu Kaskinen wrote: > > > > On Thu, 2017-03-02 at 17:04 +0100, Georg Chini wrote: &

Re: [pulseaudio-discuss] Fwd: pa_source_info question

2017-03-11 Thread Tanu Kaskinen
On Fri, 2017-03-10 at 21:38 -0300, Alexandre Vicenzi wrote: > Hi, > > I'm calling pa_context_get_source_info_list to get the complete source > list and I would like to know if pa_source_info is the current default > source. > > I know that I could call pulse_get_server_info to get the default sin

Re: [pulseaudio-discuss] [PATCH 1/2, v3] bluetooth: use native and ofono backends in parallel with headset=auto

2017-03-11 Thread Tanu Kaskinen
On Sat, 2017-03-11 at 13:30 +0100, Georg Chini wrote: > This patch changes the behavior of the headset=auto switch for > module-bluez5-discover. > With headset=auto now both backends will be active at the same time for the > AG role and > the switching between the backends is only done for the HS

Re: [pulseaudio-discuss] [PATCH 2/2, v2] backend-native: send DBus signal on headset button press

2017-03-11 Thread Tanu Kaskinen
On Fri, 2017-03-10 at 21:22 +0100, Georg Chini wrote: > Currently pressing the headset button is ignored. This patch sends a DBUS > signal that can be caught by applications to trigger events like picking > up or ending a phone call. > --- > > No changes in v2 > > src/modules/bluetooth/backend-n

Re: [pulseaudio-discuss] [PATCH 2/2, v2] backend-native: send DBus signal on headset button press

2017-03-12 Thread Tanu Kaskinen
On Sat, 2017-03-11 at 20:27 +0100, Georg Chini wrote: > > I tried searching the net, and it looks like ButtonPress is not a > > documented signal. Did you invent the signal yourself? If it's your > > invention, I don't think the org.bluez.Headset interface should be > > used. The org.bluez namespac

Re: [pulseaudio-discuss] [PATCH v3 1/2] refactor default sink/source handling

2017-03-12 Thread Tanu Kaskinen
On Sun, 2017-03-12 at 16:45 +0100, Georg Chini wrote: > On 16.02.2017 11:09, Tanu Kaskinen wrote: > > "Refactor" is the wrong word, you are changing the logic. > Maybe redesign is a better verb. Indeed. I think I'll change it to "improve" ("redesig

Re: [pulseaudio-discuss] [PATCH] echo-cancel: Fix assert with webrtc's built-in drift compensation

2017-03-13 Thread Tanu Kaskinen
On Mon, 2017-03-13 at 16:07 +0530, Arun Raghavan wrote: > The webrtc canceller requires that the set_stream_drift_samples() method > be called before every call of ProcessStream(). We do kind of leak this > into the generic bits of module-echo-cancel, but this should not be > harmful in the general

Re: [pulseaudio-discuss] [PATCH v3] bluez5-util: Disconnect AG devices when ofono is started and headset=auto

2017-03-13 Thread Tanu Kaskinen
On Mon, 2017-03-13 at 09:48 +0100, Georg Chini wrote: > With headset=auto it is possible that AG devices are connected and handled > via the native backend when ofono is started. Because the HS role will then > be disabled in the native backend, AG devices must be disconnected and any > future conn

Re: [pulseaudio-discuss] [PATCH 2/2, v2] backend-native: send DBus signal on headset button press

2017-03-13 Thread Tanu Kaskinen
On Mon, 2017-03-13 at 09:36 +0100, Georg Chini wrote: > On 12.03.2017 22:46, Tanu Kaskinen wrote: > > On Sat, 2017-03-11 at 20:27 +0100, Georg Chini wrote: > > > The reason for this patch was that I wrote an application to handle > > > mobile phones and it was a nice fe

Re: [pulseaudio-discuss] [PATCH v3 1/2] refactor default sink/source handling

2017-03-13 Thread Tanu Kaskinen
On Mon, 2017-03-13 at 07:57 +0100, Georg Chini wrote: > On 12.03.2017 23:07, Tanu Kaskinen wrote: > > On Sun, 2017-03-12 at 16:45 +0100, Georg Chini wrote: > > > On 16.02.2017 11:09, Tanu Kaskinen wrote: > > > > > > "Refactor" is the wrong word, you a

Re: [pulseaudio-discuss] [PATCH v3 1/2] refactor default sink/source handling

2017-03-13 Thread Tanu Kaskinen
On Mon, 2017-03-13 at 18:45 +0100, Georg Chini wrote: > On 13.03.2017 17:45, Tanu Kaskinen wrote: > > On Mon, 2017-03-13 at 07:57 +0100, Georg Chini wrote: > > > Yes, it is no regression. But anyway, while you are improving it, I > > > would use a string for the user con

Re: [pulseaudio-discuss] [PATCH v3 1/2] refactor default sink/source handling

2017-03-13 Thread Tanu Kaskinen
On Mon, 2017-03-13 at 20:34 +0100, Georg Chini wrote: > One more thing before you push your patch: In source_put_cb() > and sink_put_cb() you do not use the return value of > create_dbus_object_for_*(). There should be a (void) before the > calls to avoid warnings about the unused return value. Di

Re: [pulseaudio-discuss] [PATCH v4] bluez5-util: Disconnect AG devices when ofono is started and headset=auto

2017-03-14 Thread Tanu Kaskinen
On Tue, 2017-03-14 at 07:34 +0100, Georg Chini wrote: > With headset=auto it is possible that AG devices are connected and handled > via the native backend when ofono is started. Because the HS role will then > be disabled in the native backend, AG devices must be disconnected and any > future conn

<    3   4   5   6   7   8   9   10   11   12   >