I've read one report in which speech-dispatcher is identically and
adversely impacted too.
On Wed, 10 Aug 2016, Sebastian Humenda wrote:
Date: Wed, 10 Aug 2016 14:30:25
From: Sebastian Humenda <shume...@gmx.de>
To: Debian Bug Tracking System <sub...@bugs.debian.org>
Cc: debian-accessibility@lists.debian.org
Subject: libasound2: brltty-espeak stops working with 1.1.2-1
Resent-Date: Wed, 10 Aug 2016 18:30:45 +0000 (UTC)
Resent-From: debian-accessibility@lists.debian.org
Package: libasound2
Version: 1.1.2
Severity: serious
Tags: patch
Justification: breaks system for blind users [RC, stretch]
After an upgrade to the specified version, BRLTTY starts up with speech working
(brltty-espeak is using libao -> libasoun2), but speech stops working after
roughly a minute. The BRLTTY process is still running, but speech cannot be
brought back, only a restart of BRLTTY fixes this issue. All other playback of
sound using ALSA works fine. Since it is not related to any changes in BRLTTY
(tried several stable versions), the issue must be in libasound2. The provided
patch fixes the issue reliably for me.
-- System Information:
Debian Release: stretch/sid
APT prefers testing
APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 4.6.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Content-Type: text/x-diff; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="patch"
--
--- ./src/pcm/pcm.c.orig 2016-08-10 19:39:59.881564371 +0200
+++ ./src/pcm/pcm.c 2016-08-10 19:40:04.211539997 +0200
@@ -2544,6 +2544,7 @@
pcm->fast_op_arg = pcm;
INIT_LIST_HEAD(&pcm->async_handlers);
#ifdef THREAD_SAFE_API
+ pcm->thread_safe = 1;
pthread_mutex_init(&pcm->lock, NULL);
{
static int default_thread_safe = -1;