Re: [pulseaudio-discuss] Can PulseAudio "automatically start" jackd?

2017-11-30 Thread Tanu Kaskinen
On Sat, 2017-11-11 at 02:07 +, Jaime T wrote: > Hi all. > > As per "man jackd", "JACK is evolving a mechanism for automatically > starting the server when needed. Any client started without a running > JACK server will attempt to start one itself...". I've got a laptop > running Debian 9

Re: [pulseaudio-discuss] bluetooth headset disconection

2017-11-30 Thread Tanu Kaskinen
On Thu, 2017-11-30 at 21:16 +0900, Shinnosuke Suzuki wrote: > Hi, > > I found the article bellow: > https://wiki.archlinux.org/index.php/PulseAudio > From this article, If I changed some configuration, pulseaudio can set > bluetooth headset as default sink. > But I couldn't find how to set

Re: [pulseaudio-discuss] [PATCH] pulsecore: declaration/implementation mismatches

2017-11-29 Thread Tanu Kaskinen
On Wed, 2017-11-08 at 20:01 +0300, Constantine Kharlamov wrote: > Fixes the following compiler errors: > > ./pulsecore/sconv-s16be.h:41:6: warning: type of > 'pa_sconv_s24_32be_from_float32ne' does not match original declaration > [-Wlto-type-mismatch] > void

Re: [pulseaudio-discuss] some patches

2017-11-29 Thread Tanu Kaskinen
On Mon, 2017-11-06 at 19:18 +, jnq...@gmail.com wrote: > some patches for master attached > > 1) Constify a param in pa_cvolume_scale_mask > 2) A small efficiency tweak to volume handling > 3) A big collection of API documentation improvements > Includes typo fixes; neatening; addition of

[pulseaudio-discuss] [PATCH 0/2] module-device-manager routing fix

2017-11-28 Thread Tanu Kaskinen
] https://github.com/wwmm/pulseeffects/issues/99 Tanu Kaskinen (2): sink-input, source-output: add sink/source_requested_by_application flag device-manager: don't override application routing requests src/modules/echo-cancel/module-echo-cancel.c | 4 ++-- src/modules/module-allow

[pulseaudio-discuss] [PATCH 2/2] device-manager: don't override application routing requests

2017-11-28 Thread Tanu Kaskinen
module-device-manager doesn't change the routing of those streams that have been explicitly routed by the user, which is good. Similarly, it should leave those streams alone whose routing was decided by the application that created the stream. This patch implements that. BugLink:

[pulseaudio-discuss] [PATCH 1/2] sink-input, source-output: add sink/source_requested_by_application flag

2017-11-28 Thread Tanu Kaskinen
When a stream is created, and the stream creator specifies which device should be used, that can affect automatic routing policies. Specifically, module-device-manager shouldn't apply its priority list routing when a stream has been routed by the application that created the stream. A stream that

Re: [pulseaudio-discuss] bluetooth headset disconection

2017-11-23 Thread Tanu Kaskinen
On Tue, 2017-11-21 at 15:55 +0900, Shinnosuke Suzuki wrote: > Hi, > > Once the bluetooth headset was reconneted to pulseaudio, this issue has > occurred. > So, is there a way to prevent the Bluetooth module (module-bluez5-*) from > being deleted when the Bluetooth headset is disconnected? > Or Do

Re: [pulseaudio-discuss] [PATCH] build-sys: add the Dell dock TB16 configuration

2017-11-23 Thread Tanu Kaskinen
On Mon, 2017-11-13 at 10:17 +0800, Hui Wang wrote: > Signed-off-by: Hui Wang > --- > Forgot to add this to build sys with the commit 60c0edd5. > > src/Makefile.am | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/src/Makefile.am

[pulseaudio-discuss] [PATCH] core-util, cpu-x86: use __get_cpuid() instead of homegrown assembly

2017-11-22 Thread Tanu Kaskinen
The get_cpuid() function in cpu-x86.c was buggy on x86-64. When building without optimizations, the homegrown assembly code overwrote the beginning of the function argument list on the stack. That happened to work fine on regular x86-64, but caused crashing with the x32 ABI. At least GCC and

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

2017-11-09 Thread Tanu Kaskinen
On Sun, 2017-10-29 at 20:51 +0100, 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_message_handler_{register, unregister}() while a message can be sent > to the handler using

[pulseaudio-discuss] [PATCH 0/2] module-echo-cancel fixes

2017-11-09 Thread Tanu Kaskinen
Tanu Kaskinen (2): echo-cancel: ignore remaining canceller messages after the module has been unloaded echo-cancel: fix a memory leak src/modules/echo-cancel/module-echo-cancel.c | 22 ++ 1 file changed, 22 insertions(+) -- 2.14.2

[pulseaudio-discuss] [PATCH 1/2] echo-cancel: ignore remaining canceller messages after the module has been unloaded

2017-11-09 Thread Tanu Kaskinen
Not ignoring the messages caused crashing due to accessing the userdata after it had been freed. BugLink: https://bugs.freedesktop.org/show_bug.cgi?id=103528 --- src/modules/echo-cancel/module-echo-cancel.c | 19 +++ 1 file changed, 19 insertions(+) diff --git

[pulseaudio-discuss] [PATCH 2/2] echo-cancel: fix a memory leak

2017-11-09 Thread Tanu Kaskinen
The pa_echo_canceller_msg object was never unreffed. --- src/modules/echo-cancel/module-echo-cancel.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/modules/echo-cancel/module-echo-cancel.c b/src/modules/echo-cancel/module-echo-cancel.c index ee3725abd..4fc837d2a

Re: [pulseaudio-discuss] How to check visually for XRUNs/drop-out/interruptions and similar in PulseAudio?

2017-11-09 Thread Tanu Kaskinen
On Wed, 2017-11-08 at 15:31 +0100, 21na...@gmail.com wrote: > Le 08/11/2017 à 12:43, Tanu Kaskinen a écrit : > > The issues with rewinds were about monitor sources and resampling. If I > > understood correctly, your source material is in 48000 Hz and Jack is > > configured w

[pulseaudio-discuss] [PATCH 1/2] card-restore: log the correct profile name

2017-11-08 Thread Tanu Kaskinen
--- src/modules/module-card-restore.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/module-card-restore.c b/src/modules/module-card-restore.c index 3c0307bee..2d3a91c01 100644 --- a/src/modules/module-card-restore.c +++ b/src/modules/module-card-restore.c @@

[pulseaudio-discuss] [PATCH 2/2] card-restore: don't restore unavailable profiles

2017-11-08 Thread Tanu Kaskinen
--- src/modules/module-card-restore.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/modules/module-card-restore.c b/src/modules/module-card-restore.c index 2d3a91c01..b7189ad53 100644 --- a/src/modules/module-card-restore.c +++

[pulseaudio-discuss] [PATCH 0/2] module-card-restore fixes

2017-11-08 Thread Tanu Kaskinen
Tanu Kaskinen (2): card-restore: log the correct profile name card-restore: don't restore unavailable profiles src/modules/module-card-restore.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) -- 2.14.2 ___ pulseaudio-discuss

Re: [pulseaudio-discuss] How to check visually for XRUNs/drop-out/interruptions and similar in PulseAudio?

2017-11-08 Thread Tanu Kaskinen
On Tue, 2017-11-07 at 15:29 +0100, 21na...@gmail.com wrote: > If you cannot be 100% sure, is any problem replaced by a 0dB sound? If > so, then I can check for a possible problem with Audacity and > Sample Data Export. For example, if an underrun or a rewind occurs, is > it replaced by 0dB by

Re: [pulseaudio-discuss] How to check visually for XRUNs/drop-out/interruptions and similar in PulseAudio?

2017-11-07 Thread Tanu Kaskinen
On Tue, 2017-11-07 at 00:30 +0100, 21na...@gmail.com wrote: > Le 06/11/2017 à 11:00, Tanu Kaskinen a écrit : > > On Sun, 2017-11-05 at 19:23 +0100, 21na...@gmail.com wrote: > > > Le 05/11/2017 à 10:54, Tanu Kaskinen a écrit : > > > > The alsa sink will log "Und

Re: [pulseaudio-discuss] How to change which connected microphone to use.

2017-11-07 Thread Tanu Kaskinen
On Mon, 2017-11-06 at 16:56 -0700, inssr...@gmail.com wrote: > > > Looking to accomplish the following: > > *Change default microphone from analog mic to logitech 920C Webcam > Mic (or back the other way) from the command line. > > *would like to be able to do this using

Re: [pulseaudio-discuss] How to check visually for XRUNs/drop-out/interruptions and similar in PulseAudio?

2017-11-06 Thread Tanu Kaskinen
On Sun, 2017-11-05 at 19:23 +0100, 21na...@gmail.com wrote: > Le 05/11/2017 à 10:54, Tanu Kaskinen a écrit : > > The alsa sink will log "Underrun!" if PulseAudio doesn't write fast > > enough to alsa, but if you're only using jack as the output in > > Pul

Re: [pulseaudio-discuss] [PATCH] pulsecore: disable incompatible MMX and SSE code on x86 macOS.

2017-11-05 Thread Tanu Kaskinen
On Tue, 2017-03-07 at 23:00 +0100, Mihai Moldovan wrote: > We need the same workaround FreeBSD uses. > --- > src/pulsecore/svolume_mmx.c | 8 > src/pulsecore/svolume_sse.c | 8 > 2 files changed, 8 insertions(+), 8 deletions(-) Thanks! Applied. -- Tanu

Re: [pulseaudio-discuss] [PATCH v2] module-coreaudio-{device, detect}: implement record and playback modargs, curtesy of module-waveout.

2017-11-05 Thread Tanu Kaskinen
On Thu, 2016-02-11 at 03:25 +0100, Mihai Moldovan wrote: > Signed-off-by: Mihai Moldovan > --- > src/modules/macosx/module-coreaudio-detect.c | 30 > +--- > src/modules/macosx/module-coreaudio-device.c | 23 ++--- > 2 files changed, 47

Re: [pulseaudio-discuss] Pulseaudio, how to change between two connected microphones from command line?

2017-11-05 Thread Tanu Kaskinen
On Sat, 2017-11-04 at 05:32 -0600, inssr...@gmail.com wrote: > Looking to accomplish the following: > > *Change default microphone from analog mic to logitech 920C Webcam > Mic (or back the other way) from the command line. You seem to already know how to do this (i.e. the

Re: [pulseaudio-discuss] How to check visually for XRUNs/drop-out/interruptions and similar in PulseAudio?

2017-11-05 Thread Tanu Kaskinen
On Fri, 2017-11-03 at 15:24 +0100, 21na...@gmail.com wrote: > Le 03/11/2017 à 10:05, Tanu Kaskinen a écrit : > > Drop-outs are logged, but you need to enable verbose logging. > > PulseAudio generates a lot of logs in the verbose mode, I don't know if > > you want all that

Re: [pulseaudio-discuss] Hsp profile available but not working

2017-11-03 Thread Tanu Kaskinen
On Fri, 2017-11-03 at 08:11 +, Vimal Babu wrote: > Hi, > > I also faced same issue in HFP, > > < SCO data: handle 6 flags 0x00 dlen 48 > > : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 > > 0010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

Re: [pulseaudio-discuss] How to check visually for XRUNs/drop-out/interruptions and similar in PulseAudio?

2017-11-03 Thread Tanu Kaskinen
On Thu, 2017-11-02 at 21:32 +0100, 21na...@gmail.com wrote: > Le 01/11/2017 à 10:55, Tanu Kaskinen a écrit : > > On Mon, 2017-10-30 at 15:40 +0100, 21na...@gmail.com wrote: > > > Hello, > > > > > > > > > I would like to know how can I check

Re: [pulseaudio-discuss] [PATCH 0/2 pavucontrol] A couple of small cleanups

2017-11-02 Thread Tanu Kaskinen
On Thu, 2017-11-02 at 09:04 +0100, Colin Leroy wrote: > On Wed, 1 Nov 2017 13:47:04 +0200, Tanu Kaskinen <ta...@iki.fi> wrote: > > Hi, > > > remove unnecessary RefPtr wrapping of PavuApplication > > remove unnecessary Window -> MainWindow casting > >

Re: [pulseaudio-discuss] [PATCH] pavucontrol: implement single-launch

2017-11-01 Thread Tanu Kaskinen
On Tue, 2017-10-31 at 16:20 +0100, Colin Leroy wrote: > On Mon, 30 Oct 2017 16:15:52 +0200, Tanu Kaskinen <ta...@iki.fi> wrote: > > Why does the PavuApplication need to be wrapped in a RefPtr? > > To build :) > This is apparently inherent to overloading Gtk::Applicatio

[pulseaudio-discuss] [PATCH 1/2 pavucontrol] remove unnecessary RefPtr wrapping of PavuApplication

2017-11-01 Thread Tanu Kaskinen
There's no need for reference counting of PavuApplication. --- src/pavuapplication.cc | 21 - src/pavuapplication.h | 5 + 2 files changed, 9 insertions(+), 17 deletions(-) diff --git a/src/pavuapplication.cc b/src/pavuapplication.cc index 3fc874f..b67ec04 100644 ---

[pulseaudio-discuss] [PATCH 2/2 pavucontrol] remove unnecessary Window -> MainWindow casting

2017-11-01 Thread Tanu Kaskinen
mainwindow.h and pavucontrol.h include each other, which makes it necessary to declare some types before the include directives. --- src/mainwindow.h | 2 ++ src/pavuapplication.cc | 2 +- src/pavucontrol.cc | 2 +- src/pavucontrol.h | 4 +++- 4 files changed, 7 insertions(+), 3

[pulseaudio-discuss] [PATCH 0/2 pavucontrol] A couple of small cleanups

2017-11-01 Thread Tanu Kaskinen
*** BLURB HERE *** Tanu Kaskinen (2): remove unnecessary RefPtr wrapping of PavuApplication remove unnecessary Window -> MainWindow casting src/mainwindow.h | 2 ++ src/pavuapplication.cc | 23 +-- src/pavuapplication.h | 5 + src/pavucontrol.cc |

Re: [pulseaudio-discuss] Hsp profile available but not working

2017-11-01 Thread Tanu Kaskinen
On Tue, 2017-10-31 at 13:29 +0100, Paweł B wrote: > Hi All. > > I have a problem with hsp profile. > > After connect to Philips WeCall Speaker profile headset_head_unit is > available: > I set default sink and source. > > After run ‘mplayer test.wav’ nothing is happens (there is no sound).

Re: [pulseaudio-discuss] [PATCH] modules: support XDG_DATA_DIRS when find desktop files

2017-11-01 Thread Tanu Kaskinen
On Tue, 2017-10-31 at 11:46 +0800, Iceyer wrote: > --- > src/modules/module-augment-properties.c | 63 > + > 1 file changed, 40 insertions(+), 23 deletions(-) > > diff --git a/src/modules/module-augment-properties.c > b/src/modules/module-augment-properties.c >

Re: [pulseaudio-discuss] How to check visually for XRUNs/drop-out/interruptions and similar in PulseAudio?

2017-11-01 Thread Tanu Kaskinen
On Mon, 2017-10-30 at 15:40 +0100, 21na...@gmail.com wrote: > Hello, > > > I would like to know how can I check visually (with an indicator for > example) for XRUNs/drop-out/interruptions and similar? > I use (on Debian): > – pulseaudio (configured to work with jack); > –

Re: [pulseaudio-discuss] "Unable to convert error string to locale, filtering." errors

2017-11-01 Thread Tanu Kaskinen
On Sun, 2017-10-29 at 18:34 +0100, Sjoerd Venema wrote: > Hi, > > I'm getting a lot of "Unable to convert error string to locale, filtering." > errors in my /var/log/messages. I think PulseAudio is sending them out as > UTF-8. > > However, my locale -a output contains UTF-8: > en_US ISO-8859-1

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

2017-10-31 Thread Tanu Kaskinen
On Mon, 2017-10-30 at 19:48 +1030, Steven Wawryk wrote: > > > The limit is the source's max rewind amount, and I see a bug related to > > > that in module-remap-source (I wouldn't be surprised if it's in other > > > filter sources too). The remap source max rewind is supposed to mirror > > > the

[pulseaudio-discuss] [PATCH 2/2] remap-source, virtual-source: fix max_rewind handling

2017-10-31 Thread Tanu Kaskinen
The filter sources should have the same max_rewind as the master source, but these modules didn't update max_rewind when the master max_rewind changed. --- src/modules/module-remap-source.c | 12 src/modules/module-virtual-source.c | 12 2 files changed, 24

[pulseaudio-discuss] [PATCH 0/2] max_rewind fixes

2017-10-31 Thread Tanu Kaskinen
Tanu Kaskinen (2): alsa-sink: update max_rewind when updating the latency remap-source, virtual-source: fix max_rewind handling src/modules/alsa/alsa-sink.c| 39 +++-- src/modules/module-remap-source.c | 12 src/modules/module-virtual

[pulseaudio-discuss] [PATCH 1/2] alsa-sink: update max_rewind when updating the latency

2017-10-31 Thread Tanu Kaskinen
Previously max_rewind was always set to the full hw buffer size, but the actual maximum rewind amount is limited to the part of the hw buffer that is in use. The rewind request that was done when lowering the sink latency had to be moved to happen before updating max_rewind. The practical

Re: [pulseaudio-discuss] [PATCH] sink-input, source-output: add a couple of assertions

2017-10-30 Thread Tanu Kaskinen
On Mon, 2017-10-30 at 17:43 +0530, Arun Raghavan wrote: > On Mon, 30 Oct 2017, at 12:45 AM, Tanu Kaskinen wrote: > > Coverity complained about data->sink being possibly NULL when it's > > dereferenced later. It was difficult for me to figure out whether that > &

Re: [pulseaudio-discuss] [PATCH] pavucontrol: implement single-launch

2017-10-30 Thread Tanu Kaskinen
On Thu, 2017-10-26 at 22:28 +0200, Colin Leroy wrote: > From 2120613fa5bd68ebbdd0e9428357030736fce013 Mon Sep 17 00:00:00 2001 > From: Colin Leroy > Date: Thu, 26 Oct 2017 22:20:36 +0200 > Subject: [PATCH] Implement single-launch with Gtk::Application > > This introduces a new

Re: [pulseaudio-discuss] pulseaudio continue send data to sink after the play status is stopped.

2017-10-30 Thread Tanu Kaskinen
On Thu, 2017-10-26 at 18:46 +0200, dst wrote: > Hello, > I use pulseaudio 6.0 and bluez5.19 on my device, my device act as an > a2dp source. > My device connect to a head unit and play audio, I found in the > hcidump log that after the play back status changed to stopped, the > a2dp streaming will

Re: [pulseaudio-discuss] No rule to make target `libdbus-util.lo', needed by `libdbus-util.la'

2017-10-30 Thread Tanu Kaskinen
On Thu, 2017-10-26 at 14:45 +0530, namit...@codeaurora.org wrote: > Hi all, > > I am trying to make a new module for pulseaudio. I am following > instructions here > > https://www.freedesktop.org/wiki/Software/PulseAudio/Documentation/Developer/Modules/ Those instructions should be removed or

Re: [pulseaudio-discuss] bluetooth headset disconection

2017-10-30 Thread Tanu Kaskinen
On Sat, 2017-10-28 at 14:30 +0900, Shinnosuke Suzuki wrote: > > Your attached log ends at this message: > > > >D: [pulseaudio] module-always-sink.c: Autoloading null-sink as no other > > sinks detected. > > > > Is that the last message that you see, and after that PulseAudio is > > stuck?

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

2017-10-29 Thread Tanu Kaskinen
On Fri, 2017-10-27 at 21:39 +0200, Georg Chini wrote: > On 21.09.2017 14:47, Tanu Kaskinen wrote: > > 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 pi

[pulseaudio-discuss] [PATCH] sink-input, source-output: add a couple of assertions

2017-10-29 Thread Tanu Kaskinen
Coverity complained about data->sink being possibly NULL when it's dereferenced later. It was difficult for me to figure out whether that was a false positive or not. Hopefully the comments make it a bit easier to reason about the code in the future. It might be a good idea to set

Re: [pulseaudio-discuss] [PATCH] client-conf: Add a default value for disable-memfd

2017-10-27 Thread Tanu Kaskinen
On Fri, 2017-10-27 at 09:30 +0530, Arun Raghavan wrote: > This got missed while adding the client option. > --- > src/pulse/client-conf.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/src/pulse/client-conf.c b/src/pulse/client-conf.c > index a3c9486d4..1daaf9111 100644 > ---

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

2017-10-25 Thread Tanu Kaskinen
On Wed, 2017-10-25 at 18:57 +1030, Steven Wawryk wrote: > I've *finally* managed to get PulseAudio running on the test workstation > with extra logging in pa_source_output_push()! > > I've attached a copy of pa_source_output_push() with the extra log > statements to show where they are. Also,

Re: [pulseaudio-discuss] Use two servers at the same time

2017-10-25 Thread Tanu Kaskinen
On Wed, 2017-10-25 at 04:17 +, Vimal Babu wrote: > Dear Sir, > > From your mail what my understanding is that you are trying to route > the audio from a User desktop(server) to your desktop(client). On > the above said concept I have tried to route audio to client pc with > the help of

Re: [pulseaudio-discuss] Use two servers at the same time

2017-10-25 Thread Tanu Kaskinen
On Tue, 2017-10-24 at 15:56 +0200, Alex ARNAUD wrote: > Dear all, > > I'm a low-vision person. I need to process to remote desktop support and > remote training with users. > At this time I redirect the sound from the user computer to my computer > via pax11publish but the remote computer has

Re: [pulseaudio-discuss] How to setup developer environment to develop pulseaudio modules?

2017-10-25 Thread Tanu Kaskinen
On Wed, 2017-10-25 at 10:40 +0530, namit...@codeaurora.org wrote: > On 2017-10-24 18:38, Tanu Kaskinen wrote: > > On Tue, 2017-10-24 at 16:05 +0300, Tanu Kaskinen wrote: > > > On Mon, 2017-10-23 at 13:58 +0530, namit...@codeaurora.org wrote: > > > > How will

Re: [pulseaudio-discuss] [PATCH 2/2] echo-cancel: Expose dereverb in the speex canceller

2017-10-24 Thread Tanu Kaskinen
On Sun, 2017-09-03 at 11:09 +0530, Arun Raghavan wrote: > Enabled by default. > --- > src/modules/echo-cancel/speex.c | 20 > 1 file changed, 16 insertions(+), 4 deletions(-) Both patches look good to me. -- Tanu https://www.patreon.com/tanuk

Re: [pulseaudio-discuss] How to setup developer environment to develop pulseaudio modules?

2017-10-24 Thread Tanu Kaskinen
On Tue, 2017-10-24 at 16:05 +0300, Tanu Kaskinen wrote: > On Mon, 2017-10-23 at 13:58 +0530, namit...@codeaurora.org wrote: > > On 2017-10-20 18:37, Alexander E. Patrakov wrote: > > > 2017-10-17 16:03 GMT+05:00 <namit...@codeaurora.org>: > > > > I using u

Re: [pulseaudio-discuss] How to setup developer environment to develop pulseaudio modules?

2017-10-24 Thread Tanu Kaskinen
On Mon, 2017-10-23 at 13:58 +0530, namit...@codeaurora.org wrote: > On 2017-10-20 18:37, Alexander E. Patrakov wrote: > > 2017-10-17 16:03 GMT+05:00 : > > > I using ubuntu 14.04 and pulseaudio 4.0. I am compiling very simple > > > test > > > module, module-test.c > > >

Re: [pulseaudio-discuss] Couldn't get stream from bluetooth headset

2017-10-24 Thread Tanu Kaskinen
On Mon, 2017-10-23 at 20:28 +0900, Shinnosuke Suzuki wrote: > I set the second parameter of pa_stream_connect_record with NULL. > I could get PA_STREAM READY in the stream callback! > > OK > pa_stream_connect_record(s, NULL, NULL, 0) > > NG > pa_stream_connect_record(s, source, NULL, 0) >

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

2017-10-23 Thread Tanu Kaskinen
On Sat, 2017-10-21 at 22:00 +0200, Georg Chini wrote: > On 03.10.2017 14:58, Tanu Kaskinen wrote: > > > > > > Also, it's questionable why the list-handlers command is implemented > > > > with the messaging API in the first place. It's core functionality, so > &

Re: [pulseaudio-discuss] Couldn't get stream from bluetooth headset

2017-10-22 Thread Tanu Kaskinen
On Sat, 2017-10-21 at 12:11 +0900, Shinnosuke Suzuki wrote: > Sorry for leading you to misunderstand. > > > Doesn't your compiler warn you about passing an argument of wrong type > > to pa_context_errno()? The function expects a pa_context object, but in > > the first case you're passing it a

Re: [pulseaudio-discuss] module-bluez5-device not loaded

2017-10-20 Thread Tanu Kaskinen
On Fri, 2017-10-20 at 16:50 +0200, Sjoerd Venema wrote: > I'm running a system wide PulseAudio daemon, which is working. Now I'd like > to play audio from my phone over bluetooth. > > In system.pa I'm loading module-bluetooth-policy and > module-bluetooth-discover. When I check what's loaded, I

Re: [pulseaudio-discuss] pamixer r.f.e.

2017-10-20 Thread Tanu Kaskinen
On Thu, 2017-10-19 at 11:06 -0400, Jude DaShiell wrote: > a --show-defaults command line parameter would show the current source and > also show the current sink. For whatever reason in the middle of > operation yesterday afternoon pulseaudio lost its sink and only produced > static on

Re: [pulseaudio-discuss] internal speaker silent in Asus eee netbook (patch)

2017-10-20 Thread Tanu Kaskinen
On Wed, 2017-10-18 at 10:35 +0200, Guenter Milde wrote: > On Sun Oct 15 09:50:43 Tanu Kaskinen wrote: > > On Sat, 2017-10-14 at 18:12 +0200, Guenter Milde wrote: > > > My test shows that with "switch=mute", I can toggle the mute-state of > > > speaker a

Re: [pulseaudio-discuss] [PATCH] sink, source: Rework reconfiguration logic to apply to more than rate

2017-10-20 Thread Tanu Kaskinen
On Mon, 2017-10-16 at 14:33 +0530, Arun Raghavan wrote: > This rejigs the update_rate() logic to encompass changes to the sample > spec as a whole, as well as passthrough status. As a result, > sinks/sources provide a reconfigure() method which allows > reconfiguration as required. > > The

Re: [pulseaudio-discuss] [PATCH] sink, source: Rework reconfiguration logic to apply to more than rate

2017-10-15 Thread Tanu Kaskinen
On Sun, 2017-09-03 at 16:58 +0530, Arun Raghavan wrote: > @@ -1447,52 +1449,57 @@ int pa_sink_update_rate(pa_sink *s, uint32_t rate, > bool passthrough) { > } > } > > -if (PA_UNLIKELY(!pa_sample_rate_valid(rate))) > +if (PA_UNLIKELY(!pa_sample_spec_valid(spec))) >

[pulseaudio-discuss] [PATCH] volume: improve documentation

2017-10-15 Thread Tanu Kaskinen
Changes: - Mention that source outputs have volume too. - Don't claim that most distributions have flat volumes enabled. - Volumes use a cubic scale, not logarithmic. - Reword the warning about using the conversion functions on hardware volumes. The old wording gave the incorrect impression

[pulseaudio-discuss] [PATCH] bluetooth: set better priorities for profiles

2017-10-15 Thread Tanu Kaskinen
Since HSP had higher priority than A2DP, the default profile when connecting a new headset was HSP. To me it makes more sense to default to high-quality output. We already have some automatic policies to switch to HSP when it's needed. I also made the A2DP source and HSP/HFP gateway profiles have

Re: [pulseaudio-discuss] internal speaker silent in Asus eee netbook (patch)

2017-10-15 Thread Tanu Kaskinen
On Sat, 2017-10-14 at 18:12 +0200, Guenter Milde wrote: > Dear Tanu, > > On Thu Oct 12 Tanu Kaskinen wrote: > > On Mon, 2017-10-09 at 18:45 +0200, Guenter Milde wrote: > > > On Sat Aug 5 Tanu Kaskinen tanuk at iki.fi wrote: > > > What is the difference between

Re: [pulseaudio-discuss] Couldn't get stream from bluetooth headset

2017-10-15 Thread Tanu Kaskinen
On Sun, 2017-10-15 at 17:02 +0900, Shinnosuke Suzuki wrote: > Dear tanu, > > > There can be only one error at a time, but here you list two errors. In > > what situations these errors happen? > > I got two errors at the same point in the stream callback with a state > PA_STREAM_FAILED. > I got

Re: [pulseaudio-discuss] [PATCH] build-sys: test for cxx-11 after AC_USE_SYSTEM_EXTENSIONS

2017-10-13 Thread Tanu Kaskinen
On Fri, 2017-10-13 at 12:23 -0300, Felipe Sateler wrote: > This avoids the following autoconf warning: > configure.ac:89: warning: AC_COMPILE_IFELSE was called before > AC_USE_SYSTEM_EXTENSIONS > ../../lib/autoconf/specific.m4:368: AC_USE_SYSTEM_EXTENSIONS is expanded > from... >

Re: [pulseaudio-discuss] Bluetooth card not auto selected after pairing in sound settings

2017-10-13 Thread Tanu Kaskinen
On Fri, 2017-10-13 at 14:26 +0530, Sathish Narasimman wrote: > Hi, > > I would like to know if there is way or settings to make Bluetooth > card auto selected as output device after pairing and connected. > > For now, every time I pair. Need to go to sound setting and select > Bluetooth card

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

2017-10-13 Thread Tanu Kaskinen
On Fri, 2017-10-13 at 19:09 +1030, Steven Wawryk wrote: > Today I noticed that there seems to be about 5minutes delay in > module-remap-source on the workstation rather than in module-loopback on > the embedded system. > > With the following CLI script items (selecting 1 of the 12 channels of

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

2017-10-13 Thread Tanu Kaskinen
On Fri, 2017-10-13 at 10:57 +0300, Martin Laakso wrote: > On 11.10.2017 17:39, Tanu Kaskinen wrote: > > I added pulseaudio-discuss back to Cc. > > > > On Tue, 2017-10-10 at 08:28 +0300, Martin Laakso wrote: > > > This works, so apparently only the tunnel module fail

Re: [pulseaudio-discuss] pulseaudio user not found

2017-10-12 Thread Tanu Kaskinen
On Tue, 2017-10-10 at 11:56 -0400, Jude DaShiell wrote: > This is the response I get without the --daemonize parameter on the > pulseaudio command line and the typescript file fails to start with > --daemonize too. > cut here. > Script started on 2017-10-10 11:51:05-0400 > [root@taf ~]# cat

Re: [pulseaudio-discuss] internal speaker silent in Asus eee netbook (patch)

2017-10-12 Thread Tanu Kaskinen
On Mon, 2017-10-09 at 18:45 +0200, Guenter Milde wrote: > Dear Tanu, > > thanks for the reply. Unfortunately, it bounced so please excuse my late > reply. > > On Sat Aug 5 Tanu Kaskinen tanuk at iki.fi wrote: > > On Fri, 2017-08-04 at 14:50 +0200, Guenter Mild

Re: [pulseaudio-discuss] Couldn't get stream from bluetooth headset

2017-10-12 Thread Tanu Kaskinen
On Thu, 2017-10-12 at 21:13 +0900, Shinnosuke Suzuki wrote: > Dear Tanu, > > Thank you for advice. > > I didn't resolve my issue, but I got cause of error in stream callback in > the > PA_STREAM_FAILED state. > pa_context_errno : Access denied > pa_context_errno(pa_stream_get_context) :

Re: [pulseaudio-discuss] Hsp profile available but not working

2017-10-11 Thread Tanu Kaskinen
On Mon, 2017-10-09 at 16:51 +0200, Paweł B wrote: > Hi All. > > I have a problem with hsp profile. > > After connect to Philips WeCall Speaker profile headset_head_unit is > available: > After run ‘mplayer test.wav’ nothing is happens (there is no sound). In > a2dp_sink profile everything

Re: [pulseaudio-discuss] pulseaudio setup issues

2017-10-11 Thread Tanu Kaskinen
On Tue, 2017-10-10 at 12:02 +0530, namit...@codeaurora.org wrote: > > So if you previously used > > > > amixer cset name='SLIMBUS_0_RX Audio Mixer MultiMedia1' '1' > > > > with PulseAudio you have to use > > > > amixer -c0 cset name='SLIMBUS_0_RX Audio Mixer MultiMedia1' '1' > > > >

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

2017-10-11 Thread Tanu Kaskinen
I added pulseaudio-discuss back to Cc. On Tue, 2017-10-10 at 08:28 +0300, Martin Laakso wrote: > On 07.10.2017 20:17, Tanu Kaskinen wrote: > > On Wed, 2017-09-27 at 11:07 +0300, Martin Laakso wrote: > > > Other sources work fine over network, but I tried to record monitor > &

Re: [pulseaudio-discuss] Couldn't get stream from bluetooth headset

2017-10-11 Thread Tanu Kaskinen
On Wed, 2017-10-11 at 16:49 +0900, Shinnosuke Suzuki wrote: > Hi all, > > I'm developing a phone app in OpenWrt with pulseaudio. > > I couldn't get stream from bluetooth headset using asynchronous API. > I got PA_CONTEXT_READY with state callback, so I call >

Re: [pulseaudio-discuss] bluetooth headset disconection

2017-10-11 Thread Tanu Kaskinen
On Tue, 2017-10-10 at 13:20 +0900, Shinnosuke Suzuki wrote: > Dear Tanu, > > Thank you for reply. > > > As a workaround you could also try removing module-always-sink from the > > configuration. Maybe you don't need it. > > I removed module-always-sink from the configuration. Behavior has

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

2017-10-09 Thread Tanu Kaskinen
On Mon, 2017-10-09 at 19:52 +1030, Steven Wawryk wrote: > On 08/10/17 03:30, Tanu Kaskinen wrote: > > On Tue, 2017-09-26 at 19:27 +0930, Steven Wawryk wrote: > > > We've upgraded the I/O board (the platform with the module-loopback) to > > > use PulseAudio 11.1, but

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,

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

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

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

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

[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 --

[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 --

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

2017-10-08 Thread Tanu Kaskinen
. 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 | 9

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

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,

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

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

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.

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

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

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