[pulseaudio-discuss] [RFC PATCH] sink-input: Add history memblockq

2019-06-16 Thread Georg Chini
A new memblockq is added to the sink input code to keep some history of the input data. The queue is kept in sync with the render memblockq. The old input data will be used to prepare the resampler after a reset. ALso, the helper functions pa_convert_to_sink_length() and

Re: [pulseaudio-discuss] Resampler rewinding

2019-06-16 Thread Georg Chini
On 16.06.19 10:39, Tanu Kaskinen wrote: On Sat, 2019-06-15 at 11:31 +0200, Georg Chini wrote: On 15.06.19 10:01, Tanu Kaskinen wrote: On Tue, 2019-06-11 at 22:08 +0200, Georg Chini wrote: Hi Tanu, the first diagram should look like this: DIAGRAM FOR HARDWARE SINK 1 BEFORE STARTING THE MOVE

Re: [pulseaudio-discuss] Resampler rewinding

2019-06-15 Thread Georg Chini
On 15.06.19 10:01, Tanu Kaskinen wrote: On Tue, 2019-06-11 at 22:08 +0200, Georg Chini wrote: Hi Tanu, the first diagram should look like this: DIAGRAM FOR HARDWARE SINK 1 BEFORE STARTING THE MOVE

[pulseaudio-discuss] Resampler rewinding

2019-06-11 Thread Georg Chini
Hi Tanu, the first diagram should look like this: DIAGRAM FOR HARDWARE SINK 1 BEFORE STARTING THE MOVE +-+- | client stream memblockq |

Re: [pulseaudio-discuss] plan/timeline for a release

2019-06-05 Thread Georg Chini
On 04.06.19 19:42, Tanu Kaskinen wrote: On Fri, 2019-05-31 at 16:59 +0300, Kai Vehmanen wrote: Hi all, I've been testing pulse with the new Intel SOF [1] audio drivers (that are going to 5.2 kernel). In my tests, e.g. system suspend/stress tests work much better on latest master of

Re: [pulseaudio-discuss] new module module-plugin-sink

2019-05-20 Thread Georg Chini
On 20.05.19 13:32, Alexander E. Patrakov wrote: пн, 20 мая 2019 г. в 15:35, Georg Chini : On 20.05.19 10:47, Alexander E. Patrakov wrote: пн, 20 мая 2019 г. в 13:17, Georg Chini : Hi Alexander, Tanu, would it make sense to give filters some old data for preconditioning when the filter should

Re: [pulseaudio-discuss] new module module-plugin-sink

2019-05-20 Thread Georg Chini
On 20.05.19 10:47, Alexander E. Patrakov wrote: пн, 20 мая 2019 г. в 13:17, Georg Chini : Hi Alexander, Tanu, would it make sense to give filters some old data for preconditioning when the filter should be rewound? Then the filter could simply be reset and the preconditioning data run through

Re: [pulseaudio-discuss] new module module-plugin-sink

2019-05-20 Thread Georg Chini
Hi Alexander, Tanu, would it make sense to give filters some old data for preconditioning when the filter should be rewound? Then the filter could simply be reset and the preconditioning data run through the filter instead of doing a "real" rewind. The amount of data needed for preconditioning

Re: [pulseaudio-discuss] new module module-plugin-sink

2019-05-13 Thread Georg Chini
On 10.05.19 19:27, Tanu Kaskinen wrote: On Sat, 2019-05-04 at 22:41 +0200, Georg Chini wrote: I don't see the need for copying the channel position and error enums. We can #include the relevant headers. I thought the point was to create a header file that allows development of filters

Re: [pulseaudio-discuss] new module module-plugin-sink

2019-05-05 Thread Georg Chini
On 05.05.19 18:41, Alexander E. Patrakov wrote: вс, 5 мая 2019 г. в 01:41, Georg Chini : On 04.05.19 20:54, Alexander E. Patrakov wrote: сб, 4 мая 2019 г. в 20:25, Georg Chini : On 04.05.19 16:42, Alexander E. Patrakov wrote: сб, 4 мая 2019 г. в 16:17, Georg Chini : Here is the new version

Re: [pulseaudio-discuss] new module module-plugin-sink

2019-05-04 Thread Georg Chini
On 04.05.19 20:54, Alexander E. Patrakov wrote: сб, 4 мая 2019 г. в 20:25, Georg Chini : On 04.05.19 16:42, Alexander E. Patrakov wrote: сб, 4 мая 2019 г. в 16:17, Georg Chini : Here is the new version of the header file, based on your feedback. The main changes are: - The create_filter

Re: [pulseaudio-discuss] new module module-plugin-sink

2019-05-04 Thread Georg Chini
On 04.05.19 16:42, Alexander E. Patrakov wrote: сб, 4 мая 2019 г. в 16:17, Georg Chini : Here is the new version of the header file, based on your feedback. The main changes are: - The create_filter() function now receives the channel maps for input and output. - The create_filter() function

Re: [pulseaudio-discuss] new module module-plugin-sink

2019-05-04 Thread Georg Chini
Here is the new version of the header file, based on your feedback. The main changes are: - The create_filter() function now receives the channel maps for input and output. - The create_filter() function receives a kill_filter() function and a module pointer    which makes it possible for the

Re: [pulseaudio-discuss] new module module-plugin-sink

2019-05-04 Thread Georg Chini
On 04.05.19 01:34, Alexander E. Patrakov wrote: пт, 3 мая 2019 г. в 23:04, Georg Chini : On 03.05.19 16:32, Alexander E. Patrakov wrote: пт, 3 мая 2019 г. в 11:57, Georg Chini : The channel layout of input/output and the playback device is known to module-plugin-sink, so if a filter needs

Re: [pulseaudio-discuss] new module module-plugin-sink

2019-05-03 Thread Georg Chini
On 03.05.19 16:32, Alexander E. Patrakov wrote: пт, 3 мая 2019 г. в 11:57, Georg Chini : The channel layout of input/output and the playback device is known to module-plugin-sink, so if a filter needs it, it can be passed as parameter. No need to have it in the interface. (I have also received

Re: [pulseaudio-discuss] new module module-plugin-sink

2019-05-03 Thread Georg Chini
On 03.05.19 08:57, Georg Chini wrote: On 03.05.19 06:56, Alexander E. Patrakov wrote: пт, 3 мая 2019 г. в 09:31, Georg Chini : On 03.05.19 02:22, Alexander E. Patrakov wrote: чт, 2 мая 2019 г. в 23:45, Georg Chini : Hi, I created a new module-plugin-sink and a small amplifier demo plugin

Re: [pulseaudio-discuss] new module module-plugin-sink

2019-05-03 Thread Georg Chini
On 03.05.19 06:56, Alexander E. Patrakov wrote: пт, 3 мая 2019 г. в 09:31, Georg Chini : On 03.05.19 02:22, Alexander E. Patrakov wrote: чт, 2 мая 2019 г. в 23:45, Georg Chini : Hi, I created a new module-plugin-sink and a small amplifier demo plugin based on the attached header file. I did

Re: [pulseaudio-discuss] new module module-plugin-sink

2019-05-02 Thread Georg Chini
On 03.05.19 02:22, Alexander E. Patrakov wrote: чт, 2 мая 2019 г. в 23:45, Georg Chini : Hi, I created a new module-plugin-sink and a small amplifier demo plugin based on the attached header file. I did not (yet) drop max_latency, disable_rewind and rewind_filter() because I am still waiting

[pulseaudio-discuss] new module module-plugin-sink

2019-05-02 Thread Georg Chini
Hi, I created a new module-plugin-sink and a small amplifier demo plugin based on the attached header file. I did not (yet) drop max_latency, disable_rewind and rewind_filter() because I am still waiting for more feedback on the specification. I made it however more clear (using Alexander's

Re: [pulseaudio-discuss] [PATCH v9 0/8] Bluetooth A2DP codecs

2019-05-01 Thread Georg Chini
On 30.04.19 14:23, Luiz Augusto von Dentz wrote: Ive also got this crash: E: [lt-pulseaudio] core-util.c: The per-process limit on the number of open file descriptors has been reached. E: [lt-pulseaudio] module-loopback.c: pa_asyncmsgq_new() failed. I: [lt-pulseaudio] source-output.c: Freeing

Re: [pulseaudio-discuss] [PATCH v9 0/8] Bluetooth A2DP codecs

2019-05-01 Thread Georg Chini
On 01.05.19 11:09, Pali Rohár wrote: On Tuesday 30 April 2019 12:42:28 Luiz Augusto von Dentz wrote: 1. At least Android seems to prefer aptX-HD but that doesn't seems to produce any audio, in fact it crashed a few times so either have to find out why aptX-HD is not working or don't include it.

Re: [pulseaudio-discuss] R: New equalizer module (module-eqpro-sink), some questions

2019-05-01 Thread Georg Chini
On 30.04.19 23:37, Alexander E. Patrakov wrote: вт, 30 апр. 2019 г. в 23:46, Georg Chini : On 30.04.19 19:23, Alexander E. Patrakov wrote: Please don't treat the FIR for module-virtual-surround-sink as a set of reconfigurable parameters. At least for now. Just hard-code the contents of http

Re: [pulseaudio-discuss] configure a soundcard?

2019-04-30 Thread Georg Chini
On 27.04.19 12:26, Tanu Kaskinen wrote: On Fri, 2019-04-26 at 07:37 -0500, Matt Zagrabelny wrote: On Fri, Apr 26, 2019 at 4:28 AM Tanu Kaskinen wrote: In /usr/share/pulseaudio/alsa-mixer/paths/analog-output- headphones.conf, change these lines: [Jack Front Headphone] required-any = any to

Re: [pulseaudio-discuss] R: New equalizer module (module-eqpro-sink), some questions

2019-04-30 Thread Georg Chini
On 30.04.19 20:46, Georg Chini wrote: On 30.04.19 19:23, Alexander E. Patrakov wrote:   /* Callback to process a chunk of data by the filter. May be NULL */   void (*process_chunk)(float *src, float *dst, unsigned count, void *filter_handle);   /* Callback to retrieve

Re: [pulseaudio-discuss] R: New equalizer module (module-eqpro-sink), some questions

2019-04-30 Thread Georg Chini
On 30.04.19 19:23, Alexander E. Patrakov wrote: вт, 30 апр. 2019 г. в 16:31, Georg Chini : uint64_t min_latency; /* Minimum latency allowed for the sink, 0 if unused */ uint64_t max_latency; /* Maximum latency allowed for the sink, 0 if unused

Re: [pulseaudio-discuss] R: New equalizer module (module-eqpro-sink), some questions

2019-04-30 Thread Georg Chini
On 27.04.19 17:14, Georg Chini wrote: On 27.04.19 12:55, Georg Chini wrote: On 27.04.19 12:04, Tanu Kaskinen wrote: On Fri, 2019-04-26 at 11:40 +0200, Georg Chini wrote: On 26.04.19 10:56, Tanu Kaskinen wrote: On Tue, 2019-04-23 at 21:20 +0200, Georg Chini wrote: The current scheme

Re: [pulseaudio-discuss] R: New equalizer module (module-eqpro-sink), some questions

2019-04-27 Thread Georg Chini
On 27.04.19 12:55, Georg Chini wrote: On 27.04.19 12:04, Tanu Kaskinen wrote: On Fri, 2019-04-26 at 11:40 +0200, Georg Chini wrote: On 26.04.19 10:56, Tanu Kaskinen wrote: On Tue, 2019-04-23 at 21:20 +0200, Georg Chini wrote: The current scheme for updating parameters I have in mind should

Re: [pulseaudio-discuss] R: New equalizer module (module-eqpro-sink), some questions

2019-04-27 Thread Georg Chini
On 27.04.19 12:04, Tanu Kaskinen wrote: On Fri, 2019-04-26 at 11:40 +0200, Georg Chini wrote: On 26.04.19 10:56, Tanu Kaskinen wrote: On Tue, 2019-04-23 at 21:20 +0200, Georg Chini wrote: The current scheme for updating parameters I have in mind should work for any of the existing filters

Re: [pulseaudio-discuss] R: New equalizer module (module-eqpro-sink), some questions

2019-04-27 Thread Georg Chini
On 26.04.19 11:40, Georg Chini wrote: On 26.04.19 10:56, Tanu Kaskinen wrote: On Tue, 2019-04-23 at 21:20 +0200, Georg Chini wrote: The current scheme for updating parameters I have in mind should work for any of the existing filters and relies on passing around parameter structures

Re: [pulseaudio-discuss] R: New equalizer module (module-eqpro-sink), some questions

2019-04-26 Thread Georg Chini
On 26.04.19 10:56, Tanu Kaskinen wrote: On Tue, 2019-04-23 at 21:20 +0200, Georg Chini wrote: The current scheme for updating parameters I have in mind should work for any of the existing filters and relies on passing around parameter structures: /* The following functions can

Re: [pulseaudio-discuss] R: New equalizer module (module-eqpro-sink), some questions

2019-04-22 Thread Georg Chini
On 22.04.19 09:34, Tanu Kaskinen wrote: On Sat, 2019-04-20 at 11:38 +0200, Georg Chini wrote: PA uses malloc() in the IO-thread, so are we doing things wrong? I think using malloc() when a parameter changes is not interfering with real-time operation because the filter must be reset after

Re: [pulseaudio-discuss] R: New equalizer module (module-eqpro-sink), some questions

2019-04-20 Thread Georg Chini
On 20.04.19 12:14, Alexander E. Patrakov wrote: [forgot to CC the list - sorry for any duplicates] сб, 20 апр. 2019 г. в 14:39, Georg Chini : I think using malloc() when a parameter changes is not interfering with real-time operation because the filter must be reset after a parameter change

Re: [pulseaudio-discuss] R: New equalizer module (module-eqpro-sink), some questions

2019-04-20 Thread Georg Chini
On 20.04.19 12:14, Alexander E. Patrakov wrote: [forgot to CC the list - sorry for any duplicates] сб, 20 апр. 2019 г. в 14:39, Georg Chini : I think using malloc() when a parameter changes is not interfering with real-time operation because the filter must be reset after a parameter change

Re: [pulseaudio-discuss] R: New equalizer module (module-eqpro-sink), some questions

2019-04-20 Thread Georg Chini
On 20.04.19 11:06, Tanu Kaskinen wrote: On Fri, 2019-04-19 at 17:52 +0200, Georg Chini wrote: On 19.04.19 16:56, Tanu Kaskinen wrote: On Fri, 2019-04-19 at 12:03 +0200, Georg Chini wrote: On 19.04.19 11:13, Tanu Kaskinen wrote: On Tue, 2019-04-16 at 21:40 +0200, Georg Chini wrote

Re: [pulseaudio-discuss] R: New equalizer module (module-eqpro-sink), some questions

2019-04-19 Thread Georg Chini
On 20.04.19 01:02, Alexander E. Patrakov wrote: сб, 20 апр. 2019 г. в 00:15, Georg Chini : On 19.04.19 18:23, Alexander E. Patrakov wrote: пт, 19 апр. 2019 г. в 14:13, Tanu Kaskinen : If the plugin gets the number of bands during the initialization, it can create the appropriate number of non

Re: [pulseaudio-discuss] R: New equalizer module (module-eqpro-sink), some questions

2019-04-19 Thread Georg Chini
On 19.04.19 18:23, Alexander E. Patrakov wrote: пт, 19 апр. 2019 г. в 14:13, Tanu Kaskinen : If the plugin gets the number of bands during the initialization, it can create the appropriate number of non-array control ports. Interleaved audio ports aren't needed either, because PulseAudio can do

Re: [pulseaudio-discuss] R: New equalizer module (module-eqpro-sink), some questions

2019-04-19 Thread Georg Chini
On 19.04.19 16:56, Tanu Kaskinen wrote: On Fri, 2019-04-19 at 12:03 +0200, Georg Chini wrote: On 19.04.19 11:13, Tanu Kaskinen wrote: On Tue, 2019-04-16 at 21:40 +0200, Georg Chini wrote: On 16.04.19 19:19, Tanu Kaskinen wrote: On Thu, 2019-04-11 at 20:42 +0200, Georg Chini wrote

Re: [pulseaudio-discuss] R: New equalizer module (module-eqpro-sink), some questions

2019-04-19 Thread Georg Chini
On 19.04.19 11:13, Tanu Kaskinen wrote: On Tue, 2019-04-16 at 21:40 +0200, Georg Chini wrote: On 16.04.19 19:19, Tanu Kaskinen wrote: On Thu, 2019-04-11 at 20:42 +0200, Georg Chini wrote: On 11.04.19 19:36, Tanu Kaskinen wrote: If you want a better plugin standard, are you aware of LV2

Re: [pulseaudio-discuss] R: New equalizer module (module-eqpro-sink), some questions

2019-04-16 Thread Georg Chini
On 16.04.19 21:40, Georg Chini wrote: On 16.04.19 19:19, Tanu Kaskinen wrote: On Thu, 2019-04-11 at 20:42 +0200, Georg Chini wrote: On 11.04.19 19:36, Tanu Kaskinen wrote: On Thu, 2019-04-11 at 15:16 +0200, Georg Chini wrote: On 08.04.19 09:27, Georg Chini wrote: On 05.04.19 13:29, Tanu

Re: [pulseaudio-discuss] R: New equalizer module (module-eqpro-sink), some questions

2019-04-16 Thread Georg Chini
On 16.04.19 19:19, Tanu Kaskinen wrote: On Thu, 2019-04-11 at 20:42 +0200, Georg Chini wrote: On 11.04.19 19:36, Tanu Kaskinen wrote: On Thu, 2019-04-11 at 15:16 +0200, Georg Chini wrote: On 08.04.19 09:27, Georg Chini wrote: On 05.04.19 13:29, Tanu Kaskinen wrote: On Tue, 2019-04-02 at 20

Re: [pulseaudio-discuss] R: New equalizer module (module-eqpro-sink), some questions

2019-04-11 Thread Georg Chini
On 11.04.19 19:36, Tanu Kaskinen wrote: On Thu, 2019-04-11 at 15:16 +0200, Georg Chini wrote: On 08.04.19 09:27, Georg Chini wrote: On 05.04.19 13:29, Tanu Kaskinen wrote: On Tue, 2019-04-02 at 20:28 +0200, Georg Chini wrote: On 06.11.18 22:14, Andrea A wrote: Hi Andrea, maybe

[pulseaudio-discuss] Fwd: Re: R: New equalizer module (module-eqpro-sink), some questions

2019-04-11 Thread Georg Chini
Somehow the mail did not go to the list. On 08.04.19 09:27, Georg Chini wrote: On 05.04.19 13:29, Tanu Kaskinen wrote: On Tue, 2019-04-02 at 20:28 +0200, Georg Chini wrote: On 06.11.18 22:14, Andrea A wrote: Thanks a lot for the reply If the preset files are expected to be shared between

Re: [pulseaudio-discuss] R: New equalizer module (module-eqpro-sink), some questions

2019-04-08 Thread Georg Chini
On 05.04.19 13:29, Tanu Kaskinen wrote: On Tue, 2019-04-02 at 20:28 +0200, Georg Chini wrote: On 06.11.18 22:14, Andrea A wrote: Thanks a lot for the reply If the preset files are expected to be shared between users, then the database.h stuff isn't good, because different users can have

Re: [pulseaudio-discuss] R: New equalizer module (module-eqpro-sink), some questions

2019-04-02 Thread Georg Chini
On 06.11.18 22:14, Andrea A wrote: Thanks a lot for the reply >If the preset files are expected to be shared between users, then the database.h stuff isn't good, because different users can have their pulseaudio configured with different database formats. I like the "ini- style" configuration

Re: [pulseaudio-discuss] HSP and HFP profiles for hands-free telephony

2019-03-22 Thread Georg Chini
On 22.03.19 10:59, Mohammed Sha wrote: Hi Georg, Thanks for the quick response. You should consider using ofono to connect your phone to the PC. It has all the telephony functions you need and it works well together with PA. See here for a short introduction:

Re: [pulseaudio-discuss] HSP and HFP profiles for hands-free telephony

2019-03-22 Thread Georg Chini
On 22.03.19 05:33, Mohammed Sha wrote: Hi All, I am attempting to implement hands-free telephony on my board, I successfully connected my android phone to the board via bluetooth module in phone and media audio sharing mode. You should consider using ofono to connect your phone to the

Re: [pulseaudio-discuss] Dell 5289 - Audio combo jack not recognized

2019-03-08 Thread Georg Chini
On 07.03.19 22:55, Jeroen Verhoeckx wrote: Hello PulseAudio developers! I have the following problem and I hope that you can help me: The problem: The audio combo jack on my laptop (Dell 5289) is not recognized by Fedora 29. When I connect my headphones to the audio combo jack the headphones

Re: [pulseaudio-discuss] How to disable switch on HDMI audio output ?

2019-03-08 Thread Georg Chini
On 07.03.19 12:31, Tomaž Šolc wrote: Hi On 1. 03. 19 12:15, Alex ARNAUD wrote: As stated in the title, I'm looking for a way to disable switch to HDMI audio output. I think there's currently no way to blacklist devices in the module-switch-on-port-available. If you never want to use HDMI

Re: [pulseaudio-discuss] pacmd shows wrong sample spec for USB mic? (high-pitched, sped-up input)

2019-03-01 Thread Georg Chini
Hi Ryan, On 01.03.19 18:03, Ryan Lue wrote: I’ve got a USB webcam mic that’s not playing well with PulseAudio: recordings are high-pitched and sped up (like an Alvin and the Chipmunks album). If I manually set PulseAudio’s default sample rate to 16000Hz (via `/etc/pulse/daemon.conf`), then it

Re: [pulseaudio-discuss] 100% volume limit bogus

2019-02-07 Thread Georg Chini
On 08.02.19 01:21, liebre...@grossmann-venter.com wrote: I found an interesting reason why this 100% Volume policy in pavucontrol is actually detrimental. The sound is very low with the pavucontrol 100% and my keyboard buttons cannot go past that as that is how pavu controls it. Its fair,

Re: [pulseaudio-discuss] Fallback hard enabled in pulseaudio mixer

2019-02-07 Thread Georg Chini
On 08.02.19 01:07, liebre...@grossmann-venter.com wrote: Further to my previous mail about trouble with Pulseaudio: I installed pavucontrol-qt pavucontrol-qt has the fallback button working clearly as shown in the video below. while pavucontrol has it cemented and bricked for all devices on as

Re: [pulseaudio-discuss] Fallback hard enabled in pulseaudio mixer

2019-02-04 Thread Georg Chini
On 04.02.19 00:42, liebre...@grossmann-venter.com wrote: I have the situation here that as soon as clementine finishes a song pulseaudio switches from my speakers to another output device. In the mixer for pulseaudio it indicates the other device as a fallback device for output. What

Re: [pulseaudio-discuss] Questions regarding messaging API

2019-01-31 Thread Georg Chini
On 31.01.19 19:33, Tanu Kaskinen wrote: On Mon, 2019-01-28 at 18:43 +0100, Georg Chini wrote: On 28.01.19 18:37, Georg Chini wrote: On 28.01.19 18:05, Tanu Kaskinen wrote: On Mon, 2019-01-28 at 17:50 +0100, Georg Chini wrote: 2) For read_string() and read_raw() it is difficult to retain

Re: [pulseaudio-discuss] Questions regarding messaging API

2019-01-28 Thread Georg Chini
On 28.01.19 18:37, Georg Chini wrote: On 28.01.19 18:05, Tanu Kaskinen wrote: On Mon, 2019-01-28 at 17:50 +0100, Georg Chini wrote: 2) For read_string() and read_raw() it is difficult to retain a default value. The string returned by the functions is a char, but it must not be freed because

Re: [pulseaudio-discuss] Questions regarding messaging API

2019-01-28 Thread Georg Chini
On 28.01.19 18:05, Tanu Kaskinen wrote: On Mon, 2019-01-28 at 17:50 +0100, Georg Chini wrote: 2) For read_string() and read_raw() it is difficult to retain a default value. The string returned by the functions is a char, but it must not be freed because it is part of the larger parameter string

Re: [pulseaudio-discuss] [PATCH v5 0/7] New API for Bluetooth A2DP codecs

2019-01-28 Thread Georg Chini
card would be useful. If the "set codec" operation is separate from "set profile" operation, then you no doubt will ask how to implement the client API for this new operation, and I don't have a very good answer. Georg Chini has been working on a new messaging API, which would be a

Re: [pulseaudio-discuss] Questions regarding messaging API

2019-01-28 Thread Georg Chini
On 28.01.19 16:48, Tanu Kaskinen wrote: On Sat, 2019-01-26 at 23:15 +0100, Georg Chini wrote: Hi Tanu, as already said in a previous mail, I am working again on the messaging API. I hope you remember enough of your review that you can answer a couple of questions: 1) I seem to remember

Re: [pulseaudio-discuss] [PATCH v5 0/7] New API for Bluetooth A2DP codecs

2019-01-25 Thread Georg Chini
ion, and I don't have a very good answer. Georg Chini has been working on a new messaging API, which would be a good fit for this, but that's stalled (I don't remember if it's waiting for review or a new version of the patches). It has been waiting for a new version. Meanwhile I got around to work on

Re: [pulseaudio-discuss] [PATCH v5 1/7] switch-on-port-available: Fix null pointer dereference

2019-01-23 Thread Georg Chini
On 19.01.19 18:11, Pali Rohár wrote: Sometimes on pulseaudio startup card->active_profile is NULL. --- src/modules/module-switch-on-port-available.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/module-switch-on-port-available.c

Re: [pulseaudio-discuss] [PATCH 3/4] move streams to new appeared sinks if they prefer these sinks

2019-01-07 Thread Georg Chini
On 07.01.19 18:07, Tanu Kaskinen wrote: On Wed, 2019-01-02 at 08:25 -0500, Joe wrote: On 1/2/19 7:55 AM, Hui Wang wrote: On 2019/1/1 上午2:10, Tanu Kaskinen wrote: On Mon, 2018-12-31 at 20:01 +0200, Tanu Kaskinen wrote: On Mon, 2018-11-05 at 09:47 +0800, Hui Wang wrote: diff --git

Re: [pulseaudio-discuss] module-pipe-sink with existing fifo

2018-12-08 Thread Georg Chini
On 08.12.2018 10:41, Malte Deiseroth wrote: Hey, would it be possible to have an option for 'module-pipe-sink', where it uses an existing 'fifo' and doesn't create one itself? Thinking about it, one wouldn't even need an option. It could just check if the 'fifo' already exists, and if so use

Re: [pulseaudio-discuss] Audio APP (sink-input) bind to the sink with only unplugged hdmi-audio ports on it

2018-10-02 Thread Georg Chini
On 02.10.2018 11:49, Tanu Kaskinen wrote: On Mon, 2018-10-01 at 10:18 +0800, Hui Wang wrote: On 2018年09月30日 18:30, Tanu Kaskinen wrote: On Sun, 2018-09-30 at 15:03 +0800, Hui Wang wrote: This issue is also reported to: https://gitlab.freedesktop.org/pulseaudio/pulseaudio/issues/579 Recently

Re: [pulseaudio-discuss] [PATCH 8/8] message-params: Add read functions for arrays

2018-08-15 Thread Georg Chini
On 11.08.2018 11:37, Tanu Kaskinen wrote: On Mon, 2018-04-09 at 19:35 +0200, Georg Chini wrote: --- doc/messaging_api.txt | 5 ++ src/map-file | 4 + src/pulse/message-params.c | 202 + src/pulse/message-params.h | 12

Re: [pulseaudio-discuss] [PATCH] bluetooth: Wideband speech implementaion

2018-08-15 Thread Georg Chini
On 15.08.2018 09:24, Pali Rohár wrote: On Wednesday 15 August 2018 09:24:04 Sathish Narasimman wrote: Hi Pali, On Wed, Aug 15, 2018 at 1:31 AM, Pali Rohár wrote: On Tuesday 14 August 2018 22:49:27 Luiz Augusto von Dentz wrote: Hi Pali, On Tue, Aug 14, 2018 at 10:28 PM Pali Rohár wrote:

Re: [pulseaudio-discuss] [PATCH 6/8] message-params: Allow parameter strings to contain escaped curly braces

2018-08-01 Thread Georg Chini
On 01.08.2018 13:13, Tanu Kaskinen wrote: On Mon, 2018-07-30 at 13:23 +0200, Georg Chini wrote: On 30.07.2018 11:18, Tanu Kaskinen wrote: On Sun, 2018-07-29 at 22:36 +0200, Georg Chini wrote: On 29.07.2018 21:47, Tanu Kaskinen wrote: On Fri, 2018-07-27 at 10:51 +0200, Georg Chini wrote

Re: [pulseaudio-discuss] Pulseaudio latency

2018-07-31 Thread Georg Chini
On 31.07.2018 10:22, Harish Gaddameedi wrote: On Tue, Jul 31, 2018 at 12:42 PM Harish Gaddameedi > wrote: On Tue, Jul 31, 2018 at 12:11 PM Harish Gaddameedi mailto:harish.gaddame...@smartron.com>> wrote: /Please do not top-post.

Re: [pulseaudio-discuss] Pulseaudio latency

2018-07-31 Thread Georg Chini
On 31.07.2018 07:10, Harish Gaddameedi wrote: Hi Georg, As i told module-loopback is giving overall latency around 300ms from the time when i started the sequence, and*latency of module-loopback doesn't grow at any point of time*. On saturday and sunday, we have kept a continuous streaming

Re: [pulseaudio-discuss] [PATCH 6/8] message-params: Allow parameter strings to contain escaped curly braces

2018-07-30 Thread Georg Chini
On 30.07.2018 11:18, Tanu Kaskinen wrote: On Sun, 2018-07-29 at 22:36 +0200, Georg Chini wrote: On 29.07.2018 21:47, Tanu Kaskinen wrote: On Fri, 2018-07-27 at 10:51 +0200, Georg Chini wrote: On 27.07.2018 10:08, Tanu Kaskinen wrote: On Thu, 2018-07-26 at 18:02 +0200, Georg Chini wrote

Re: [pulseaudio-discuss] [PATCH 6/8] message-params: Allow parameter strings to contain escaped curly braces

2018-07-29 Thread Georg Chini
On 29.07.2018 21:47, Tanu Kaskinen wrote: On Fri, 2018-07-27 at 10:51 +0200, Georg Chini wrote: On 27.07.2018 10:08, Tanu Kaskinen wrote: On Thu, 2018-07-26 at 18:02 +0200, Georg Chini wrote: On 26.07.2018 12:37, Tanu Kaskinen wrote: On Sun, 2018-07-22 at 21:11 +0200, Georg Chini wrote

Re: [pulseaudio-discuss] Pulseaudio latency

2018-07-29 Thread Georg Chini
On 29.07.2018 18:03, Georg Chini wrote: On 29.07.2018 12:44, Harish Gaddameedi wrote: Hi Georg, I was working on simple Openwrt Platform, and Source device is Android phone Bluetooth with Youtube app 24 hrs live streaming video and alsa device is speaker, which is hardwired The 12 hrs

Re: [pulseaudio-discuss] Pulseaudio latency

2018-07-29 Thread Georg Chini
On 29.07.2018 12:44, Harish Gaddameedi wrote: Hi Georg, I was working on simple Openwrt Platform, and Source device is Android phone Bluetooth with Youtube app 24 hrs live streaming video and alsa device is speaker, which is hardwired The 12 hrs testing which i did on pulseaudio-11.1 are

Re: [pulseaudio-discuss] Pulseaudio latency

2018-07-29 Thread Georg Chini
. On Fri 27 Jul, 2018, 11:20 AM Georg Chini, <mailto:ge...@chini.tk>> wrote: On 27.07.2018 07:10, Harish Gaddameedi wrote: I'm working on an Application using pulseaudio package using pulseaudio-8.0, made lot of modifications in the pulseaudio to reduce the fluctuation of so

Re: [pulseaudio-discuss] [PATCH 6/8] message-params: Allow parameter strings to contain escaped curly braces

2018-07-27 Thread Georg Chini
On 27.07.2018 10:08, Tanu Kaskinen wrote: On Thu, 2018-07-26 at 18:02 +0200, Georg Chini wrote: On 26.07.2018 12:37, Tanu Kaskinen wrote: On Sun, 2018-07-22 at 21:11 +0200, Georg Chini wrote: On 22.07.2018 17:48, Tanu Kaskinen wrote: On Sun, 2018-07-22 at 16:02 +0200, Georg Chini wrote

Re: [pulseaudio-discuss] Pulseaudio latency

2018-07-26 Thread Georg Chini
On 27.07.2018 07:10, Harish Gaddameedi wrote: I'm working on an Application using pulseaudio package using pulseaudio-8.0, made lot of modifications in the pulseaudio to reduce the fluctuation of source card and to reduce the initial latency, I'm successful in doing this process. On 12 hrs

Re: [pulseaudio-discuss] [PATCH 6/8] message-params: Allow parameter strings to contain escaped curly braces

2018-07-26 Thread Georg Chini
On 26.07.2018 12:37, Tanu Kaskinen wrote: On Sun, 2018-07-22 at 21:11 +0200, Georg Chini wrote: On 22.07.2018 17:48, Tanu Kaskinen wrote: On Sun, 2018-07-22 at 16:02 +0200, Georg Chini wrote: On 21.07.2018 20:17, Tanu Kaskinen wrote: On Mon, 2018-04-09 at 19:35 +0200, Georg Chini wrote

Re: [pulseaudio-discuss] [PATCH 6/8] message-params: Allow parameter strings to contain escaped curly braces

2018-07-22 Thread Georg Chini
On 22.07.2018 17:48, Tanu Kaskinen wrote: On Sun, 2018-07-22 at 16:02 +0200, Georg Chini wrote: On 21.07.2018 20:17, Tanu Kaskinen wrote: On Mon, 2018-04-09 at 19:35 +0200, Georg Chini wrote: The patch adds the possibility to escape curly braces within parameter strings and introduces several

Re: [pulseaudio-discuss] [PATCH 6/8] message-params: Allow parameter strings to contain escaped curly braces

2018-07-22 Thread Georg Chini
On 21.07.2018 20:17, Tanu Kaskinen wrote: On Mon, 2018-04-09 at 19:35 +0200, Georg Chini wrote: The patch adds the possibility to escape curly braces within parameter strings and introduces several new functions that can be used for writing parameters. For writing, the structure

Re: [pulseaudio-discuss] Planning 12.1

2018-07-10 Thread Georg Chini
On 10.07.2018 14:03, Tanu Kaskinen wrote: Hi all, A few things broke in PulseAudio 12.0: switching bluetooth profile from off to a2dp started crashing, module-ladspa-sink didn't find any plugins any more and module-pipe-sink became unusable in the system mode due to stricter file permissions.

Re: [pulseaudio-discuss] [PATCH] pipe-sink, pipe-source: fix file permissions

2018-07-09 Thread Georg Chini
On 09.07.2018 14:40, Tanu Kaskinen wrote: On Sat, 2018-07-07 at 11:48 +0200, Georg Chini wrote: On 04.07.2018 12:40, Tanu Kaskinen wrote: We recently changed the umask of the daemon from 022 to 077, which broke module-pipe-sink in the system mode, because nobody was allowed to read from

Re: [pulseaudio-discuss] Bluetooth connection disconnects every few minutes

2018-07-08 Thread Georg Chini
On 08.07.2018 15:21, Julian Sikorski wrote: W dniu 02.07.2018 o 20:09, Julian Sikorski pisze: W dniu 02.07.2018 o 18:04, Georg Chini pisze: On 02.07.2018 17:58, Julian Sikorski wrote: W dniu 29.06.2018 o 21:47, Julian Sikorski pisze: Hi list, I have noticed that the bluetooth connection

Re: [pulseaudio-discuss] bluetooth: HFP | WBS | pollfd->revent POLLOUT not hit

2018-07-07 Thread Georg Chini
On 07.07.2018 12:07, Georg Chini wrote: On 06.07.2018 08:43, Sathish Narasimman wrote: Hi Luiz, Yes, I am doing the polling. I an not changing that part of the code. In which it is default in which NBS also uses. Thanks, Sathish N The current code does not poll for POLLOUT in all

Re: [pulseaudio-discuss] bluetooth: HFP | WBS | pollfd->revent POLLOUT not hit

2018-07-07 Thread Georg Chini
On 06.07.2018 08:43, Sathish Narasimman wrote: Hi Luiz, Yes, I am doing the polling. I an not changing that part of the code. In which it is default in which NBS also uses. Thanks, Sathish N The current code does not poll for POLLOUT in all situations, see comment in the code. You should

Re: [pulseaudio-discuss] [PATCH] pipe-sink, pipe-source: fix file permissions

2018-07-07 Thread Georg Chini
On 04.07.2018 12:40, Tanu Kaskinen wrote: We recently changed the umask of the daemon from 022 to 077, which broke module-pipe-sink in the system mode, because nobody was allowed to read from the pipe. module-pipe-source in the system mode was probably always broken, because the old umask of

Re: [pulseaudio-discuss] [PATCH] ladspa-sink: fix search path

2018-07-07 Thread Georg Chini
On 04.07.2018 13:25, Tanu Kaskinen wrote: Having a single level macro for stringizing LADSPA_PATH doesn't work, because the '#' preprocessor operator doesn't expand any macros in its parameter. As a result, we used the string "LADSPA_PATH" as the search path, and obviously no plugins were ever

Re: [pulseaudio-discuss] Bluetooth connection disconnects every few minutes

2018-07-02 Thread Georg Chini
On 02.07.2018 17:58, Julian Sikorski wrote: W dniu 29.06.2018 o 21:47, Julian Sikorski pisze: Hi list, I have noticed that the bluetooth connection between my laptop (Intel 7260) and my headphones (Sennheiser Momentum Wirelless) is very unreliable. While under Windows 10 devices stay connected

Re: [pulseaudio-discuss] [PATCH 0/3] Various state related cleanups

2018-06-30 Thread Georg Chini
On 26.06.2018 15:25, Tanu Kaskinen wrote: The first patch is a reaction to a bug report[1] that pointed out a weird thing in the sink input drained state handling. I came to the conclusion that we can just remove the entire drained state. After removing the drained state,

Re: [pulseaudio-discuss] [PATCH] switch-on-port-available: ignore bluetooth cards

2018-06-30 Thread Georg Chini
On 29.06.2018 13:33, Tanu Kaskinen wrote: When the user manually switches the profile of a bluetooth headset from "off" to "a2dp_sink", the port availability changes from "unknown" to "yes", which triggered a recursive profile change in module-switch-on-port-available. Such recursivity isn't

Re: [pulseaudio-discuss] [ANNOUNCE] PulseAudio 12.0

2018-06-27 Thread Georg Chini
On 27.06.2018 09:26, Tanu Kaskinen wrote: On Thu, 2018-06-21 at 12:52 -0400, Felipe Sateler wrote: On Wed, Jun 20, 2018 at 5:25 PM Tanu Kaskinen wrote: May I have your attention, please? PulseAudio 12.0 has entered our world, and it claims to be superior to its predecessors at least in the

Re: [pulseaudio-discuss] PulseAudio Crash GDB log

2018-06-12 Thread Georg Chini
On 12.06.2018 19:31, Sathish Narasimman wrote: Hi, May I please, know what is wrong in the log Program received signal SIGSEGV, Segmentation fault. 0x71469664 in loopback_process_msg_cb (o=0x87428, code=1, userdata=0x0,     offset=0, chunk=0x0) at modules/module-loopback.c:1161 1161           

Re: [pulseaudio-discuss] Bluetooth - HSP / HFP - source based timing & hard-coded MTU causes SCO packets to be badly delayed

2018-05-20 Thread Georg Chini
On 19.05.2018 22:34, Attila Tőkés wrote: Hi, Apparently, the source based timing logic (when using the headset_head_unit profile there is a sink and a source) from: https://github.com/pulseaudio/pulseaudio/blob/master/src/modules/bluetooth/module-bluez5-device.c#L1581 combined with the

Re: [pulseaudio-discuss] [PATCH] alsa-util: Use time stamp config only for alsa versions >= 1.1.0

2018-05-16 Thread Georg Chini
On 15.05.2018 21:12, Pierre-Louis Bossart wrote: On 5/15/18 8:12 AM, Arun Raghavan wrote: On Tue, 15 May 2018, at 11:30 AM, Georg Chini wrote: The commit "alsa-util: Set ALSA report_delay flag in pa_alsa_safe_delay()" broke the build on ALSA versions below 1.1.0 because the

Re: [pulseaudio-discuss] [PATCH] alsa-util: Use time stamp config only for alsa versions >= 1.1.0

2018-05-15 Thread Georg Chini
On 15.05.2018 15:12, Arun Raghavan wrote: On Tue, 15 May 2018, at 11:30 AM, Georg Chini wrote: The commit "alsa-util: Set ALSA report_delay flag in pa_alsa_safe_delay()" broke the build on ALSA versions below 1.1.0 because the time stamp configuration function was introduce

[pulseaudio-discuss] [PATCH] alsa-util: Use time stamp config only for alsa versions >= 1.1.0

2018-05-15 Thread Georg Chini
The commit "alsa-util: Set ALSA report_delay flag in pa_alsa_safe_delay()" broke the build on ALSA versions below 1.1.0 because the time stamp configuration function was introduced in 1.1.0. This patch makes the usage of snd_pcm_status_set_audio_htstamp_config() dependent on ALSA version. ---

Re: [pulseaudio-discuss] [PATCH v2] alsa-util: Set ALSA report_delay flag in pa_alsa_safe_delay()

2018-05-13 Thread Georg Chini
On 11.05.2018 10:09, Tanu Kaskinen wrote: On Fri, 2018-05-04 at 21:10 +0200, Georg Chini wrote: The current code does not call snd_pcm_status_set_audio_htstamp_config() to configure the way timestamps are updated in ALSA. In kernel 4.14 and above a bug in ALSA has been fixed which changes

Re: [pulseaudio-discuss] [PATCH v3] bluez5-device: Fix memory leak in sco_process_render()

2018-05-08 Thread Georg Chini
On 07.05.2018 16:28, Tanu Kaskinen wrote: On Thu, 2018-04-26 at 13:24 +0200, Georg Chini wrote: sco_process_render does not unref the memblock when it encounters an error. This patch fixes the issue. It also changes the return value to 1 in the case of EAGAIN. Because the data was already

[pulseaudio-discuss] [PATCH v2] alsa-util: Set ALSA report_delay flag in pa_alsa_safe_delay()

2018-05-04 Thread Georg Chini
The current code does not call snd_pcm_status_set_audio_htstamp_config() to configure the way timestamps are updated in ALSA. In kernel 4.14 and above a bug in ALSA has been fixed which changes timmestamp behavior. This leads to inconsistencies in the delay reporting because the time stamp no

[pulseaudio-discuss] [PATCH v4] bluez5-device: Rewrite of thread function, reduce send buffer size for a2dp sink

2018-05-04 Thread Georg Chini
The rewrite of the thread function does not change functionality much, most of it is only cleanup, minor bug fixing and documentation work. This patch also changes the send buffer size for a2dp sink to avoid lags after temporary connection drops, following the proof-of-concept patch posted by

Re: [pulseaudio-discuss] [PATCH v2] bluez5-device: Rewrite of thread function, reduce send buffer size for a2dp sink

2018-04-26 Thread Georg Chini
On 26.04.2018 17:38, Georg Chini wrote: On 26.04.2018 15:13, Tanu Kaskinen wrote: On Thu, 2018-03-29 at 15:33 +0200, Georg Chini wrote: The rewrite of the thread function does not change functionality much, most of it is only cleanup, minor bug fixing  and documentation work. This patch also

Re: [pulseaudio-discuss] [PATCH v2] bluez5-device: Rewrite of thread function, reduce send buffer size for a2dp sink

2018-04-26 Thread Georg Chini
On 26.04.2018 15:13, Tanu Kaskinen wrote: On Thu, 2018-03-29 at 15:33 +0200, Georg Chini wrote: The rewrite of the thread function does not change functionality much, most of it is only cleanup, minor bug fixing and documentation work. This patch also changes the send buffer size for a2dp

Re: [pulseaudio-discuss] [PATCH] gsettings: run gsettings-data-convert from gsettings-helper

2018-04-26 Thread Georg Chini
On 23.04.2018 15:16, Tanu Kaskinen wrote: This was originally planned to be done by paprefs when it starts, but since the schema is now fully controlled by pulseaudio, it makes sense to run the conversion from pulseaudio instead. --- src/Makefile.am | 6 +

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