Ben Stover | 6 Mar 06:58 2015
Picon

How to directly shutdown Solaris WITHOUT PulseAudio prompt?

Whenever I shutdown Solaris 11 I get an additional dialog window prompt

"A program is still running:
PulseAudio Sound System
Not responding"

See attached snapshot.

How excatly can I either:

- let PulseAudio exit at shutdown without annoying user prompt
or
- disable (forever) PulseAudio completely

Ben

_______________________________________________
pulseaudio-discuss mailing list
pulseaudio-discuss <at> lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/pulseaudio-discuss
David Henningsson | 5 Mar 14:55 2015

[PATCH 0/3] Don't split non-SHM packets (fixes qemu srbchannel crash)

I got no comments in the bug about splitting non-SHM packets, so I went ahead and
produced a patch. I cannot reproduce the qemu crash after having applied it.

With that we can re-enable srbchannel again.

Note: This patch conflicts with pmeerw's "split up do_read" patch, but since that
patch was broken and pmeerw did not come up with a new version, I went ahead with making
a conflicting patch.

David Henningsson (3):
  pstream: Don't split (non-SHM) memblocks
  protocol-native: Re-enable srbchannel
  pstream: Remove unnecessary if condition

 src/pulsecore/protocol-native.c |   2 +-
 src/pulsecore/pstream.c         | 160 +++++++++++++++++++---------------------
 2 files changed, 77 insertions(+), 85 deletions(-)

--

-- 
1.9.1

_______________________________________________
pulseaudio-discuss mailing list
pulseaudio-discuss <at> lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/pulseaudio-discuss
jags gediya | 5 Mar 11:11 2015
Picon

Facing issues in a2dp sink profile support on linux

Below is the detail of my software SDK:

Kernel version : 3.10.17
Build tool : Yocto
Processor : i.MX6 Sololite
Pulseaudio version : 5.0
Bluez version : 4.101

I want to play music from my phone to the linux box running the above
described setup.
When i play song from the mobile, I am seeing the ACL data through
hcidump. but it is not playing on the headphone.
In the pulseaudio logs, i am seeing the errors.

Below are my changes, for pulseaudio and bluetooth.

/etc/pulse/daemon.conf

resample-method = trivial
enable-remixing = no
enable-lfe-remixing = no
default-sample-format = s16le
default-sample-rate = 48000
alternate-sample-rate = 24000
default-sample-channels = 2

/etc/pulse/system.pa

.ifexists module-bluetooth-policy.so
load-module module-bluetooth-policy
(Continue reading)

Kai Hendry | 4 Mar 03:18 2015

Reducing ambient noise from Input devices?

Hi there,

I made a recording that hopefully demonstrates the issue I have with
my voice recordings:

http://r2d2.webconverger.org/2015-03-04/microphone-test.mp4

1. Apple headphones
2. X1 Carbon 3 internal mic (sounds best atm)
3. http://www.smartlav.com/ (sounds fantastic when recording from my iphone)

I made the recording via ffmpeg
https://github.com/kaihendry/recordmydesktop2.0/blob/master/x11capture

First issue is auto-levelling. Can pulseadio do that at all? It's
quite frustrating to monitor the levels in pavucontrol...

Second more pressing issue is the amount of noise via the attached
microphone inputs. Why is there so much?! Are there tricks to reduce
the ambient noise? Google's best result is
http://askubuntu.com/questions/421671/microphone-static-background-noise-suppression
and I did try that previously with my X220 to no better results &
setup is VERY finicky.

IIRC both Windows & MacOSX have "Ambient noise reduction" recording
options built into their native audio system, therefore is it
reasonable for me to file a bug on pulseaudio to match this?

Many thanks for any tips to improve the voice recordings in advance,
_______________________________________________
(Continue reading)

Xamindar | 2 Mar 08:32 2015
Picon

HDMI audio passthrough no longer working

Hi Pulseaudio list!

With a recent update to my Arch system, audio passthrough has stopped working in Kodi. Kodi no longer shows the passthrough options anymore either. Here is what I have which has been working fine up until recently.

-7.1 audio out HDMI (nvidia card) to an Onkyo receiver.
-KDE4 running as my DE with pulseaudio configured and working.
-Pulseaudio set up as the correct 7.1 audio (even get them all in kde) with passthrough items all checked in pavucontrol.

I was getting passthrough on the files that had supported codecs and kodi was handling everything else. Then when I wasn't in Kodi audio was great in the DE with all other applications. This set up was working great up until recently. It's as if pulseaudio has stopped supporting passthrough or my config got overwritten by a default.

Anyway, a recent update broke all this and the passthrough options have vanished from the kodi options. The closest I have gotten is setting sound configuration to stereo in pavucontrol and then the passthrough options magically appear in kodi again. But still no sound on passthrough stuff and this option is unacceptable anyway as I don't want to reduce everything else to stereo just to get passthrough working in one app.

Any ideas what went wrong here? Is there a known bug in pulseaudio 6.0 that causes this breakage?

Thanks.
_______________________________________________
pulseaudio-discuss mailing list
pulseaudio-discuss <at> lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/pulseaudio-discuss
Peter Meerwald | 26 Feb 23:36 2015
Picon

memory optimization patch series

Hi,

I applied the first 9 patches (tagstruct:, packet:) of my longish
memory optimization patch series after rebasing on Tanu's tagstruct
refactoring

see http://thread.gmane.org/gmane.comp.audio.pulseaudio.general/21988

regards, p.

--

-- 

Peter Meerwald
+43-664-2444418 (mobile)
_______________________________________________
pulseaudio-discuss mailing list
pulseaudio-discuss <at> lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/pulseaudio-discuss
Peter Meerwald | 26 Feb 22:57 2015
Picon

pavucontrol patches

Hello,

I intend to apply the two pavucontrol patches proposed:

pavucontrol: Show only one volume slider when channels are locked
http://thread.gmane.org/gmane.comp.audio.pulseaudio.general/22088

pavucontrol: Remember device visibility selections
http://thread.gmane.org/gmane.comp.audio.pulseaudio.general/22770

code looks good and does what is promised according to my tests

regards, p.

--

-- 

Peter Meerwald
+43-664-2444418 (mobile)
_______________________________________________
pulseaudio-discuss mailing list
pulseaudio-discuss <at> lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/pulseaudio-discuss
Saad Malik | 25 Feb 21:13 2015
Picon

A2DP Bluetooth headset issues with PulseAudio 6.0

Hi All,
With the upgrade to PulseAudio 6.0 last week, my Bose OE SoundLink bluetooth headset no longer connects to the A2DP profile.

The new PulseAudio 6.0 upgrade added a headset_head_unit: Headset Head Unit (HSP/HFP) profile that actually works! Unfortunately, I get a "Refused to switch profile to a2dp_sink: Not connected" when I attempt to switch to the a2dp_sink profile.

Switch pulseaudio profile:

$ pacmd set-card-profile 1 a2dp_sink
Failed to set card profile to 'a2dp_sink'.

Started pulseaudio in foreground and the interesting logs are here:
$ pulseaudio -k && pulseaudio -vvvvv
... (lots of logs)...
... (above set-card-profile command executed) ...
I: [pulseaudio] client.c: Created 6 "UNIX socket client"
W: [pulseaudio] module-bluez5-device.c: Refused to switch profile to a2dp_sink: Not connected
D: [pulseaudio] cli.c: CLI got EOF from user.
I: [pulseaudio] client.c: Freed 6 "UNIX socket client"


$ pacmd ls
    index: 1
        name: <bluez_card.00_0C_8A_EA_B3_96>
        driver: <module-bluez5-device.c>
        owner module: 27
        properties:
                device.description = "Bose OE SoundLink"
                device.string = "00:0C:8A:EA:B3:96"
                device.api = "bluez"
                device.class = "sound"
                device.bus = "bluetooth"
                device.form_factor = "headphone"
                bluez.path = "/org/bluez/hci0/dev_00_0C_8A_EA_B3_96"
                bluez.class = "0x240418"
                bluez.alias = "Bose OE SoundLink"
                device.icon_name = "audio-headphones-bluetooth"
        profiles:
                headset_head_unit: Headset Head Unit (HSP/HFP) (priority 20, available: unknown)
                a2dp_sink: High Fidelity Playback (A2DP Sink) (priority 10, available: no)
                off: Off (priority 0, available: yes)
        active profile: <headset_head_unit>

Uploaded full logs of pacmd ls and pulseaudio -vvvv: https://gist.github.com/saamalik/7fd15b9826cbede2665c

Anyone have any ideas why A2DP stopped working after PulseAudio 6.0 upgrade?

Thanks,
Saad
_______________________________________________
pulseaudio-discuss mailing list
pulseaudio-discuss <at> lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/pulseaudio-discuss
Georg Chini | 25 Feb 19:43 2015

[PATCH 00/13] loopback: Make module-loopback honor requested latency (v5)

Hello,

this is the split version of the module-loopback patch. The patch optimizes the latency
initialization and regulation of the module.
Many thanks to Alexander Patrakov for splitting and reviewing the patch and also for
his contribution to the code.

Georg Chini (13):
  loopback: Fix the obviously-wrong "buffer+=buffer" logic
  loopback: Save the timestamps when we snapshot latency
  loopback: Improved estimation of latency
  loopback: Adjust rates based on latency difference
  loopback: Don't track max_request and min_memblockq_length
  loopback: Restart the timer right away
  loopback: Refactor latency initialization
  loopback: Track underruns and cant-peek events
  loopback: Track the amount of jitter
  loopback: Added a deadband to reduce rate hunting
  loopback: Don't change rate abruptly
  loopback: Validate the rate parameter
  loopback: add parameter buffer_latency_msec

 src/modules/module-loopback.c | 578 ++++++++++++++++++++++++++++++++----------
 src/pulse/sample.c            |   5 +-
 2 files changed, 443 insertions(+), 140 deletions(-)

--

-- 
2.1.4

_______________________________________________
pulseaudio-discuss mailing list
pulseaudio-discuss <at> lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/pulseaudio-discuss
Boris Egorov | 25 Feb 11:42 2015
Picon

[PATCH] sink-input: Fix logical error in condition

Error: if thread_info.state is DRAINED, it cannot be equal to RUNNING.
So, part of condition is redundant or wrong. Original code looks
different from this (see commit 045c1d602dcba578), so it is most likely
wrong. We need to set thread_info.drained to 1 only if thread_info.state
is not DRAINED or RUNNING.

Issue detected by PVS Studio and Cppcheck.

Signed-off-by: Boris Egorov <egorov <at> linux.com>
---
 src/pulsecore/sink-input.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/pulsecore/sink-input.c b/src/pulsecore/sink-input.c
index d95a93e..29beca6 100644
--- a/src/pulsecore/sink-input.c
+++ b/src/pulsecore/sink-input.c
 <at>  <at>  -1876,7 +1876,7  <at>  <at>  void pa_sink_input_set_state_within_thread(pa_sink_input *i, pa_sink_input_state
         return;

     if ((state == PA_SINK_INPUT_DRAINED || state == PA_SINK_INPUT_RUNNING) &&
-        !(i->thread_info.state == PA_SINK_INPUT_DRAINED || i->thread_info.state != PA_SINK_INPUT_RUNNING))
+        !(i->thread_info.state == PA_SINK_INPUT_DRAINED || i->thread_info.state == PA_SINK_INPUT_RUNNING))
         pa_atomic_store(&i->thread_info.drained, 1);

     corking = state == PA_SINK_INPUT_CORKED && i->thread_info.state == PA_SINK_INPUT_RUNNING;
--

-- 
2.1.4

_______________________________________________
pulseaudio-discuss mailing list
pulseaudio-discuss <at> lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/pulseaudio-discuss
Tanu Kaskinen | 25 Feb 10:56 2015
Picon

[PATCH] core-util: Make number parsing stricter

pa_atou(), pa_atol() and pa_atod() are stricter than the libc
counterparts (the PA functions reject strings that have trailing extra
stuff in them). I have been under the impression that the PA functions
only accept "obviously valid numbers", that is, I have assumed that
these would be rejected: " 42" (leading whitespace), "" (empty
string) and "-18446744073709551615" in case of pa_atou().

I noticed that empty strings are accepted, however, and on closer
inspection I found that leading whitespace is accepted too, and even
that pa_atou() thinks that "-18446744073709551615" is the same thing
as "1"! This patch makes the parsing functions more strict, so that
they indeed only accept "obviously valid numbers". In case of
pa_atou() I decided to also disallow a leading plus sign, as it's
redundant, and looks very strange (i.e. not obviously valid) in
contexts where the number represents, for example, an array index.
---
 src/pulsecore/core-util.c | 41 ++++++++++++++++++++++++++++++++++++++---
 1 file changed, 38 insertions(+), 3 deletions(-)

diff --git a/src/pulsecore/core-util.c b/src/pulsecore/core-util.c
index 9b16936..e20ebcb 100644
--- a/src/pulsecore/core-util.c
+++ b/src/pulsecore/core-util.c
 <at>  <at>  -2315,10 +2315,27  <at>  <at>  int pa_atou(const char *s, uint32_t *ret_u) {
     pa_assert(s);
     pa_assert(ret_u);

+    /* strtoul() ignores leading spaces. We don't. */
+    if (isspace(*s)) {
+        errno = EINVAL;
+        return -1;
+    }
+
+    /* strtoul() accepts strings that start with a minus sign. In that case the
+     * original negative number gets negated, and strtoul() returns the negated
+     * result. We don't want that kind of behaviour. strtoul() also allows a
+     * leading plus sign, which is also a thing that we don't want. */
+    if (*s == '-' || *s == '+') {
+        errno = EINVAL;
+        return -1;
+    }
+
     errno = 0;
     l = strtoul(s, &x, 0);

-    if (!x || *x || errno) {
+    /* If x doesn't point to the end of s, there was some trailing garbage in
+     * the string. If x points to s, no conversion was done (empty string). */
+    if (!x || *x || x == s || errno) {
         if (!errno)
             errno = EINVAL;
         return -1;
 <at>  <at>  -2342,10 +2359,19  <at>  <at>  int pa_atol(const char *s, long *ret_l) {
     pa_assert(s);
     pa_assert(ret_l);

+    /* strtol() ignores leading spaces. We don't. */
+    if (isspace(*s)) {
+        errno = EINVAL;
+        return -1;
+    }
+
     errno = 0;
     l = strtol(s, &x, 0);

-    if (!x || *x || errno) {
+    /* If x doesn't point to the end of s, there was some trailing garbage in
+     * the string. If x points to s, no conversion was done (at least an empty
+     * string can trigger this). */
+    if (!x || *x || x == s || errno) {
         if (!errno)
             errno = EINVAL;
         return -1;
 <at>  <at>  -2371,6 +2397,12  <at>  <at>  int pa_atod(const char *s, double *ret_d) {
     pa_assert(s);
     pa_assert(ret_d);

+    /* strtod() ignores leading spaces. We don't. */
+    if (isspace(*s)) {
+        errno = EINVAL;
+        return -1;
+    }
+
     /* This should be locale independent */

 #ifdef HAVE_STRTOF_L
 <at>  <at>  -2392,7 +2424,10  <at>  <at>  int pa_atod(const char *s, double *ret_d) {
         f = strtod(s, &x);
     }

-    if (!x || *x || errno) {
+    /* If x doesn't point to the end of s, there was some trailing garbage in
+     * the string. If x points to s, no conversion was done (at least an empty
+     * string can trigger this). */
+    if (!x || *x || x == s || errno) {
         if (!errno)
             errno = EINVAL;
         return -1;
--

-- 
1.9.3

_______________________________________________
pulseaudio-discuss mailing list
pulseaudio-discuss <at> lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/pulseaudio-discuss

Gmane