[Pkg-alsa-devel] Bug#976895: libasound2: regression (stops working): Alsa_driver: recover: pcm_status(): Broken pipe

Thorsten Glaser tg at mirbsd.de
Tue Dec 22 01:30:39 GMT 2020


tags 976895 + patch upstream
thanks

I’ve found that reverting a faulty upstream commit fixes this bug.

If there is no reaction within a week I intend to NMU this.

bye,
//mirabilos
-- 
(gnutls can also be used, but if you are compiling lynx for your own use,
there is no reason to consider using that package)
	-- Thomas E. Dickey on the Lynx mailing list, about OpenSSL
-------------- next part --------------
diff -Nru alsa-lib-1.2.4/debian/changelog alsa-lib-1.2.4/debian/changelog
--- alsa-lib-1.2.4/debian/changelog	2020-12-07 22:02:09.000000000 +0100
+++ alsa-lib-1.2.4/debian/changelog	2020-12-22 02:20:29.000000000 +0100
@@ -1,3 +1,10 @@
+alsa-lib (1.2.4-1.1) unstable; urgency=medium
+
+  * Non-maintainer upload.
+  * Revert an upstream commit breaking applications (Closes: #976895)
+
+ -- Thorsten Glaser <tg at mirbsd.de>  Tue, 22 Dec 2020 02:20:29 +0100
+
 alsa-lib (1.2.4-1) unstable; urgency=medium
 
   * New upstream release.
diff -Nru alsa-lib-1.2.4/debian/patches/976895.diff alsa-lib-1.2.4/debian/patches/976895.diff
--- alsa-lib-1.2.4/debian/patches/976895.diff	1970-01-01 01:00:00.000000000 +0100
+++ alsa-lib-1.2.4/debian/patches/976895.diff	2020-12-22 02:20:09.000000000 +0100
@@ -0,0 +1,28 @@
+# DP: revert upstream commit 4f90392f07e8822d1984ed990f622ad36022a4a3
+# DP: fixes Debian bug #976895
+
+--- a/src/pcm/pcm_plugin.c
++++ b/src/pcm/pcm_plugin.c
+@@ -541,20 +541,16 @@ static snd_pcm_sframes_t snd_pcm_plugin_
+ static int snd_pcm_plugin_status(snd_pcm_t *pcm, snd_pcm_status_t * status)
+ {
+ 	snd_pcm_plugin_t *plugin = pcm->private_data;
+-	snd_pcm_sframes_t err, avail;
++	snd_pcm_sframes_t err;
+ 
+ 	/* sync with the latest hw and appl ptrs */
+-	avail = snd_pcm_plugin_avail_update(pcm);
+-	if (avail < 0)
+-		return avail;
++	snd_pcm_plugin_avail_update(pcm);
+ 
+ 	err = snd_pcm_status(plugin->gen.slave, status);
+ 	if (err < 0)
+ 		return err;
+ 	status->appl_ptr = *pcm->appl.ptr;
+ 	status->hw_ptr = *pcm->hw.ptr;
+-	status->avail = avail;
+-	status->delay = snd_pcm_mmap_delay(pcm);
+ 	return 0;
+ }
+ 
diff -Nru alsa-lib-1.2.4/debian/patches/series alsa-lib-1.2.4/debian/patches/series
--- alsa-lib-1.2.4/debian/patches/series	2020-08-20 19:56:34.000000000 +0200
+++ alsa-lib-1.2.4/debian/patches/series	2020-12-22 02:19:47.000000000 +0100
@@ -1 +1,2 @@
 0001-Enabled-extended-namehints-in-alsa.conf.patch
+976895.diff


More information about the Pkg-alsa-devel mailing list