[pulseaudio-discuss] PulseAudio, switch audio output on device connection

2014-09-29 Thread Mark Gaiser
Hi PulseAudio list, Note: please keep me in CC, i'm not registered on this list. I've been having this issue for as long as i use Linux (with pulseaudio) but never really bothered to look into the issue and try to resolve it. That's something i've been trying to tackle for a few days now without

Re: [pulseaudio-discuss] [PATCH] Don't let user-set PULSE_RUNTIME_PATH values affect behaviour

2014-09-29 Thread David Henningsson
On 2014-09-28 11:23, Tanu Kaskinen wrote: The logic for choosing the runtime directory is complicated enough also without adding PULSE_RUNTIME_PATH into the mix. XDG_RUNTIME_DIR is sufficient for users to control the runtime directory. PULSE_RUNTIME_PATH has not been documented, so this change

Re: [pulseaudio-discuss] [RFC PATCH] alsa-sink: Reduce hardware pointer update syscalls

2014-09-29 Thread David Henningsson
On 2014-09-26 23:20, Pierre-Louis Bossart wrote: On 9/24/14, 1:17 AM, David Henningsson wrote: On 2014-09-23 22:34, Pierre-Louis Bossart wrote: On 9/18/14, 2:13 AM, David Henningsson wrote: Calling snd_pcm_avail/delay causes a syscall to the kernel, which communicates with the audio hardwa

Re: [pulseaudio-discuss] [RFC PATCH] alsa-sink: Reduce hardware pointer update syscalls

2014-09-29 Thread Alexander E. Patrakov
29.09.2014 18:16, David Henningsson wrote: Ah, now I get it - the problem is not that the buffer might become half empty, the problem is that you might estimate to sleep too long, so your process time is effectively cut in half: if you previously had problems with process times > 20 ms, you can n

Re: [pulseaudio-discuss] [RFC PATCH] alsa-sink: Reduce hardware pointer update syscalls

2014-09-29 Thread Laurențiu Nicola
If nobody tried it, I might test the patch on my USB DAC. The problem is that I'm not sure what's the best way to benchmark the playback. Do you have some tips on that? Laurentiu On Mon, Sep 29, 2014, at 15:16, David Henningsson wrote: > > > On 2014-09-26 23:20, Pierre-Louis Bossart wrote: > >

Re: [pulseaudio-discuss] [RFC PATCH] alsa-sink: Reduce hardware pointer update syscalls

2014-09-29 Thread David Henningsson
On 2014-09-29 16:33, Laurențiu Nicola wrote: If nobody tried it, I might test the patch on my USB DAC. The problem is that I'm not sure what's the best way to benchmark the playback. Do you have some tips on that? Run "top" in a low-latency playback scenario, that should be enough. You might

Re: [pulseaudio-discuss] [RFC PATCH] alsa-sink: Reduce hardware pointer update syscalls

2014-09-29 Thread David Henningsson
On 2014-09-29 14:49, Alexander E. Patrakov wrote: 29.09.2014 18:16, David Henningsson wrote: Ah, now I get it - the problem is not that the buffer might become half empty, the problem is that you might estimate to sleep too long, so your process time is effectively cut in half: if you previous