Re: [pulseaudio-discuss] [PATCH] tunnel-{sink, source}-new: Fix assertion when used with loopback or combine-sink

2017-08-16 Thread Tanu Kaskinen
On Sat, 2017-08-12 at 22:29 +0200, Georg Chini wrote: > Currently pulseaudio crashes with an assertion in > pa_rtpoll_item_new_asyncmsgq_read() > or pa_rtpoll_item_new_asyncmsgq_write() if a loopback is applied to a > tunnel-new > sink or source, because tunnel-{sink,source}-new do not set >

Re: [pulseaudio-discuss] PulseAudio Network Sink: Respect alternative sample rate and format

2017-08-16 Thread Tanu Kaskinen
On Thu, 2017-08-10 at 20:33 +0200, Maximilian Böhm wrote: > A bit unlucky but at least now I know that the tunnel sink doesn't > switch the sample rate – after you initiate a server connection, > right? So, to be sure, what happens when I start a 48 kHz stream on > my client? The tunnel sample

Re: [pulseaudio-discuss] [PATCH 1/3] core: add generic message interface

2017-08-16 Thread Tanu Kaskinen
On Sun, 2017-08-06 at 15:29 +0200, Georg Chini wrote: > On 06.08.2017 07:26, Tanu Kaskinen wrote: > > On Sat, 2017-08-05 at 21:32 +0200, Georg Chini wrote: > > > On 05.08.2017 13:37, Tanu Kaskinen wrote: > > > > On Fri, 2017-08-04 at 15:37 +0200, Georg Chini wrote: &

Re: [pulseaudio-discuss] unsubscribe not working

2017-08-15 Thread Tanu Kaskinen
On Tue, 2017-08-15 at 19:03 +0200, Bernhard Landauer wrote: > Hi guys, > > I have now twice used the online form to unsubscribe from this mailing > list and even received a confirmation email. > Yet, I am still receiving all the mails from the list. > > Can someone please stop this for me?

Re: [pulseaudio-discuss] [PATCH 1/3] core: add generic message interface

2017-08-05 Thread Tanu Kaskinen
On Sat, 2017-08-05 at 21:32 +0200, Georg Chini wrote: > On 05.08.2017 13:37, Tanu Kaskinen wrote: > > On Fri, 2017-08-04 at 15:37 +0200, Georg Chini wrote: > > > This patch adds a new feature to the core which allows to exchange > > > messages between objects. An obj

Re: [pulseaudio-discuss] [PATCH 1/3] core: add generic message interface

2017-08-05 Thread Tanu Kaskinen
On Fri, 2017-08-04 at 15:37 +0200, Georg Chini wrote: > This patch adds a new feature to the core which allows to exchange > messages between objects. An object can register/unregister a message > handler with pa_core_message_handler_{register, unregister}() while > any other object can send a

Re: [pulseaudio-discuss] [PATCH] core: Provide a replacement for scandir on Win32

2017-08-04 Thread Tanu Kaskinen
On Fri, 2017-08-04 at 15:05 +0200, Vadim Troshchinskiy wrote: > В письме от четверг, 3 августа 2017 г. 11:08:44 CEST пользователь Tanu > Kaskinen написал: > > Thanks for the patch! It would be good to get this in the upcoming > > release. Some complaints below. > > Hell

Re: [pulseaudio-discuss] [PATCH 2/2] loopback: Track and use average adjust time

2017-08-04 Thread Tanu Kaskinen
On Mon, 2017-04-17 at 21:37 +0200, Georg Chini wrote: > @@ -327,11 +335,20 @@ static void adjust_rates(struct userdata *u) { > } > > /* Allow one underrun per hour */ > -if (u->iteration_counter * u->adjust_time / PA_USEC_PER_SEC / 3600 > > run_hours) { > +if

Re: [pulseaudio-discuss] [PATCH] alsa-mixer: set PCM Capture Source for iec958 input

2017-08-04 Thread Tanu Kaskinen
On Fri, 2017-08-04 at 15:18 +0530, Arun Raghavan wrote: > On Fri, 4 Aug 2017, at 01:51 PM, Tanu Kaskinen wrote: > > It was reported that on a certain USB card, identified as > > "0d8c:0102 C-Media Electronics, Inc. CM106 Like Sound Device", > > the "PCM C

[pulseaudio-discuss] [PATCH] alsa-mixer: set PCM Capture Source for iec958 input

2017-08-04 Thread Tanu Kaskinen
It was reported that on a certain USB card, identified as "0d8c:0102 C-Media Electronics, Inc. CM106 Like Sound Device", the "PCM Capture Source" element had to be set to "IEC958 In" before the iec958 input would work. The iec958-stereo-input.conf file didn't exist before, although the path was

Re: [pulseaudio-discuss] [PATCH] core: Provide a replacement for scandir on Win32

2017-08-03 Thread Tanu Kaskinen
Thanks for the patch! It would be good to get this in the upcoming release. Some complaints below. On Mon, 2017-07-24 at 16:34 +0200, Vadim Troshchinskiy wrote: > diff --git a/src/pulsecore/conf-parser.c b/src/pulsecore/conf-parser.c > index 60345adf..a08ff9e8 100644 > ---

[pulseaudio-discuss] [PATCH] echo-cancel: don't set latency range if the device doesn't support dynamic latency

2017-08-03 Thread Tanu Kaskinen
pa_sink/source_set_latency_range() has an assertion that is triggered when setting the latency range on a fixed latency device. BugLink: https://bugs.freedesktop.org/show_bug.cgi?id=102020 --- src/modules/echo-cancel/module-echo-cancel.c | 6 -- 1 file changed, 4 insertions(+), 2

Re: [pulseaudio-discuss] Internal working of pulseaudio init

2017-08-02 Thread Tanu Kaskinen
On Wed, 2017-08-02 at 15:17 +0530, Sathish Narasimman wrote: > Hi, > > I would like to know how the pa__init functions are initialized. > Looking into the code each pa__init are replaced with a unique MACRO. > > I was trying to find the module-loopback.c pa__init starting. And how > to use this

[pulseaudio-discuss] [PATCH] device-port, switch-on-port-available: fix automatic profile changing when current profile is off

2017-07-31 Thread Tanu Kaskinen
module-switch-on-port-available didn't do anything when a port changes its status if the card didn't have any sinks or sources. This was to avoid bad things during card initialization, but the if condition also prevented any profile switches away from the "off" profile, because the card has no

Re: [pulseaudio-discuss] [PATCH] Fix pacat memory issue

2017-07-30 Thread Tanu Kaskinen
On Sun, 2017-07-30 at 23:40 +0300, Denis Shulyaka wrote: > If only part of the buffer is written into stdout by stdout_callback, the > buffer_index variable is increased by the number of written bytes, > buffer_length variable is decreased while the allocated buffer size remains > the same.

Re: [pulseaudio-discuss] [PATCH 1/4] core: Add generic message interface

2017-07-30 Thread Tanu Kaskinen
On Thu, 2017-07-27 at 22:36 +0200, Georg Chini wrote: > On 27.07.2017 07:17, Tanu Kaskinen wrote: > > On Fri, 2017-07-21 at 21:25 +0200, Georg Chini wrote: > > > This patch adds a new feature to the core which allows to exchange > > > messages between objects. An obj

Re: [pulseaudio-discuss] [PATCH] raop: silence a Coverity complaint

2017-07-30 Thread Tanu Kaskinen
On Thu, 2017-07-27 at 23:51 -0500, Hajime Fujita wrote: > I thought I added this fix before but apparently not. > Looks good to me. Thank you for bringing this up. Thanks! I pushed this to "next". > > On Jul 27, 2017, at 8:07 PM, Tanu Kaskinen <ta...@iki.fi>

Re: [pulseaudio-discuss] Trying to debug segfault in pa_mainloop_dispatch().

2017-07-28 Thread Tanu Kaskinen
On Fri, 2017-07-28 at 10:30 -0700, Rich Eakin wrote: > I also wanted to ask about the logging - is it enough to export the symbols > I'm finding at > https://freedesktop.org/software/pulseaudio/doxygen/index.html#logging_sec > before running my application, or do I also need to restart the

[pulseaudio-discuss] [PATCH] raop: silence a Coverity complaint

2017-07-27 Thread Tanu Kaskinen
CID: 1398155 --- src/modules/raop/raop-sink.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/src/modules/raop/raop-sink.c b/src/modules/raop/raop-sink.c index e5d219e87..4d13927fc 100644 --- a/src/modules/raop/raop-sink.c +++ b/src/modules/raop/raop-sink.c @@ -391,6 +391,13 @@ static

Re: [pulseaudio-discuss] [PATCH] bluez5-device: Set transport state correctly for AG role

2017-07-27 Thread Tanu Kaskinen
On Sat, 2017-07-22 at 10:47 +0200, Georg Chini wrote: > When connecting a headset via the native backend, the transport state was > not updated correctly. > > This patch sets the state to PLAYING in transport_acquire() if necessary. > --- > src/modules/bluetooth/module-bluez5-device.c | 20

Re: [pulseaudio-discuss] [PATCH 1/4] core: Add generic message interface

2017-07-26 Thread Tanu Kaskinen
On Fri, 2017-07-21 at 21:25 +0200, Georg Chini wrote: > This patch adds a new feature to the core which allows to exchange > messages between objects. An object can register/unregister a message > handler with pa_core_{register, unregister}_message_handler() while > any other object can check if a

Re: [pulseaudio-discuss] Device not detected on MEDION laptop

2017-07-26 Thread Tanu Kaskinen
On Wed, 2017-07-26 at 22:27 +0300, Tanu Kaskinen wrote: > On Wed, 2017-07-26 at 11:58 +0200, fulgor fulgor wrote: > > Hello > > > > I can't connect on pulse audio server because device is not detected > > > > I have some logging informations > >

Re: [pulseaudio-discuss] Device not detected on MEDION laptop

2017-07-26 Thread Tanu Kaskinen
On Wed, 2017-07-26 at 11:58 +0200, fulgor fulgor wrote: > Hello > > I can't connect on pulse audio server because device is not detected > > I have some logging informations > > http://www.alsa-project.org/db/?f=6fb68d0201f421b41fe65677fde2ec5b1c9d4429 PulseAudio doesn't seem to be running.

Re: [pulseaudio-discuss] location of pa-equalizer default config and presets

2017-07-26 Thread Tanu Kaskinen
On Wed, 2017-07-26 at 20:42 +0200, Bernhard Landauer wrote: > On 26.07.2017 11:49, Bernhard Landauer wrote: > > > On 24.07.2017 23:03, Tanu Kaskinen wrote: > > > On Wed, 2017-07-19 at 23:22 +0200, Bernhard Landauer wrote: > > > > I am attempting to i

Re: [pulseaudio-discuss] [PATCH 1/2] subscription: Add signal receiving capability

2017-07-26 Thread Tanu Kaskinen
On Wed, 2017-07-26 at 08:33 +0200, Georg Chini wrote: > On 26.07.2017 02:21, Tanu Kaskinen wrote: > > On Mon, 2017-07-24 at 14:19 +0200, Georg Chini wrote: > > > This patch extends the subscription API, so that signals sent from > > > PulseAudio > > > can b

Re: [pulseaudio-discuss] [PATCH 1/2] subscription: Add signal receiving capability

2017-07-25 Thread Tanu Kaskinen
On Mon, 2017-07-24 at 14:19 +0200, Georg Chini wrote: > This patch extends the subscription API, so that signals sent from PulseAudio > can be processed. A signal can be emitted using pa_signal_post(). > > A client can subscribe to signals by specifying PA_SUBSCRIPTION_MASK_SIGNAL as > one of the

[pulseaudio-discuss] [ANNOUNCE] PulseAudio 10.99.1 (a.k.a. v11.0 release candidate 1)

2017-07-24 Thread Tanu Kaskinen
Hi all, The first release candidate for PulseAudio 11.0 is now available! As always, the purpose of the release candidate is to get some testing done before the final version is released. So, everybody is encouraged to try the new code and report back any regressions. The release notes draft is

Re: [pulseaudio-discuss] location of pa-equalizer default config and presets

2017-07-24 Thread Tanu Kaskinen
On Wed, 2017-07-19 at 23:22 +0200, Bernhard Landauer wrote: > I am attempting to include a default equalizer config with an edition > and would like to know where the proper place to store this > config/preset is. > > My understanding is that presets used to be stored in >

Re: [pulseaudio-discuss] PulseAudio Network Sink: Respect alternative sample rate and format

2017-07-24 Thread Tanu Kaskinen
On Sun, 2017-07-23 at 02:59 +0200, Maximilian Böhm wrote: > Hello, I’m very happy that I finally got PulseAudio’s awesome network > sink feature set up. Works so far, but the AV receiver on the other > computer tells me it gets 41,1 kHz whereas my input in the sink from > my client computer is 48

Re: [pulseaudio-discuss] input/output jack seems to be not handled by PulseAudio

2017-07-24 Thread Tanu Kaskinen
On Mon, 2017-07-24 at 13:31 +0200, Alex ARNAUD wrote: > Le 20/07/2017 à 16:48, Tanu Kaskinen a écrit : > > > On Debian 8, with Linux kernel 4.9 and PulseAudio 7 only one entry work > > > for input and one work for output. If I change the jack cable of plug > > > ent

Re: [pulseaudio-discuss] [PATCH] tunnel-{sink, source}-new: Fix assertion when used with module-loopback

2017-07-24 Thread Tanu Kaskinen
On Sat, 2017-07-22 at 10:21 +0200, Georg Chini wrote: > On 20.07.2017 15:48, Tanu Kaskinen wrote: > > On Mon, 2017-07-17 at 19:53 +0200, Georg Chini wrote: > > > On 17.07.2017 19:32, Tanu Kaskinen wrote: > > > > On Sun, 2017-07-16 at 11:42 +0200, Georg Chini wrote:

Re: [pulseaudio-discuss] [PATCH v3 1/3] bluetooth: ofono: Use Acquire method if available

2017-07-21 Thread Tanu Kaskinen
On Fri, 2017-07-21 at 22:24 +0200, Georg Chini wrote: > On 21.07.2017 20:26, Tanu Kaskinen wrote: > > On Fri, 2017-07-21 at 20:58 +0300, Tanu Kaskinen wrote: > > > On Thu, 2017-07-20 at 18:50 +0200, Georg Chini wrote: > > > > On 20.07.2017 16:23, Tanu Kaskinen wrote

Re: [pulseaudio-discuss] [PATCH v3 1/3] bluetooth: ofono: Use Acquire method if available

2017-07-21 Thread Tanu Kaskinen
On Fri, 2017-07-21 at 20:58 +0300, Tanu Kaskinen wrote: > On Thu, 2017-07-20 at 18:50 +0200, Georg Chini wrote: > > On 20.07.2017 16:23, Tanu Kaskinen wrote: > > > On Tue, 2017-07-18 at 20:16 +0200, Georg Chini wrote: > > > > On 17.07.2017 19:44, Tanu Kaskinen wrote

Re: [pulseaudio-discuss] [PATCH v3 1/3] bluetooth: ofono: Use Acquire method if available

2017-07-21 Thread Tanu Kaskinen
On Thu, 2017-07-20 at 18:50 +0200, Georg Chini wrote: > On 20.07.2017 16:23, Tanu Kaskinen wrote: > > On Tue, 2017-07-18 at 20:16 +0200, Georg Chini wrote: > > > On 17.07.2017 19:44, Tanu Kaskinen wrote: > > > > On Sun, 2017-07-16 at 14:35 +0200, Georg Chini wrote:

Re: [pulseaudio-discuss] status of HSP/HFP support

2017-07-20 Thread Tanu Kaskinen
On Wed, 2017-07-19 at 22:34 +0200, Julian Sikorski wrote: > Hi list, > > I have recently purchased a pair of bluetooth headphones. While A2DP > support seems to be working fine, HSP/HFP are not. In A2DP mode I can do > the speaker test in gnome-control-center without issues. On the other > hand,

Re: [pulseaudio-discuss] Decode SPDIF compressed formats

2017-07-20 Thread Tanu Kaskinen
On Wed, 2017-07-19 at 17:29 +0200, Denis Shulyaka wrote: > 2017-07-12 22:58 GMT+02:00 Tanu Kaskinen <ta...@iki.fi>: > > > I don't know how the endpoints are supposed to agree on the format, and > > what kind of interface alsa provides for that (if any). The alsa-deve

Re: [pulseaudio-discuss] Switching Between Bitstream and PCM

2017-07-20 Thread Tanu Kaskinen
On Mon, 2017-07-17 at 15:24 -0700, Henk Visser wrote: > Hello everyone! > > 1.) I playing videos with the VLC player and am using the "PulseAudio Sound > Server" as an audio output device from the VLC GUI. > > 2.) Using the "PulseAudio Sound Server" output device from within VLC, I am > able to

Re: [pulseaudio-discuss] input/output jack seems to be not handled by PulseAudio

2017-07-20 Thread Tanu Kaskinen
On Mon, 2017-07-17 at 11:54 +0200, Alex ARNAUD wrote: > Dear all, > > > I help a blind person to figure out a sound issue. > > She has a "Intel Corporation C600/X79 series chipset High Definition > Audio Controller (rev 05)" with several jack input/output plug. > > On Windows everything works

Re: [pulseaudio-discuss] [PATCH v3 1/3] bluetooth: ofono: Use Acquire method if available

2017-07-20 Thread Tanu Kaskinen
On Tue, 2017-07-18 at 20:16 +0200, Georg Chini wrote: > On 17.07.2017 19:44, Tanu Kaskinen wrote: > > On Sun, 2017-07-16 at 14:35 +0200, Georg Chini wrote: > > > On 04.07.2017 15:38, Tanu Kaskinen wrote: > > > > It looks racy indeed, so some check should be added as

Re: [pulseaudio-discuss] [PATCH] protocol-native: fix bytes-to-usec conversion of "on-the-fly" data

2017-07-20 Thread Tanu Kaskinen
On Tue, 2017-07-18 at 08:47 +0530, Arun Raghavan wrote: > On Mon, 17 Jul 2017, at 10:17 PM, Tanu Kaskinen wrote: > > On Sat, 2017-07-15 at 11:20 +0530, Arun Raghavan wrote: > > > > > > On Tue, 11 Jul 2017, at 11:46 PM, Tanu Kaskinen wrote: > > > > Th

Re: [pulseaudio-discuss] [PATCH] tunnel-{sink, source}-new: Fix assertion when used with module-loopback

2017-07-20 Thread Tanu Kaskinen
On Mon, 2017-07-17 at 19:53 +0200, Georg Chini wrote: > On 17.07.2017 19:32, Tanu Kaskinen wrote: > > On Sun, 2017-07-16 at 11:42 +0200, Georg Chini wrote: > > > Currently pulseaudio crashes with an assertion in > > > pa_rtpoll_item_new_asyncmsgq_read() > > >

Re: [pulseaudio-discuss] [PATCH v3 1/3] bluetooth: ofono: Use Acquire method if available

2017-07-17 Thread Tanu Kaskinen
On Sun, 2017-07-16 at 14:35 +0200, Georg Chini wrote: > On 04.07.2017 15:38, Tanu Kaskinen wrote: > > On Mon, 2017-07-03 at 21:01 +0300, Luiz Augusto von Dentz wrote: > > > Hi Georg, > > > > > > On Mon, Jul 3, 2017 at 8:32 PM, Georg Chini <ge...@chini.tk>

Re: [pulseaudio-discuss] [PATCH] tunnel-{sink, source}-new: Fix assertion when used with module-loopback

2017-07-17 Thread Tanu Kaskinen
On Sun, 2017-07-16 at 11:42 +0200, Georg Chini wrote: > Currently pulseaudio crashes with an assertion in > pa_rtpoll_item_new_asyncmsgq_read() > if a loopback is applied to a tunnel-new sink/source because > tunnel-{sink,source}-new > do not set thread_info.rtpoll. Bug was reported on IRC. > >

Re: [pulseaudio-discuss] [PATCH] equalizer-sink: update sink description when moving

2017-07-17 Thread Tanu Kaskinen
On Sat, 2017-07-15 at 11:28 +0530, Arun Raghavan wrote: > > On Thu, 13 Jul 2017, at 12:59 AM, Tanu Kaskinen wrote: > > If the description is not updated when moving, the old automatically > > generated description will refer to the old master sink after the move, >

Re: [pulseaudio-discuss] [PATCH 0/3] Fix jack detection for Intel HDMI LPE

2017-07-17 Thread Tanu Kaskinen
On Sat, 2017-07-15 at 11:24 +0530, Arun Raghavan wrote: > > On Mon, 12 Jun 2017, at 09:15 PM, Tanu Kaskinen wrote: > > These patches hopefully fix jack detection (and ELD information > > querying too) for Intel HDMI LPE. I don't have the hardware myself, so > > furth

Re: [pulseaudio-discuss] [PATCH] protocol-native: fix bytes-to-usec conversion of "on-the-fly" data

2017-07-17 Thread Tanu Kaskinen
On Sat, 2017-07-15 at 11:20 +0530, Arun Raghavan wrote: > > On Tue, 11 Jul 2017, at 11:46 PM, Tanu Kaskinen wrote: > > The on_the_fly_snapshot variable contains the amount of bytes that has > > been sent from the source IO thread to the main thread, but not yet > > pushed

Re: [pulseaudio-discuss] [PATCH] fix dbus message leaks

2017-07-17 Thread Tanu Kaskinen
On Sat, 2017-07-15 at 11:08 +0530, Arun Raghavan wrote: > > On Mon, 3 Jul 2017, at 08:05 PM, Tanu Kaskinen wrote: > > I reviewed all places that call > > dbus_connection_send_with_reply_and_block(), and found several places > > where dbus messages aren't properly un

Re: [pulseaudio-discuss] "Connection refused" on API pa_context_connect()

2017-07-14 Thread Tanu Kaskinen
On Fri, 2017-07-14 at 19:29 +0930, Steven Wawryk wrote: > Hello, > > I can't connect a pa_context to the PulseAudio server. Can anyone help? > > I've been trying to use the async API to connect to a source which has > been setup by a PulseAudio CLI script. > > When I use the script via the

Re: [pulseaudio-discuss] HFP AG using laptop mic as audio to play on Hands-free device

2017-07-14 Thread Tanu Kaskinen
On Thu, 2017-07-13 at 12:26 +0530, Sathish Narasimman wrote: > Hi all, > > I was able to successfully connect using HFP AG profile(git > PulseAudio) with a handsfree device. > If I switch the profile from sound setting to HSP/HFP I can see the > sounds played on the laptop are transferred using

Re: [pulseaudio-discuss] [PATCH] solaris: Support building on GNU Hurd

2017-07-14 Thread Tanu Kaskinen
On Wed, 2017-07-12 at 17:40 -0700, David Michael wrote: > On Sat, Jun 3, 2017 at 8:53 PM, David Michael wrote: > > Can this be applied to support building the Solaris module for GNU Hurd? > > The change itself is basic portability (including the POSIX for > > POLLIN etc.

Re: [pulseaudio-discuss] Decode SPDIF compressed formats

2017-07-12 Thread Tanu Kaskinen
On Wed, 2017-07-12 at 22:29 +0300, Denis Shulyaka wrote: > Well, that was more or less expected. Is such support planned? I haven't heard of anyone planning to implement the feature. > It means I need to write my own decoding application. But that leads me to > another question: > When I open

[pulseaudio-discuss] [PATCH] alsa-mixer: add "Front Panel" element support

2017-07-12 Thread Tanu Kaskinen
Asus Xonar DX requires toggling the Front Panel switch when changing output between the front and back panel. BugLink: https://bugs.freedesktop.org/show_bug.cgi?id=99479 --- src/modules/alsa/mixer/paths/analog-output-headphones.conf | 7 +++

[pulseaudio-discuss] [PATCH] equalizer-sink: update sink description when moving

2017-07-12 Thread Tanu Kaskinen
If the description is not updated when moving, the old automatically generated description will refer to the old master sink after the move, which is not nice. --- src/modules/module-equalizer-sink.c | 26 ++ 1 file changed, 22 insertions(+), 4 deletions(-) diff --git

Re: [pulseaudio-discuss] Decode SPDIF compressed formats

2017-07-12 Thread Tanu Kaskinen
On Tue, 2017-07-11 at 23:21 +0300, Denis Shulyaka wrote: > Hi list, > > I am making a small project, a home sound server. It will have a 5.1 analog > output and S/PDIF optical input, besides others. The server has to mix all > inputs and send them to the output. > My initial proof-of-concept with

Re: [pulseaudio-discuss] [PATCH] simple: fix negative latency handling

2017-07-12 Thread Tanu Kaskinen
On Wed, 2017-07-12 at 09:57 +0200, Grzegorz Kołodziejczyk wrote: > Hi Tanu, > > I think you weren't rebased on master upstream with this patch or I have a > git problem :) > I can't find this negation of pa_bytes_to_usec "extra = > -pa_bytes_to_usec(p->read_index,

[pulseaudio-discuss] [PATCH] simple: fix negative latency handling

2017-07-11 Thread Tanu Kaskinen
pa_usec_t is an unsigned type, but there were calculations that used it as if it were a signed type. If the latency is negative, pa_simple_get_latency() now reports 0. Added some comments too. --- This patch doesn't apply to the master branch, so if you want to apply the patch, use the next

Re: [pulseaudio-discuss] Bluetooth mic too sensitive

2017-07-10 Thread Tanu Kaskinen
On Sat, 2017-07-08 at 00:31 -0700, Brent Roman wrote: > Since updating to pulseaudio 10.0, both my Plantronics Legend and > BlueAnt Pump headsets microphones have become so sensitive that they > distort my voice to the point of making it unintelligible due to audio > clipping. > > I noticed in

Re: [pulseaudio-discuss] About extra A2DP codecs support in bluetooth module

2017-07-07 Thread Tanu Kaskinen
On Fri, 2017-07-07 at 20:33 +0800, Qu Wenruo wrote: > After a quick glance into the code (without much knowledge about > pulseaudio), I found that pulseaudio is just using sbc library to do the > encode. > > From a2dp_process_render(): > --- > while (PA_LIKELY(to_encode > 0 && to_write >

Re: [pulseaudio-discuss] [PATCH 1/2] loopback: Use new allow_negative flag of pa_{source, sink}_get_latency_within_thread()

2017-07-06 Thread Tanu Kaskinen
On Mon, 2017-04-17 at 21:37 +0200, Georg Chini wrote: > Setting the allow_negative flag of > pa_{source,sink}_get_latency_within_thread() to true > leads to improved end to end latency estimation and to correct handling of > negative port > latency offsets. > --- > src/modules/module-loopback.c

Re: [pulseaudio-discuss] About extra A2DP codecs support in bluetooth module

2017-07-06 Thread Tanu Kaskinen
On Thu, 2017-07-06 at 07:54 +0800, Qu Wenruo wrote: > Hi, > > I found that even my bluetooth headset support AAC (A2DP_CODEC_MPEG24) > codec, when using pulseaudio-bluetooth module, only the basic SBC is > used in negotiation. > > I checked the source of bluetooth module, but only SBC is

Re: [pulseaudio-discuss] [PATCH 1/2] protocol-native: Add commands for communication with modules

2017-07-06 Thread Tanu Kaskinen
On Wed, 2017-07-05 at 08:56 +0200, Georg Chini wrote: > On 04.07.2017 18:15, Tanu Kaskinen wrote: > > On Sun, 2017-05-21 at 14:56 +0200, Georg Chini wrote: > > > This patch adds two new commands to the native protocol that enable direct > > > communication w

Re: [pulseaudio-discuss] [PATCH 1/2] protocol-native: Add commands for communication with modules

2017-07-04 Thread Tanu Kaskinen
On Sun, 2017-05-21 at 14:56 +0200, Georg Chini wrote: > This patch adds two new commands to the native protocol that enable direct > communication with modules during run time. SEND_MODULE_COMMAND is used to > send a command string to a module if no reply is needed. This can for example > be

Re: [pulseaudio-discuss] [PATCH v3 1/3] bluetooth: ofono: Use Acquire method if available

2017-07-04 Thread Tanu Kaskinen
On Mon, 2017-07-03 at 21:01 +0300, Luiz Augusto von Dentz wrote: > Hi Georg, > > On Mon, Jul 3, 2017 at 8:32 PM, Georg Chini <ge...@chini.tk> wrote: > > On 03.07.2017 17:51, Luiz Augusto von Dentz wrote: > > > > > > Hi Tanu, > > > > &g

[pulseaudio-discuss] [PATCH] fix dbus message leaks

2017-07-03 Thread Tanu Kaskinen
I reviewed all places that call dbus_connection_send_with_reply_and_block(), and found several places where dbus messages aren't properly unreffed. --- src/modules/bluetooth/backend-ofono.c | 6 ++ src/modules/bluetooth/bluez4-util.c | 12 ++-- src/modules/bluetooth/bluez5-util.c

Re: [pulseaudio-discuss] [PATCH v3 1/3] bluetooth: ofono: Use Acquire method if available

2017-07-03 Thread Tanu Kaskinen
On Mon, 2017-07-03 at 16:09 +0300, Luiz Augusto von Dentz wrote: > Hi Tanu, > > On Mon, Jun 19, 2017 at 4:29 PM, Tanu Kaskinen <ta...@iki.fi> wrote: > > On Thu, 2017-05-25 at 11:36 +0300, Luiz Augusto von Dentz wrote: > > > +pa_assert_se(m = dbus_message_new

[pulseaudio-discuss] [PATCH] core: change configured_default_sink/source type to string

2017-06-29 Thread Tanu Kaskinen
This allows us to restore the default device properly when a hotpluggable device (e.g. a USB sound card) is set as the default, but unplugged temporarily. Previously we would forget that the unplugged device was ever set as the default, because we had to set configured_default_sink to NULL to

Re: [pulseaudio-discuss] [PATCH v3 2/3] bluetooth: Remove BlueZ 4 support

2017-06-27 Thread Tanu Kaskinen
On Tue, 2017-06-27 at 23:45 +0300, Luiz Augusto von Dentz wrote: > Hi Tanu, > > On Mon, Jun 19, 2017 at 4:43 PM, Tanu Kaskinen <ta...@iki.fi> wrote: > > On Thu, 2017-05-25 at 11:36 +0300, Luiz Augusto von Dentz wrote: > > > From: Luiz Augusto von D

Re: [pulseaudio-discuss] lots of [null-sink] memblock.c: Pool full

2017-06-27 Thread Tanu Kaskinen
On Sun, 2017-06-25 at 16:14 -0300, wellington wallace wrote: > Hi, > > Today I noticed I have lots of these messages in Pulseaudio debug output: > > jun 25 15:44:11 wwmm pulseaudio[1148]: D: [alsa-sink-ALC887-VD Analog] > ratelimit.c: 1685 events suppressed > jun 25 15:44:11 wwmm

Re: [pulseaudio-discuss] Bluetooth HSP handling on pulseaudio

2017-06-27 Thread Tanu Kaskinen
On Sat, 2017-06-24 at 15:19 +0900, Shinnosuke Suzuki wrote: > Hi all, > > I’m a new to pulseaudio development. > I would like to write program which handle voice packet and some Bluetooth > HSP event (RING,CKPD etc) from/to bluetooth headset. > The pulseaudio 6.0 support HSP with bluez5, so I

Re: [pulseaudio-discuss] [PATCH] alsa-mixer: Add support for usb audio in the Dell dock TB16

2017-06-20 Thread Tanu Kaskinen
On Fri, 2017-05-26 at 15:42 +0800, Hui Wang wrote: > There are one headset jack on the front panel of TB16, through this > jack, we have one stereo headphone output (hw:%f,0,0) and one mono > headset-mic input (hw:%f,0,0); and there is one speaker output jack > (hw:%f,1,0) on the rear panel of

Re: [pulseaudio-discuss] pulseaudio craqshes while audio call disconnects [ Invalid write to eventfd]

2017-06-19 Thread Tanu Kaskinen
On Mon, 2017-06-19 at 12:37 +0530, mohammed rilwan wrote: > Hi, > > > Ubuntu 17.04 as Bluetooth headset. > Android phone conencted to ubuntu via bluetooth. > incoming call to android phone. > pulseaudio crashes while audio call disconnects. > > > What could be the issue ? There are two "Bad

Re: [pulseaudio-discuss] [PATCH] Revert "bluetooth: Auto recover if profile is 'off'"

2017-06-19 Thread Tanu Kaskinen
On Mon, 2017-06-19 at 11:43 +0300, Luiz Augusto von Dentz wrote: > Hi Tanu, > > On Tue, Jun 13, 2017 at 9:39 PM, Georg Chini <ge...@chini.tk> wrote: > > On 13.06.2017 18:02, Tanu Kaskinen wrote: > > > > > > This reverts commit 69c212f8c13794f70899d1f

[pulseaudio-discuss] [PATCH] Revert "bluetooth: Auto recover if profile is 'off'"

2017-06-13 Thread Tanu Kaskinen
This reverts commit 69c212f8c13794f70899d1fe6baec1b6e3c92032. Reasons: The original reason for the patch was to work around some issue regarding the profile not connecting immediately (sorry, I don't really know the details), but that issue was fixed later by commit 998dfdf4cc, so the original

Re: [pulseaudio-discuss] [PATCH 0/3] Fix jack detection for Intel HDMI LPE

2017-06-12 Thread Tanu Kaskinen
On Mon, 2017-06-12 at 18:45 +0300, Tanu Kaskinen wrote: > These patches hopefully fix jack detection (and ELD information > querying too) for Intel HDMI LPE. I don't have the hardware myself, so > further testing would be very welcome. Hans, Takashi and Pierre, you're > in Cc,

[pulseaudio-discuss] [PATCH 0/3] Fix jack detection for Intel HDMI LPE

2017-06-12 Thread Tanu Kaskinen
n and out. If the jack detection seems to work, try setting "realtime-scheduling = yes" in daemon.conf to see if the kernel still kills PulseAudio. Tanu Kaskinen (3): alsa-mixer: add query_hw_device option to mappings alsa-mixer: implement ELD device autodetection alsa-mixe

[pulseaudio-discuss] [PATCH 1/3] alsa-mixer: add query_hw_device option to mappings

2017-06-12 Thread Tanu Kaskinen
We have so far assumed that HDMI always uses device indexes 3, 7, 8, 9, 10, 11, 12 and 13. These values are hardcoded in the path configuration. The Intel HDMI LPE driver, however, uses a different device numbering scheme. This patch adds a new configuration option for mappings. The option tells

[pulseaudio-discuss] [PATCH 3/3] alsa-mixer: autodetect the HDMI jack PCM device

2017-06-12 Thread Tanu Kaskinen
This removes the need to hardcode the PCM device index in the HDMI jack names. The hardcoded values don't work with the Intel HDMI LPE driver. BugLink: https://bugs.freedesktop.org/show_bug.cgi?id=100488 --- src/modules/alsa/alsa-mixer.c | 50 --

[pulseaudio-discuss] [PATCH 2/3] alsa-mixer: implement ELD device autodetection

2017-06-12 Thread Tanu Kaskinen
This removes the need to hardcode the ELD device index in the path configuration. The hardcoded values don't work with the Intel HDMI LPE driver. BugLink: https://bugs.freedesktop.org/show_bug.cgi?id=100488 --- src/modules/alsa/alsa-mixer.c | 31 +++---

Re: [pulseaudio-discuss] [PATCH] padsp: Write only frame-aligned chunks to the stream

2017-06-04 Thread Tanu Kaskinen
On Thu, 2017-06-01 at 16:01 +0900, Arun Raghavan wrote: > Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=101121 > --- > src/utils/padsp.c | 20 +++- > 1 file changed, 15 insertions(+), 5 deletions(-) > > I didn't see a way to track the total bytes in a separate variable that

Re: [pulseaudio-discuss] Add a way to override priority of sinks - mostly for module-combine-sinks

2017-05-31 Thread Tanu Kaskinen
On Fri, 2017-05-26 at 06:41 -0700, Myst Fox wrote: > This is a bit hard to describe. I'd really like to see a way to manually > set priorities on sinks. I recently got a portable DAC, and I wanted to > use it when plugged in and fall back on module-combine-sink otherwise - > mostly because I often

Re: [pulseaudio-discuss] [PATCH v3 2/3] bluetooth: Remove BlueZ 4 support

2017-05-31 Thread Tanu Kaskinen
On Wed, 2017-05-31 at 09:30 +0200, Pali Rohár wrote: > On Wednesday 31 May 2017 07:00:54 Arun Raghavan wrote: > > On Sun, 28 May 2017, at 08:05 PM, Pali Rohár wrote: > > > On Thursday 25 May 2017 10:36:36 Luiz Augusto von Dentz wrote: > > > > BlueZ 4 is no longer supported by BlueZ community for a

Re: [pulseaudio-discuss] [PATCH] alsa: make priority of the port headset-mic higher than headphone-mic

2017-05-31 Thread Tanu Kaskinen
On Thu, 2017-05-25 at 11:10 +0800, Hui Wang wrote: > There are two reasons for this change: > > 1. If it is a Dell desktop machine with the realtek codec, and there > is no internal microphone on it, there is one physical audio jack > which can support headphone, headset and microphone, but this

Re: [pulseaudio-discuss] [PATCH] alsa: make headset-mic scanned earlier than headphone-mic

2017-05-24 Thread Tanu Kaskinen
On Wed, 2017-05-24 at 10:28 +0800, Hui Wang wrote: > On 05/23/2017 07:35 PM, Tanu Kaskinen wrote: > > On Tue, 2017-05-23 at 17:36 +0800, Hui Wang wrote: > > > When user plug in a headphone and select the headphone, the UI program > > > will set the headphone to be

[pulseaudio-discuss] [PATCH RFC] alsa-mixer: add query_hw_device option to mappings

2017-05-23 Thread Tanu Kaskinen
We have so far assumed that HDMI always uses device indexes 3, 7, 8, 9, 10, 11, 12 and 13. These values are hardcoded in the HDMI path configuration files (the index is used for setting the ELD device and the jack mixer element name). The Intel HDMI LPE driver, however, uses different device

Re: [pulseaudio-discuss] [PATCH] alsa: make headset-mic scanned earlier than headphone-mic

2017-05-23 Thread Tanu Kaskinen
On Tue, 2017-05-23 at 17:36 +0800, Hui Wang wrote: > On 05/23/2017 04:20 PM, Tanu Kaskinen wrote: > > On Tue, 2017-05-23 at 11:04 +0800, Hui Wang wrote: > > > On 05/20/2017 10:51 PM, Tanu Kaskinen wrote: > > > > On Fri, 2017-05-19 at 09:29 +0800, Hui Wa

Re: [pulseaudio-discuss] Service fails on systemctl start. Status always "activating"

2017-05-23 Thread Tanu Kaskinen
On Mon, 2017-05-22 at 15:12 -0700, Karl Stahl wrote: > Ah! Sure enough, I had this line in my pulseaudio.service file: > > Requires=pulseaudio.socket > > I copied this file directly from the Debian source: >

Re: [pulseaudio-discuss] [PATCH] alsa: make headset-mic scanned earlier than headphone-mic

2017-05-23 Thread Tanu Kaskinen
On Tue, 2017-05-23 at 11:04 +0800, Hui Wang wrote: > On 05/20/2017 10:51 PM, Tanu Kaskinen wrote: > > On Fri, 2017-05-19 at 09:29 +0800, Hui Wang wrote: > > > Hello Tanu, > > > > > > Could you please help take a look at this patch? This patch really fix

Re: [pulseaudio-discuss] Service fails on systemctl start. Status always "activating"

2017-05-22 Thread Tanu Kaskinen
On Mon, 2017-05-22 at 13:01 -0700, Karl Stahl wrote: > Apparently the "xcb_connection_has_error()" message is caused by my > having SSHed to the device. If I run the same command on the device > directly, I don't get that message. My environment already had that > variable set as you suggested:

Re: [pulseaudio-discuss] Service fails on systemctl start. Status always "activating"

2017-05-22 Thread Tanu Kaskinen
On Mon, 2017-05-22 at 11:21 -0700, Karl Stahl wrote: > Thanks for the reply! I'm running Raspbian and have pulseaudio > version 5.0. > I tried changing it to type=simple, and that fixed the notify issue, > but it's still not working. This is what I get: > > $ paplay test.wav > connect localhost

Re: [pulseaudio-discuss] Service fails on systemctl start. Status always "activating"

2017-05-22 Thread Tanu Kaskinen
On Mon, 2017-05-22 at 09:03 -0700, Karl Stahl wrote: > I'm trying to get pulseaudio running on a Raspberry Pi 3 (ARM). I'm > having trouble getting the service to start properly. The status > always says "activating", but never seems to finish. Any ideas? What's the pulseaudio version?

Re: [pulseaudio-discuss] [PATCH] alsa: make headset-mic scanned earlier than headphone-mic

2017-05-20 Thread Tanu Kaskinen
On Fri, 2017-05-19 at 09:29 +0800, Hui Wang wrote: > Hello Tanu, > > Could you please help take a look at this patch? This patch really fix > an issue on some Dell machines (with realtek codec and has no internal > microphone on them), And I think this minor change will not introduce >

Re: [pulseaudio-discuss] [PATCH v2] sink-input, source-output: don't allow moving streams that are connected to moving filter devices

2017-05-18 Thread Tanu Kaskinen
On Mon, 2017-05-08 at 12:58 +0300, Tanu Kaskinen wrote: > When a filter sink is moving, it's not connected to any master sink, and > therefore it's not connected to any IO thread either. In this situation > trying to move a stream that is connected to the filter sink is likely &g

Re: [pulseaudio-discuss] [PATCH] switch-on-port-available: check and change default sink or source

2017-05-17 Thread Tanu Kaskinen
On Tue, 2017-05-16 at 16:29 +0800, Hui Wang wrote: > On 05/03/2017 06:51 PM, Tanu Kaskinen wrote: > > On Wed, 2017-05-03 at 11:23 +0800, Hui Wang wrote: > > > Today I tested the latest master branch (already including your two > > > patches), seems it did not fix the p

Re: [pulseaudio-discuss] [PATCH] virtual sources and sinks: Don't double attach a sink input or source output on filter load

2017-05-17 Thread Tanu Kaskinen
On Tue, 2017-05-16 at 15:14 +0200, Georg Chini wrote: > When a filter is loaded and module-switch-on-connect is present, > switch-on-connect > will make the filter the default sink or source and move streams from the old > default to the filter. This is done from the sink/source put hook,

Re: [pulseaudio-discuss] [PATCH] virtual sources and sinks: Don't double attach a sink input or source output on filter load

2017-05-13 Thread Tanu Kaskinen
On Tue, 2017-05-09 at 16:42 +0200, Georg Chini wrote: > When a filter is loaded and module-switch-on-connect is present, > switch-on-connect > will make the filter the default sink or source and move streams from the old > default to the filter. This is done from the sink/source put hook,

Re: [pulseaudio-discuss] [PATCH] sink, source: update the default sink/source on port switches

2017-05-13 Thread Tanu Kaskinen
On Thu, 2017-05-11 at 17:18 +0200, Georg Chini wrote: > On 07.05.2017 11:12, Tanu Kaskinen wrote: > > When sinks are compared during the default sink selection, the active > > port's availability is inspected. Therefore, the default sink should be > > updated when the active

Re: [pulseaudio-discuss] [PATCH] sink/source: Don't update default sink/source before calling PA_CORE_HOOK_{SINK, SOURCE}_PUT

2017-05-11 Thread Tanu Kaskinen
On Wed, 2017-05-10 at 12:05 +0200, Georg Chini wrote: > In sink_put() and source_put(), pa_core_update_default_{sink,source}() was > called > before the PA_CORE_HOOK_{SINK,SOURCE}_PUT hook. Therefore > module-switch-on-connect > could not correctly determine the old default sink/source if no

Re: [pulseaudio-discuss] [PATCH v5 5/7] bluetooth: Auto recover if profile is 'off'

2017-05-11 Thread Tanu Kaskinen
On Wed, 2017-05-10 at 16:17 +0300, Luiz Augusto von Dentz wrote: > Another thing with 'off' > profile, at least with gnome settings when it is selected there is no > way to switch it back to either A2DP or HFP, I think it is probably > because it has no ports available. That's interesting. The

Re: [pulseaudio-discuss] [PATCH v5 5/7] bluetooth: Auto recover if profile is 'off'

2017-05-11 Thread Tanu Kaskinen
On Mon, 2017-05-08 at 13:09 +0300, Luiz Augusto von Dentz wrote: > Hi Tanu, > > On Mon, May 8, 2017 at 11:53 AM, Tanu Kaskinen <ta...@iki.fi> wrote: > > On Mon, 2017-05-08 at 11:26 +0300, Luiz Augusto von Dentz wrote: > > > Hi Tanu, > > > > > > O

Re: [pulseaudio-discuss] [PATCH] echo-cancel: Avoid segfaults due to invalid master sink or source

2017-05-09 Thread Tanu Kaskinen
On Tue, 2017-05-09 at 16:59 +0200, Georg Chini wrote: > On 07.05.2017 13:23, Tanu Kaskinen wrote: > > On Sun, 2017-05-07 at 12:37 +0200, Georg Chini wrote: > > > Another similar point, while reading the code of > > > module-switch-on-connect, i > > > found a p

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