Re: [pulseaudio-discuss] PATCH 3/3: RAOP: Add latency value for Shairport RAOP server

2017-10-08 Thread Tanu Kaskinen
On Sat, 2017-10-07 at 20:20 +0200, Colin Leroy wrote: > From 5882bd15c528a0e9987a02f9ddcdd093087ae548 Mon Sep 17 00:00:00 2001 > From: Colin Leroy > Date: Sat, 7 Oct 2017 20:11:49 +0200 > Subject: [PATCH 3/3] RAOP: Add latency value for Shairport RAOP server > > After testing, Shairport server's

Re: [pulseaudio-discuss] PATCH 1/3: RAOP: Show device codename in sink properties

2017-10-08 Thread Tanu Kaskinen
On Sat, 2017-10-07 at 20:19 +0200, Colin Leroy wrote: > This will make it easier for testers to report latency offset for their > specific hardware. > > Also, remove the IP:port part from the device description; it will go > in the pa_device_port description in the next commit. To me it would see

Re: [pulseaudio-discuss] PATCH 2/3: RAOP: Init dummy port and card for latency change

2017-10-08 Thread Tanu Kaskinen
On Sat, 2017-10-07 at 20:20 +0200, Colin Leroy wrote: > From bd815a400ad280627083cbce3ef9b927f669faa0 Mon Sep 17 00:00:00 2001 > From: Colin Leroy > Date: Sat, 7 Oct 2017 20:10:21 +0200 > Subject: [PATCH 2/3] RAOP: Init dummy port and card for latency change > > This adds a port, card and profil

Re: [pulseaudio-discuss] [PATCH] pavucontrol: Set latency offset's maximum to 5000ms

2017-10-08 Thread Tanu Kaskinen
On Fri, 2017-10-06 at 20:22 +0200, Colin Leroy wrote: > Hi, > > Airplay hardware has a inherent latency of at least 2 seconds, with > 2350ms being a common value. Thanks! Applied. -- Tanu https://www.patreon.com/tanuk ___ pulseaudio-discuss mailing l

Re: [pulseaudio-discuss] [PATCH v2 0/3] Fix Intel HDMI LPE problems

2017-10-08 Thread Tanu Kaskinen
On Sun, 2017-10-08 at 19:48 +0300, Tanu Kaskinen wrote: > The Intel HDMI LPE driver uses hw:0 for HDMI, which is different from > the HDA device numbering scheme. Our jack detection and ELD code assumed > the HDA numbering, these patches remove the assumption. > > If PulseAudi

[pulseaudio-discuss] [PATCH v2 1/3] alsa-mixer: add hw_device_index to pa_alsa_mapping

2017-10-08 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 different device numbering scheme. Since the indexes aren't always the same, we need to query the hw device index

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

2017-10-08 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 | 53 -- src/modul

[pulseaudio-discuss] [PATCH v2 3/3] alsa-mixer: autodetect the ELD device

2017-10-08 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 | 28 -- src/mo

[pulseaudio-discuss] [PATCH v2 0/3] Fix Intel HDMI LPE problems

2017-10-08 Thread Tanu Kaskinen
unplugged. Tanu Kaskinen (3): alsa-mixer: add hw_device_index to pa_alsa_mapping alsa-mixer: autodetect the HDMI jack PCM device alsa-mixer: autodetect the ELD device src/modules/alsa/alsa-mixer.c | 107 +++-- src/modules/alsa/alsa-mixer.h

Re: [pulseaudio-discuss] RAOP, pavucontrol and general "Latency offset"

2017-10-08 Thread Tanu Kaskinen
On Fri, 2017-10-06 at 14:51 -0400, Chris Billington wrote: > Hi Colin, > > A while ago I wanted to set the latency offset of a null sink, and I wrote > some patches to be able to do this, not by adding a port, but by adding the > ability to set the latency offset on a sink. I'm sure you can find t

Re: [pulseaudio-discuss] [PATCH] Windows compilation fixes

2017-10-07 Thread Tanu Kaskinen
On Tue, 2017-10-03 at 15:03 +0200, salvador fandino wrote: > +#define QUOTE_MACRO(x) #x > if (!(e = getenv("LADSPA_PATH"))) > -e = LADSPA_PATH; > +e = QUOTE_MACRO(LADSPA_PATH); > +#undef QUOTE_MACRO Nice trick! I didn't know the # operator did escaping, and even if I knew, thi

Re: [pulseaudio-discuss] bluetooth headset disconection

2017-10-07 Thread Tanu Kaskinen
On Mon, 2017-10-02 at 10:37 +0900, Shinnosuke Suzuki wrote: > Hi all, > > I use pulseaudio with bluetooth headset, it seems fine at start. > I could see sink/source set to bluetooth headset with pactl. > However, when I disconnect bluetooth headset with turning off the headset, > pulseaudio maybe

Re: [pulseaudio-discuss] Help Need with loss of sound problem

2017-10-07 Thread Tanu Kaskinen
On Sun, 2017-10-01 at 14:26 +0200, myc...@tutanota.com wrote: > Can anyone please help with a problem concerning the > loss of sound in a Debian Jessie system. > > Due to sound problems whereby sound was first okay, > then lost, then regained, then lost again when running vlc > on a sound file

Re: [pulseaudio-discuss] how to get accurate stream latency information during underrun

2017-10-07 Thread Tanu Kaskinen
On Fri, 2017-09-29 at 11:46 +0200, Ludovic Guégan wrote: > Hi everyone, > > First, i am new to PulseAudio and the mailing list, so let me say it: Thank > you all ! > > In the context of my application, it is important to accurately estimate > the audio latency in order to synchronize the speaker

Re: [pulseaudio-discuss] Changing the per-process source/sink for a process that is NOT running

2017-10-07 Thread Tanu Kaskinen
On Wed, 2017-09-27 at 18:19 +, Chris Lopes wrote: > Hi, > I see here some guidance on how to change the source or sink for a > running process (aka move a stream):https://askubuntu.com/a/72076/566 > 303 > > But is there a way (command line) to change the source and/or sink > for a process that

Re: [pulseaudio-discuss] Monitor sources are silent when recording over LAN

2017-10-07 Thread Tanu Kaskinen
On Wed, 2017-09-27 at 11:07 +0300, Martin Laakso wrote: > Other sources work fine over network, but I tried to record monitor > sources of several computers (Ubuntu 16.04 and 17.10, PulseAudio 10.0), > and none worked, so this isn't an isolated issue. Locally the monitor > sources record fine. p

Re: [pulseaudio-discuss] How to control latency with CLI?

2017-10-07 Thread Tanu Kaskinen
On Tue, 2017-09-26 at 19:27 +0930, Steven Wawryk wrote: > > > I'm trying to work out how to control latency with pulseaudio CLI scripts. > > > > > > We're finding that latency varies between a few seconds to about 80 > > > seconds. > > > > > > We have a system which uses a dedicated embedded boa

Re: [pulseaudio-discuss] Handling audio skew during playback

2017-10-07 Thread Tanu Kaskinen
Sorry for the late reply. On Thu, 2017-09-21 at 15:52 +, Nicholas Wilson wrote: > Hi Tanu, > > Thank you for that help, I think I understand what to do now. > > > You'll have to adapt to the sound card clock yourself. It would be nice > > to allow applications to write samples at their own

Re: [pulseaudio-discuss] [PATCH] RAOP: Show device codename in sink description

2017-10-07 Thread Tanu Kaskinen
On Thu, 2017-10-05 at 23:34 +0200, Colin Leroy wrote: > From 4ee8ecffad804f48ba38984299fc0a3289d56941 Mon Sep 17 00:00:00 2001 > From: Colin Leroy > Date: Thu, 5 Oct 2017 21:21:48 +0200 > Subject: [PATCH] RAOP: Show device codename in sink description > > This will make it easier for testers to r

Re: [pulseaudio-discuss] Audio input start working after suspend.

2017-10-05 Thread Tanu Kaskinen
With all respect, your approach to email quoting is very hard to read. On Thu, 2017-09-21 at 12:43 -0300, Gustavo Duarte wrote: > Thanks Tanu, for you explanation. > > I want to use internal mic. > > >> except get the kernel driver fixed > > What do you mean ? Am I need update linux-kernel ? or

Re: [pulseaudio-discuss] [Patch] RAOP: fix audio synchronisation, take two

2017-10-05 Thread Tanu Kaskinen
On Thu, 2017-09-21 at 16:04 +0200, Colin Leroy wrote: > On Thu, 21 Sep 2017 16:00:28 +0200, Colin Leroy > wrote: > > > > Thanks! Applied. I took the liberty to remove the > > > pa_modargs_get_value() from raop-sink.c, because it wasn't necessary > > > there. > > > > Yay! Thank you for your gui

Re: [pulseaudio-discuss] pulseaudio setup issues

2017-10-05 Thread Tanu Kaskinen
Sorry for the delay on replying, I haven't been able to keep up with emails. On Fri, 2017-09-22 at 12:26 +0530, namit...@codeaurora.org wrote: > (if pulseaudio is not running) > / # amixer cset name='SLIMBUS_0_RX Audio Mixer MultiMedia1' '1' > ALSA lib > /local/mnt/workspace/LE05Sep_stable/poky/b

Re: [pulseaudio-discuss] [PATCH 4/6] core: add message handler

2017-10-04 Thread Tanu Kaskinen
On Wed, 2017-10-04 at 14:00 +0300, Tanu Kaskinen wrote: > On Tue, 2017-10-03 at 19:41 +0200, Georg Chini wrote: > > I don't > > mind dropping the _core_ part from the names. I would then also > > rename pa_core_send_message() to > > pa_message_handler_send_message

Re: [pulseaudio-discuss] [PATCH 4/6] core: add message handler

2017-10-04 Thread Tanu Kaskinen
On Tue, 2017-10-03 at 16:31 +0200, Georg Chini wrote: > On 03.10.2017 14:58, Tanu Kaskinen wrote: > > On Mon, 2017-10-02 at 14:32 +0200, Georg Chini wrote: > > > On 02.10.2017 11:31, Tanu Kaskinen wrote: > > > > On Sun, 2017-10-01 at 20:31 +0200, Georg Chini wrote:

Re: [pulseaudio-discuss] [PATCH 4/6] core: add message handler

2017-10-04 Thread Tanu Kaskinen
On Tue, 2017-10-03 at 19:41 +0200, Georg Chini wrote: > On 03.10.2017 14:58, Tanu Kaskinen wrote: > > On Mon, 2017-10-02 at 14:32 +0200, Georg Chini wrote: > > > On 02.10.2017 11:31, Tanu Kaskinen wrote: > > > > On Sun, 2017-10-01 at 20:31 +0200, Georg Chini wrote:

Re: [pulseaudio-discuss] [PATCH] module-switch-on-port-available: Add some basic properties

2017-10-03 Thread Tanu Kaskinen
On Fri, 2017-09-22 at 16:27 +0200, David Henningsson wrote: > Apparently I forgot about this for like, five years, but better > late than never! > > Signed-off-by: David Henningsson > --- > src/modules/module-switch-on-port-available.c | 5 + > 1 file changed, 5 insertions(+) > > diff --git

Re: [pulseaudio-discuss] [PATCH 6/6] pactl: Add signal receiver

2017-10-03 Thread Tanu Kaskinen
On Sat, 2017-08-19 at 17:48 +0200, Georg Chini wrote: > + > + subscribe-signals > + Subscribe to signals. Like subscribe, but waits for > signals instead of subscription events. > + I think it would be better to have the "subscribe" command show both kind of events. > +static v

Re: [pulseaudio-discuss] [PATCH 5/6] protocol-native: Add signal receiving capability

2017-10-03 Thread Tanu Kaskinen
On Sat, 2017-08-19 at 17:48 +0200, Georg Chini wrote: > --- a/src/pulsecore/native-common.h > +++ b/src/pulsecore/native-common.h > @@ -71,6 +71,7 @@ enum { > PA_COMMAND_GET_SAMPLE_INFO, > PA_COMMAND_GET_SAMPLE_INFO_LIST, > PA_COMMAND_SUBSCRIBE, > +PA_COMMAND_SUBSCRIBE_SIGNALS, >

Re: [pulseaudio-discuss] [PATCH 5/6] protocol-native: Add signal receiving capability

2017-10-03 Thread Tanu Kaskinen
On Mon, 2017-10-02 at 14:36 +0200, Georg Chini wrote: > On 02.10.2017 12:20, Tanu Kaskinen wrote: > > On Sat, 2017-08-19 at 17:48 +0200, Georg Chini wrote: > > > This patch extends the client subscription API, so that signals sent from > > > PulseAudio can be processed.

Re: [pulseaudio-discuss] [PATCH 4/6] core: add message handler

2017-10-03 Thread Tanu Kaskinen
On Mon, 2017-10-02 at 14:32 +0200, Georg Chini wrote: > On 02.10.2017 11:31, Tanu Kaskinen wrote: > > On Sun, 2017-10-01 at 20:31 +0200, Georg Chini wrote: > > > On 01.10.2017 18:16, Tanu Kaskinen wrote: > > > > On Sat, 2017-08-19 at 17:48 +0200, Georg Chini wrot

Re: [pulseaudio-discuss] [PATCH 5/6] protocol-native: Add signal receiving capability

2017-10-02 Thread Tanu Kaskinen
On Sat, 2017-08-19 at 17:48 +0200, Georg Chini wrote: > This patch extends the client subscription API, so that signals sent from > PulseAudio can be processed. Within PulseAudio, a signal can be emitted > using pa_signal_post(). The interface can be used to notify the client of > events that are n

Re: [pulseaudio-discuss] [PATCH 4/6] core: add message handler

2017-10-02 Thread Tanu Kaskinen
On Sun, 2017-10-01 at 20:31 +0200, Georg Chini wrote: > On 01.10.2017 18:16, Tanu Kaskinen wrote: > > On Sat, 2017-08-19 at 17:48 +0200, Georg Chini wrote: > > > +/* List handlers */ > > > +char *pa_core_message_handler_list(pa_core *c); > > > > Putting t

Re: [pulseaudio-discuss] [PATCH 3/6] pactl, pacmd, cli-command: Add send-message command

2017-10-02 Thread Tanu Kaskinen
On Sun, 2017-10-01 at 20:26 +0200, Georg Chini wrote: > On 30.09.2017 14:34, Tanu Kaskinen wrote: > > On Fri, 2017-09-29 at 22:32 +0200, Georg Chini wrote: > > > On 29.09.2017 16:03, Tanu Kaskinen wrote: > > > > On Sat, 2017-08-19 at 17:48 +0200, Georg Chini wrote:

Re: [pulseaudio-discuss] [PATCH] alsa-mixer: Prioritize hdmi-* mappings over iec958-* mappings

2017-10-01 Thread Tanu Kaskinen
On Fri, 2017-09-22 at 17:54 +, Kristian Klausen wrote: > Pulseaudio tries to pick the best profile (on startup or > hotplugged), the best profile is the profile with the highest > priority which isn't unavailable. > Due to the facts that iec958 ports available status always (?) > is unknown, an

[pulseaudio-discuss] [PATCH] echo-cancel: make webrtc beamforming parameter parsing locale independent

2017-10-01 Thread Tanu Kaskinen
sscanf() uses the current locale, and on some locales comma is used as the decimal point. This patch rewrites parse_point() to avoid sscanf() at the cost of more manual parsing work. BugLink: https://bugs.freedesktop.org/show_bug.cgi?id=96819 --- src/modules/echo-cancel/webrtc.cc | 36 +++

Re: [pulseaudio-discuss] [PATCH 4/6] core: add message handler

2017-10-01 Thread Tanu Kaskinen
On Sat, 2017-08-19 at 17:48 +0200, Georg Chini wrote: > +/* List handlers */ > +char *pa_core_message_handler_list(pa_core *c); Putting this function to core-messages.h doesn't seem right to me. The function will never be used outside core.c, so the it should be a private function in core.c. > +s

Re: [pulseaudio-discuss] [PATCH 3/6] pactl, pacmd, cli-command: Add send-message command

2017-09-30 Thread Tanu Kaskinen
On Fri, 2017-09-29 at 22:32 +0200, Georg Chini wrote: > On 29.09.2017 16:03, Tanu Kaskinen wrote: > > On Sat, 2017-08-19 at 17:48 +0200, Georg Chini wrote: > > > --- > > > man/pactl.1.xml.in | 6 + > > > man/pulse-cli-syntax.5.xml.in

Re: [pulseaudio-discuss] [PATCH 3/6] pactl, pacmd, cli-command: Add send-message command

2017-09-29 Thread Tanu Kaskinen
On Sat, 2017-08-19 at 17:48 +0200, Georg Chini wrote: > --- > man/pactl.1.xml.in | 6 + > man/pulse-cli-syntax.5.xml.in| 6 + > shell-completion/bash/pulseaudio | 5 +++-- > shell-completion/zsh/_pulseaudio | 2 ++ > src/pulsecore/cli-command.c | 47 > ++

Re: [pulseaudio-discuss] [PATCH 2/6] protocol-native: add message sending capability

2017-09-28 Thread Tanu Kaskinen
On Sat, 2017-08-19 at 17:48 +0200, Georg Chini wrote: > This patch adds the PA_COMMAND_SEND_OBJECT_MESSAGE command to protocol-native > so that clients can use the messaging feature introduced in the previous > patch. > > Sending messages can in effect replace the extension system for modules. Th

Re: [pulseaudio-discuss] [PATCH 1/6] core: add simple message interface

2017-09-23 Thread Tanu Kaskinen
On Sat, 2017-09-23 at 14:45 +0200, Georg Chini wrote: > On 23.09.2017 13:59, Tanu Kaskinen wrote: > > On Sat, 2017-08-19 at 17:48 +0200, Georg Chini wrote: > > > +/* Ensure that the recipient name is not empty and starts with "/". > > > */

Re: [pulseaudio-discuss] [PATCH 1/6] core: add simple message interface

2017-09-23 Thread Tanu Kaskinen
On Sat, 2017-08-19 at 17:48 +0200, Georg Chini wrote: > This patch adds a new feature to the core which allows to send > messages to objects. An object can register/unregister a message > handler with pa_core_message_handler_{register, unregister}() while I would prefer pa_core_register_message_ha

Re: [pulseaudio-discuss] PulseAudio internals overview

2017-09-22 Thread Tanu Kaskinen
On Fri, 2017-09-22 at 01:41 +0300, Victor wrote: > Hi, > > I've written a blog post with an overview of PA internals: > https://gavv.github.io/blog/pulseaudio-under-the-hood/ > > Any feedback is appreciated :) Impressive work! We'll definitely need to link to it from the wiki, until maybe some d

Re: [pulseaudio-discuss] [PATCH v4 0/3] use bluetooth HFP in pulseaudio when available

2017-09-21 Thread Tanu Kaskinen
On Thu, 2017-09-21 at 17:47 +0200, Georg Chini wrote: > On 21.09.2017 16:47, James Bottomley wrote: > > On Thu, 2017-09-21 at 17:28 +0300, Tanu Kaskinen wrote: > > > I think we should use the native backend for the HFP AG role by > > > default. If the native HFP AG imple

Re: [pulseaudio-discuss] Handling audio skew during playback

2017-09-21 Thread Tanu Kaskinen
On Wed, 2017-09-20 at 17:00 +, Nicholas Wilson wrote: > Hi, > > I have a question about how PulseAudio expects skew to be handled > during playback. > > When you make a stream running at 48kHz, does it consume samples at > 48kHz as measured by the OS clock (clock_gettime) or as measured by >

Re: [pulseaudio-discuss] Audio input start working after suspend.

2017-09-21 Thread Tanu Kaskinen
On Wed, 2017-09-20 at 11:31 -0300, Gustavo Duarte wrote: > Hi all, > > We are having problems with audio input. > > Environment: > > Laptop Brand: SF20BA > Sist. OP: Ubuntu 16.04 > Desktop: Gnome Flashback. > > > Issue description: > > 1) Boot laptop. > 2) Try recording with QArecord, no audi

Re: [pulseaudio-discuss] [PATCH v4 0/3] use bluetooth HFP in pulseaudio when available

2017-09-21 Thread Tanu Kaskinen
On Thu, 2017-09-21 at 08:13 +0200, Georg Chini wrote: > On 21.09.2017 06:45, James Bottomley wrote: > > On Thu, 2017-09-21 at 06:27 +0200, Georg Chini wrote: > > > On 20.09.2017 23:12, James Bottomley wrote: > > > > On Wed, 2017-09-20 at 20:41 +0200, Georg Chini wrote: > > > > > On 20.09.2017 20:10

Re: [pulseaudio-discuss] [Patch] RAOP: fix audio synchronisation, take two

2017-09-21 Thread Tanu Kaskinen
On Tue, 2017-09-19 at 19:56 +0200, Colin Leroy wrote: > On 18 September 2017 at 22h47, Tanu Kaskinen wrote: > > Hi, > > > No, the function doesn't set the parameter when the argument is not > > present. > > Oh, right, I misread it. I could have initialized t

Re: [pulseaudio-discuss] pulseaudio setup issues

2017-09-21 Thread Tanu Kaskinen
On Wed, 2017-09-20 at 12:00 +0530, namit...@codeaurora.org wrote: > On 2017-09-17 21:28, Tanu Kaskinen wrote: > > On Tue, 2017-09-12 at 17:59 +0530, namit...@codeaurora.org wrote: > > > E: [pulseaudio] module-alsa-card.c: Failed to find a working profile. > > > > Ver

[pulseaudio-discuss] [PATCH] alsa-card: improve the profile availability logic

2017-09-21 Thread Tanu Kaskinen
When a new card shows up (during pulseaudio startup or hotplugged), pulseaudio needs to pick the initial profile for the card. Unavailable profiles shouldn't be picked, but module-alsa-card sometimes marked unavailable profiles as available, causing bad initial profile choices. This patch changes

[pulseaudio-discuss] [PATCH] qpaeq: change license from AGPL to LGPL v2.1

2017-09-19 Thread Tanu Kaskinen
This removes one unnecessary exception in the PulseAudio licensing terms. In December 2016 I asked permission from all qpaeq contributors for the license change, and all gave the permission. I have archived the emails here: https://www.freedesktop.org/software/pulseaudio/misc/qpaeq_relicensing_emai

Re: [pulseaudio-discuss] How to control latency with CLI?

2017-09-19 Thread Tanu Kaskinen
On Tue, 2017-09-19 at 19:07 +0930, Steven Wawryk wrote: > Hello, > > I'm trying to work out how to control latency with pulseaudio CLI scripts. > > We're finding that latency varies between a few seconds to about 80 seconds. > > We have a system which uses a dedicated embedded board for many cha

Re: [pulseaudio-discuss] Loss of Sound

2017-09-18 Thread Tanu Kaskinen
On Mon, 2017-09-18 at 11:37 +0200, myc...@tutanota.com wrote: > Can anyone please help with the following problem ? > > The sound on a desktop PC running Debian Jessie has stopped working - no > sound from any websites (e.g. BBC or YouTube) and trying to play a > standard sound file I have saved w

Re: [pulseaudio-discuss] Tolerating network failures

2017-09-18 Thread Tanu Kaskinen
On Sun, 2017-09-17 at 18:55 +, Mark Raynsford wrote: > Hello. > > Right now, I'm using the module-tunnel-sink module on clients to send > audio to a central server (that is itself using the > module-native-protocol-tcp module). > > If anything causes a client connection to go down (such as by

Re: [pulseaudio-discuss] [Patch] RAOP: fix audio synchronisation, take two

2017-09-18 Thread Tanu Kaskinen
On Sun, 2017-09-17 at 20:54 +0200, Colin Leroy wrote: > On 17 September 2017 at 19h51, Tanu Kaskinen wrote: > > Why do you check the return value of pa_modargs_get_value() before > > calling pa_modargs_get_value_u32()? As far as I can tell, that makes &g

[pulseaudio-discuss] [ANNOUNCE] PulseAudio 11.1

2017-09-18 Thread Tanu Kaskinen
Hi all, The 11.0 release had some nasty regressions, so we decided to make a bug fix release. Here it is, PulseAudio 11.1, with the following changes:  * Fix a crash in filter modules related to flat volumes and volume sharing  * Fix a crash when the bluetooth adapter reports weird MTU size  *

Re: [pulseaudio-discuss] [Patch] RAOP: fix audio synchronisation, take two

2017-09-17 Thread Tanu Kaskinen
"git am" fails to apply the patch on top of the master branch (as it failed to apply the previous versions too, but I forgot to mention that earlier). On Fri, 2017-09-15 at 21:34 +0200, Colin Leroy wrote: > From ffda854fab9641a66eacdf7bdd812f41f2af65ce Mon Sep 17 00:00:00 2001 > From: Colin Leroy

Re: [pulseaudio-discuss] server-lookup.c: Unable to contact D-Bus

2017-09-17 Thread Tanu Kaskinen
On Fri, 2017-09-15 at 16:28 +0530, namit...@codeaurora.org wrote: > I am running pulseaudio on a embedded system without any display > attached. > / # pulseaudio -nC > W: [pulseaudio] main.c: This program is not intended to be run as root > (unless --system is specified). > W: [pulseaudio] server

Re: [pulseaudio-discuss] [PATCH] echo-cancel: add api support for webrtc echo suppression

2017-09-17 Thread Tanu Kaskinen
On Thu, 2017-09-14 at 12:21 -0700, James Huang wrote: > --- > src/modules/echo-cancel/webrtc.cc | 11 ++- > 1 file changed, 10 insertions(+), 1 deletion(-) > > diff --git a/src/modules/echo-cancel/webrtc.cc > b/src/modules/echo-cancel/webrtc.cc > index aadb1af2..107d2301 100644 > --- a/s

Re: [pulseaudio-discuss] AppArmor profile for PulseAudio

2017-09-17 Thread Tanu Kaskinen
On Thu, 2017-09-14 at 12:33 +0200, Mikhail Morfikov wrote: > Hello, > > I wrote an experimental AppArmor profile for PulseAudio. I also have some > profiles for bunch of other apps [1], and the question I want to ask isn't > really connected to those profiles, but rather it concerns interactions

Re: [pulseaudio-discuss] AppArmor profile for pulseaudio

2017-09-17 Thread Tanu Kaskinen
On Wed, 2017-09-13 at 21:16 -0300, Felipe Sateler wrote: > I have been told downstream[1] that there is an AppArmor profile that > is worked on by people from Debian, Ubuntu and OpenSUSE. I have been > asked to include it in the debian package but it seems to me that this > benefits most if include

Re: [pulseaudio-discuss] pulseaudio setup issues

2017-09-17 Thread Tanu Kaskinen
On Tue, 2017-09-12 at 17:59 +0530, namit...@codeaurora.org wrote: > Hi all, > I am using pulseaudio 6.0 > / # pulseaudio > W: [pulseaudio] main.c: This program is not intended to be run as root > (unless --system is specified). Why are you running pulseaudio as root? If there are no regular users

Re: [pulseaudio-discuss] Horribly choppy sound during bluetooth a2dp playback

2017-09-17 Thread Tanu Kaskinen
On Mon, 2017-09-11 at 12:57 +0300, Vladimir Lebedev wrote: > It looks like the problem was not in PulseAudio but in NanoPi NEO Plus2 > itself. The bluetooth is connected via UART(hci_uart driver) and firmware > for ap6212a chip is uploaded on system startup via brcm_patchram_plus > utility (in stoc

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

2017-09-16 Thread Tanu Kaskinen
On Sat, 2017-09-16 at 10:45 +0530, Arun Raghavan wrote: > On Sat, 16 Sep 2017, at 12:11 AM, Georg Chini wrote: > > On 14.09.2017 18:47, Tanu Kaskinen wrote: > > > Note that even though I wrote "it's best to use 48 as the MTUs by > > > default" in the

Re: [pulseaudio-discuss] probably pulseaudio error

2017-09-15 Thread Tanu Kaskinen
On Sun, 2017-09-10 at 10:19 -0400, Jude DaShiell wrote: > xcb_connection_has_error() returned true > What is the fix for this error? I don't know. But I can offer a hint: when an application connects to PulseAudio, libpulse will try to get some configuration bits from the X server. This error happ

Re: [pulseaudio-discuss] [Patch] RAOP: fix audio synchronisation, take two

2017-09-15 Thread Tanu Kaskinen
> From e9ac9ae71f9ef134f69757bbe481983374c08b04 Mon Sep 17 00:00:00 2001 > From: Colin Leroy > Date: Sat, 22 Jul 2017 14:50:40 +0200 > Subject: [PATCH] RAOP: Announce real latency > > Use predefined values depending on the server, and make it configurable. > AirPlay is supposed to have 2s of late

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

2017-09-14 Thread Tanu Kaskinen
On Wed, 2017-09-13 at 09:31 +0530, Arun Raghavan wrote: > On Tue, 31 Jan 2017, at 06:48 PM, Tanu Kaskinen wrote: > > 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: &

[pulseaudio-discuss] PulseAudio 11.1 maybe?

2017-09-10 Thread Tanu Kaskinen
There were a couple of regressions in 11.0, and USB devices aren't prioritized as promised in the release notes, so I think we should release 11.1 ASAP. At least these patches should be included IMO: sink, source: don't try to update volumes of not-yet-linked devices alsa-mixer: add mixer handling

[pulseaudio-discuss] [PATCH 1/2] sink, source: don't try to update volumes of not-yet-linked devices

2017-09-10 Thread Tanu Kaskinen
The order of the pa_sink_input_put() and pa_sink_put() calls in filter modules was swapped in commit edc465da77 ("virtual sources and sinks: Don't double attach a sink input or source output on filter load"). If flat volumes and volume sharing is enabled, the pa_sink_input_put() call will update vo

[pulseaudio-discuss] [PATCH 2/2] sink, source: fix out of date comments

2017-09-10 Thread Tanu Kaskinen
update_shared_real_volume() doesn't exist. I checked that update_real_volume() does what the comments claim update_shared_real_volume() to do. --- src/pulsecore/sink.c | 2 +- src/pulsecore/source.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pulsecore/sink.c b/src

Re: [pulseaudio-discuss] [Patch] RAOP: fix audio synchronisation, take two

2017-09-09 Thread Tanu Kaskinen
On Sat, 2017-09-09 at 18:07 +0200, Colin Leroy wrote: > On 09 September 2017 at 18h00, Tanu Kaskinen wrote: > > Hi Tanu, > > Your mail's empty :) Well I definitely wrote things, but Evolution did act strange while composing the message, and my "sent" folder

Re: [pulseaudio-discuss] [Patch] RAOP: fix audio synchronisation, take two

2017-09-09 Thread Tanu Kaskinen
___ pulseaudio-discuss mailing list pulseaudio-discuss@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/pulseaudio-discuss

Re: [pulseaudio-discuss] [PATCH] launch: avoid autostarting pulseaudio systemd units for root

2017-09-09 Thread Tanu Kaskinen
On Thu, 2017-09-07 at 10:06 -0300, Felipe Sateler wrote: > On Thu, Sep 7, 2017 at 9:01 AM, Tanu Kaskinen wrote: > > > On Wed, 2017-09-06 at 19:55 -0300, Felipe Sateler wrote: > > > --- a/src/daemon/systemd/user/pulseaudio.socket > > > +++ b/src/daemon/systemd/user/p

Re: [pulseaudio-discuss] bootstrap.sh redux

2017-09-09 Thread Tanu Kaskinen
On Fri, 2017-09-08 at 10:27 -0400, Russell Treleaven wrote: > I attempted to bootstrap pulseaudio and got a non obvious error. > > log is here https://pastebin.com/CctNdLwD > > installing autopoint fixed the problem > > the attached patch makes bootstrap.sh fail if autopoint is not available. T

[pulseaudio-discuss] [PATCH] alsa-mixer: add mixer handling to the fallback stereo case

2017-09-08 Thread Tanu Kaskinen
Some sound cards don't have any alsa-lib configuration, but they used to work well enough up to PulseAudio 10. PulseAudio 11 stopped using "hw:0" for the analog-stereo mapping, and instead defined it as a fallback mapping without any mixer handling. As a result, switching between headphones and spe

Re: [pulseaudio-discuss] [alsa-devel] [bug] Missing "front" definition for byt-max98090

2017-09-08 Thread Tanu Kaskinen
On Thu, 2017-09-07 at 19:13 +0200, Takashi Iwai wrote: > On Thu, 07 Sep 2017 18:33:17 +0200, > Tanu Kaskinen wrote: > > > > On Thu, 2017-09-07 at 15:54 +0200, Takashi Iwai wrote: > > > On Thu, 07 Sep 2017 14:25:44 +0200, > > > Tanu Kaskinen wrote: > > &g

Re: [pulseaudio-discuss] [PATCH] launch: avoid autostarting pulseaudio systemd units for root

2017-09-07 Thread Tanu Kaskinen
On Wed, 2017-09-06 at 19:55 -0300, Felipe Sateler wrote: > The autospawn mechanism already had a root-autospawn protection mechanism. > When > using systemd that was lost. Systemd 234 has a mechanism to conditionalize > unit starting > on the running user, so lets do that to protect against root

Re: [pulseaudio-discuss] Using PULSE_NAME to override USB audio card names

2017-09-07 Thread Tanu Kaskinen
On Wed, 2017-09-06 at 14:34 -0700, Lucas Rangit Magasweran wrote: > Hello devs, > > Is it okay to use PULSE_NAME in a udev rule to override the card name > used by PulseAudio? PULSE_NAME is used by > `module-udev-detect.c:card_change()` but is undocumented. > > I found this solution when I needed

Re: [pulseaudio-discuss] [RAOP] [PATCH] Fix audio synchronisation

2017-09-07 Thread Tanu Kaskinen
On Wed, 2017-09-06 at 19:17 +0200, Colin Leroy wrote: > On 06 September 2017 at 14h59, Tanu Kaskinen wrote: > > Hi Tanu, > > > > +    latency += 200; /* RAOP default latency */ > > > +    latency += pa_raop_client_get_rtp_diff(u->raop) * 1000; /* >

[pulseaudio-discuss] [PATCH] sink: remove priority bonus for the "internal" form factor

2017-09-06 Thread Tanu Kaskinen
We're supposed to prioritize USB sound cards over PCI sound cards, but the priority bonus for the "internal" form factor prevents this from happening. Not all (if any) USB sound cards have the form factor property set, whereas at least on my laptop the on-board sound card has the form factor set to

Re: [pulseaudio-discuss] PulseAudio is unable to detect right profile on this system.

2017-09-06 Thread Tanu Kaskinen
On Wed, 2017-09-06 at 12:08 +0430, Farhad Mohammadi Majd wrote: > This system has two OS: Debian v9 & Fedora v26, I installed PulseAudio > on Debian and tested this system with one speaker that has standalone > power and it does'nt work, this means headset and standalone > speaker neither don't wor

Re: [pulseaudio-discuss] [RAOP] [PATCH] Fix audio synchronisation

2017-09-06 Thread Tanu Kaskinen
On Tue, 2017-09-05 at 21:16 +0200, Colin Leroy wrote: > On 05 September 2017 at 16h50, Tanu Kaskinen wrote: > > Hi, > > > Sorry for not responding earlier. I intended to reply to this mail, > > but I accidentally marked it as read and forgot about it. > > >

Re: [pulseaudio-discuss] [RAOP] [PATCH] Fix audio synchronisation

2017-09-06 Thread Tanu Kaskinen
On Sat, 2017-07-22 at 14:53 +0200, Colin Leroy wrote: > diff --git a/src/modules/raop/raop-sink.c b/src/modules/raop/raop-sink.c > index e5d219e..108f855 100644 > --- a/src/modules/raop/raop-sink.c > +++ b/src/modules/raop/raop-sink.c > @@ -118,6 +118,13 @@ static int64_t sink_get_latency(const str

Re: [pulseaudio-discuss] [RAOP] [PATCH] Fix audio synchronisation

2017-09-05 Thread Tanu Kaskinen
On Sat, 2017-08-12 at 09:47 +0200, Colin Leroy wrote: > On 05 August 2017 at 10h24, Colin Leroy wrote: > > Hi, > > > > I think I've figured out how to cleanly synchronise audio and video > > > with RAOP with relying on my empirical "shifting audio 2300ms in > > > mplayer works". > > > > Hmmm,

[pulseaudio-discuss] [ANNOUNCE] PulseAudio 11.0

2017-09-05 Thread Tanu Kaskinen
Hello, world! The release of PulseAudio 11.0 has been a long time coming, and now it has finally materialized! Look at all this delicious new stuff the contributors have cooked:  * Support for newer AirPlay hardware  * USB and bluetooth devices preferred over internal sound cards  * Bluetooth HSP

Re: [pulseaudio-discuss] [PATCH] alsa-mixer: recognize the "Speaker Jack" control

2017-09-03 Thread Tanu Kaskinen
On Sun, 2017-09-03 at 10:26 -0300, Felipe Sateler wrote: > I don't know enough to review this patch, but I notice an inconsistency. > > On Sep 2, 2017 09:39, "Tanu Kaskinen" wrote: > > This control has been seen in the wild: > https://lists.freedesktop.org/ar

Re: [pulseaudio-discuss] [RFC PATCH 1/2] pulsecore: sink: force suspend/resume on passthrough transitions

2017-09-03 Thread Tanu Kaskinen
On Sun, 2017-09-03 at 11:32 +0530, Arun Raghavan wrote: > On Tue, 29 Aug 2017, at 04:19 AM, Pierre-Louis Bossart wrote: > > A race condition prevents the AES non-audio bit from being set > > when enabling IEC61937 passthrough on resume with no sink-input > > connected (pa_sink_is_passthrough return

Re: [pulseaudio-discuss] [PATCH] bluez5-device: lower sink/source priority for Audio gateway or a2dp source

2017-09-03 Thread Tanu Kaskinen
On Sat, 2017-09-02 at 21:46 +0200, Georg Chini wrote: > When a phone is connected via bluetooth and switches to HFP, the sinks > and sources will have higher priority than the built-in devices. > Therefore they are chosen as default and module-bluetooth-policy will > incorrectly insert loopback mod

Re: [pulseaudio-discuss] [PATCH] bluetooth: recognize another HSP HS UUID

2017-09-02 Thread Tanu Kaskinen
On Sat, 2017-09-02 at 15:10 +0200, Georg Chini wrote: > On 02.09.2017 14:44, Tanu Kaskinen wrote: > > There are actually two HSP HS UUIDs. My theory is that the second one > > was added, because someone was not happy with the old UUID being used > > for identifying two diff

Re: [pulseaudio-discuss] [PATCH] sink/source: lower priority of phone sinks/sources

2017-09-02 Thread Tanu Kaskinen
On Sat, 2017-09-02 at 13:31 +0200, Georg Chini wrote: > On 02.09.2017 13:12, Tanu Kaskinen wrote: > > On Fri, 2017-09-01 at 16:21 +0200, Georg Chini wrote: > > > When a phone is connected via bluetooth and switches to HFP, the sinks > > > and sources will have higher

[pulseaudio-discuss] [PATCH] bluetooth: recognize another HSP HS UUID

2017-09-02 Thread Tanu Kaskinen
There are actually two HSP HS UUIDs. My theory is that the second one was added, because someone was not happy with the old UUID being used for identifying two different things (the HSP profile as a whole, and the HS role within the HSP profile). Some headsets only use the new UUID, and those heads

[pulseaudio-discuss] [PATCH] alsa-mixer: recognize the "Speaker Jack" control

2017-09-02 Thread Tanu Kaskinen
This control has been seen in the wild: https://lists.freedesktop.org/archives/pulseaudio-discuss/2017-August/028595.html (The pastebin link in that mail might not work anymore, but the paste just shows that there's a Speaker Jack control). --- src/modules/alsa/mixer/paths/analog-output-speaker.co

Re: [pulseaudio-discuss] [PATCH] core: ignore devices that are not linked when choosing the default sink or source

2017-09-02 Thread Tanu Kaskinen
On Wed, 2017-08-30 at 21:15 +0200, Georg Chini wrote: > On 30.08.2017 20:51, Tanu Kaskinen wrote: > > Sources should probably be added to pa_core.sources in pa_source_put(), > > but currently they're added in pa_source_new(). A lot of stuff can > > happen betwe

Re: [pulseaudio-discuss] [PATCH] sink/source: lower priority of phone sinks/sources

2017-09-02 Thread Tanu Kaskinen
On Fri, 2017-09-01 at 16:21 +0200, Georg Chini wrote: > When a phone is connected via bluetooth and switches to HFP, the sinks > and sources will have higher priority than the built-in devices. > Therefore they are chosen as default and module-bluetooth-policy will > incorrectly insert loopback mod

Re: [pulseaudio-discuss] USB headset Steelseries Arctis troubleshooting

2017-09-02 Thread Tanu Kaskinen
On Sat, 2017-09-02 at 13:16 +0300, Johan Heikkilä wrote: > 2017-08-30 22:09 GMT+03:00 Johan Heikkilä : > > 2017-08-30 17:50 GMT+03:00 Tanu Kaskinen : > > > I made some modifications to the patch (new version attached), can you > > > test that it still works well? Modifi

Re: [pulseaudio-discuss] PulseAudio is unable to detect right profile on this system.

2017-09-02 Thread Tanu Kaskinen
On Wed, 2017-08-30 at 17:50 +0430, Farhad Mohammadi Majd wrote: > On Wed, 2017-08-30 at 13:27 +0300, Tanu Kaskinen wrote: > > According to the "pactl list cards" output, you only have headphone > > and > > spdif outputs, and headphones are currently not plugged in. S

[pulseaudio-discuss] [PATCH] core: ignore devices that are not linked when choosing the default sink or source

2017-08-30 Thread Tanu Kaskinen
Sources should probably be added to pa_core.sources in pa_source_put(), but currently they're added in pa_source_new(). A lot of stuff can happen between the pa_source_new() and pa_source_put() calls, and it has happened that the default source was updated during this time. Therefore, pa_core_updat

Re: [pulseaudio-discuss] [PATCH] alsa-mixer: round, not truncate, in to_alsa_dB

2017-08-30 Thread Tanu Kaskinen
On Wed, 2017-08-30 at 11:09 +0300, Ian Ray wrote: > to_alsa_dB() returns a result rounded to two decimal places (instead of > using integer truncation) to avoid small errors when converting between > dB and volume. > > Consider playback at -22 dB (which is supported by ALSA) but results in > the h

Re: [pulseaudio-discuss] USB dB data

2017-08-30 Thread Tanu Kaskinen
On Tue, 2017-08-29 at 13:47 -0700, Jack Bates wrote: > I confirmed with Wireshark that my USB sound card responds to GET_MIN > with 0x and GET_MAX with 0x6300 ... The audio device class > definition [1] says the units are 1/256 dB (section 5.2.2.2.3: Mixer > Control) ... So by my calculation

Re: [pulseaudio-discuss] pacmd list Daemon not responding.

2017-08-30 Thread Tanu Kaskinen
On Mon, 2017-08-28 at 10:31 +0530, namit...@codeaurora.org wrote: > I have restarted system and run only one pulseaudio in system mode and > pactl instead of pacmd. > > / # pactl info > Connection failure: Access denied > > / # ps aux | grep -i pulse > 2117 pulse 3:32 pulseaudio -D --syst

Re: [pulseaudio-discuss] [PATCH] Don't abort on double module load

2017-08-30 Thread Tanu Kaskinen
On Sun, 2017-08-27 at 22:48 +0200, Colin Leroy wrote: > On 27 August 2017 at 19h07, Colin Leroy wrote: > > Hi, > > > > The solution seems good to me. Just a couple of minor issues: > > > > Here's a patch addressing your remarks. I squashed the two commits in > > one for clarity. > > He, sorr

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