Stereo line-in capture broken in alsa-lib 1.0.10 for "simple mixer" cards.

Bug #62855 reported by Jeff Meininger
8
Affects Status Importance Assigned to Milestone
alsa-lib (Ubuntu)
Fix Released
High
Unassigned
Nominated for Dapper by Daniel T Chen

Bug Description

Alsa-lib 1.0.10 had a bug that prevented capturing stereo input from line-in with many types of sound cards (those using the "simple mixer" API, such as AC97 cards).

Several responders to support request ticket #1000 indicate that they experience this problem: https://launchpad.net/distros/ubuntu/+ticket/1000

The alsa developers fixed this bug in alsa-lib 1.0.11. Here is the (very small) changeset from the alsa CVS: http://hg-mirror.alsa-project.org/alsa-lib?cmd=changeset;node=71eb744cd5be42cd7ebd14edf5f3f2e2da6ba35d;style=gitweb

I have taken Dapper's alsa-lib 2ubuntu4 and added a dpatch that incorporates this small fix. Here is a debdiff: http://boxybutgood.com/jeff/alsa-lib_1.0.10-2ubuntu5.debdiff

It would be great if you can release this as an update. It's a pretty serious bug to anyone interested in audio capture. Thanks!

Revision history for this message
Daniel T Chen (crimsun) wrote :

dapper-updates candidate

Changed in alsa-lib:
importance: Undecided → High
status: Unconfirmed → In Progress
Revision history for this message
Daniel T Chen (crimsun) wrote : SRU proposal for 6.06.1's alsa-lib 1.0.10-2ubuntu4
Download full text (3.3 KiB)

Hi Matt, Colin,

Recently I was made aware of ticket #1000 [0] in which quite a few
6.06.1 users of AC'97 codecs are not able to record audible stereo
microphone input. A bug report has been filed [1] to track the
resolution of this issue for 6.06.1. A straightforward fix [2] is
available in a newer upstream version of alsa-lib (1.0.11, so 6.10 is
not affected, nor are earlier Ubuntu versions).

Attached please find a SRU debdiff against 6.06.1's alsa-lib source package.

$ debdiff alsa-lib_1.0.10-2ubuntu4.dsc alsa-lib_1.0.10-2ubuntu4.1.dsc
|diffstat
 alsa-lib-1.0.10/debian/changelog | 11 ++++++++++
 alsa-lib-1.0.10/debian/patches/00list | 1
 debian/patches/25_fix_stereo_line_capture.dpatch | 24
+++++++++++++++++++++++
 3 files changed, 36 insertions(+)

[0] https://launchpad.net/distros/ubuntu/+ticket/1000
[1] https://launchpad.net/distros/ubuntu/+source/alsa-lib/+bug/62855
[2]
http://hg-mirror.alsa-project.org/alsa-lib?cmd=changeset;node=71eb744cd5be42cd7ebd14edf5f3f2e2da6ba35d;style=gitweb

Thanks,
--
Daniel T. Chen <email address hidden>
GPG key: 0xC88ABDA3

diff -u alsa-lib-1.0.10/debian/changelog alsa-lib-1.0.10/debian/changelog
--- alsa-lib-1.0.10/debian/changelog
+++ alsa-lib-1.0.10/debian/changelog
@@ -1,3 +1,14 @@
+alsa-lib (1.0.10-2ubuntu4.1) dapper-proposed; urgency=low
+
+ * Add debian/patches/25_fix_stereo_line_capture.dpatch that fixes
+ inaudible recording of stereo microphone input. Patch backported
+ from 1.0.11 referenced at
+ http://hg-mirror.alsa-project.org/alsa-lib?cmd=changeset;node=71eb744cd5be42cd7ebd14edf5f3f2e2da6ba35d;style=raw
+ (Closes Ubuntu ticket #1000, bug #62855). Thanks, Jeff Meininger
+ and others.
+
+ -- Daniel T Chen <email address hidden> Thu, 28 Sep 2006 17:34:12 -0400
+
 alsa-lib (1.0.10-2ubuntu4) dapper; urgency=low

   * debian/patches: Add:
diff -u alsa-lib-1.0.10/debian/patches/00list alsa-lib-1.0.10/debian/patches/00list
--- alsa-lib-1.0.10/debian/patches/00list
+++ alsa-lib-1.0.10/debian/patches/00list
@@ -16,0 +17 @@
+25_fix_stereo_line_capture
only in patch2:
unchanged:
--- alsa-lib-1.0.10.orig/debian/patches/25_fix_stereo_line_capture.dpatch
+++ alsa-lib-1.0.10/debian/patches/25_fix_stereo_line_capture.dpatch
@@ -0,0 +1,24 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 25_fix_stereo_line_capture.dpatch by <email address hidden>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Fixes stereo line capture bug in simple mixer API:
+## DP: http://hg-mirror.alsa-project.org/alsa-lib?cmd=changeset;node=71eb744cd5
+## DP: be42cd7ebd14edf5f3f2e2da6ba35d;style=gitweb
+
+@DPATCH@
+
+diff -ru alsa-lib-1.0.10.orig/src/mixer/simple_none.c alsa-lib-1.0.10/src/mixer/simple_none.c
+--- alsa-lib-1.0.10.orig/src/mixer/simple_none.c 2005-08-24 05:41:16.000000000 -0500
++++ alsa-lib-1.0.10/src/mixer/simple_none.c 2005-12-02 07:39:24.000000000 -0600
+@@ -768,7 +768,9 @@
+ if (cchannels > 1) {
+ if (simple->ctls[CTL_CAPTURE_ROUTE].elem ||
+ (simple->ctls[CTL_CAPTURE_SWITCH].elem &&
+- simple->ctls[CTL_CAPTURE_SWITCH].values > 1)) {
++ simple->ctls[CTL_CAPTURE_SWITCH].values > 1) ||
++ (simple...

Read more...

Revision history for this message
Matt Zimmerman (mdz) wrote :

On Thu, Sep 28, 2006 at 05:54:50PM -0400, Daniel T. Chen wrote:
> Hi Matt, Colin,
>
> Recently I was made aware of ticket #1000 [0] in which quite a few
> 6.06.1 users of AC'97 codecs are not able to record audible stereo
> microphone input. A bug report has been filed [1] to track the
> resolution of this issue for 6.06.1. A straightforward fix [2] is
> available in a newer upstream version of alsa-lib (1.0.11, so 6.10 is
> not affected, nor are earlier Ubuntu versions).

Excellent job on this proposal; it had everything I needed.

The update itself seems fine; my only reservation is that the original bug
doesn't seem serious enough to justify the inherent risk factors of an
update. It seems that it would affect only a very small number of users (on
particular hardware and doing stereo audio capture?).

--
 - mdz

Revision history for this message
Jeff Meininger (jeff-boxybutgood) wrote : Re: [Bug 62855] Re: SRU proposal for 6.06.1's alsa-lib 1.0.10-2ubuntu4

Matt Zimmerman wrote:

> The update itself seems fine; my only reservation is that the original bug
> doesn't seem serious enough to justify the inherent risk factors of an
> update. It seems that it would affect only a very small number of users (on
> particular hardware and doing stereo audio capture?).

As I understand it, the bug affects the vast majority of PC audio
hardware. Most on-board audio chipsets use the buggy "simple mixer" and
so do the majority of consumer-grade PCI sound cards. (Higher-end
[Audigy] and other specialty audio hardware use different mixer code and
are not affected.)

I suppose any update is a risk factor, but the changes to the existing
package are minimal and completely isolated. This is much less of a
risk than upgrading the whole library to 1.0.11 would be.

Revision history for this message
Daniel T Chen (crimsun) wrote :

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Matt,

Matt Zimmerman wrote:
> The update itself seems fine; my only reservation is that the original bug
> doesn't seem serious enough to justify the inherent risk factors of an
> update. It seems that it would affect only a very small number of users (on
> particular hardware and doing stereo audio capture?).

As Jeff mentioned in the follow-up to bug 62855, a significant number of
"AC'97" users are affected. Considering that there is zero possibility
of backward breakage by applying this fix for stereo audio capture and
that Ubuntu will soon have an audio-centric sister project, IMO it seems
sensible to include this fix in dapper-updates.

Thanks,
- --
Daniel T. Chen <email address hidden>
GPG key: 0xC88ABDA3
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFIzWXe9GwFciKvaMRAh8wAJ0RORGVib7NXgFVmBZIyW7NZ3GfXgCfaphf
917RC+Yh/EvSTLtJ+Certyw=
=+UHT
-----END PGP SIGNATURE-----

Revision history for this message
Matt Zimmerman (mdz) wrote :

On Wed, Oct 04, 2006 at 12:16:23AM -0400, Daniel T. Chen wrote:
> Hi Matt,
>
> Matt Zimmerman wrote:
> > The update itself seems fine; my only reservation is that the original bug
> > doesn't seem serious enough to justify the inherent risk factors of an
> > update. It seems that it would affect only a very small number of users (on
> > particular hardware and doing stereo audio capture?).
>
> As Jeff mentioned in the follow-up to bug 62855, a significant number of
> "AC'97" users are affected. Considering that there is zero possibility
> of backward breakage by applying this fix for stereo audio capture and

Only a tiny fraction of users are likely to be using stereo audio capture at
all. With a little more context from the file, though, it seems clear that
only those users will be affected by the patch.

Let's go ahead with this update.

> that Ubuntu will soon have an audio-centric sister project, IMO it seems
> sensible to include this fix in dapper-updates.

Is this sister project committed to deriving from Dapper? Typically it
makes more sense to start from the most recent version, which will soon be
Edgy.

--
 - mdz

Revision history for this message
Daniel T Chen (crimsun) wrote :

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Matt,

Matt Zimmerman wrote:
> Let's go ahead with this update.

Great! Per SRU guidelines, I've uploaded an alsa-lib source package,
with the debdiff applied, to dapper-proposed.

> Is this sister project committed to deriving from Dapper? Typically it
> makes more sense to start from the most recent version, which will soon be
> Edgy.

I've just chatted with Cory, and he assures me that UbuntuStudio
(formerly Mubuntu) will derive from Edgy (to be precise: < _MMA_> Yes.
All our testing will be done with Edgy with an actual release planed for
+1). At the time (prior to more detailed consultation with him), I was
under the impression that 6.06.1 LTS had been chosen as the base.

Thanks,
- --
Daniel T. Chen <email address hidden>
GPG key: 0xC88ABDA3

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFLFqce9GwFciKvaMRAnbFAJ4gtt7STlT8NtnUNwgUNVBZqwizIwCgqhhv
vYpE7L7qkvwl1AGylcodSD4=
=Sx6k
-----END PGP SIGNATURE-----

Revision history for this message
Colin Watson (cjwatson) wrote :

Accepted into dapper-proposed. Please proceed to the Test phase of StableReleaseUpdates.

Daniel T Chen (crimsun)
description: updated
Revision history for this message
Daniel T Chen (crimsun) wrote : StableReleaseUpdates - Ubuntu bug 62855 - testing phase notification

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

QA team et al.,

Per SRU policy, I've tagged Ubuntu bug report 62855 after Colin has
accepted alsa-lib (1.0.10-2ubuntu4.1) into dapper-proposed. I've tested
the fix locally, and it resolves the issue reported in 62855.

Jeff, <email address hidden>, please verify the fix in dapper-proposed.
Please ask others affected (see Ubuntu ticket 1000, too) to also test.

Thanks,
- --
Daniel T. Chen <email address hidden>
GPG key: 0xC88ABDA3
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFMnLqe9GwFciKvaMRAvc4AJ9z6k6dZODmnHaQMTjocP/vYBc1NwCfRR2E
YCcjxs8842mN4Kvm9GZ3tnU=
=jvl7
-----END PGP SIGNATURE-----

Revision history for this message
Simon Law (sfllaw) wrote :

Verified that sound output and microphone capture are not broken by this update.

Revision history for this message
Leonid Evdokimov (darkk) wrote :

Hello everyone,

Will this fix be ever moved to dapper-updates?

Revision history for this message
Daniel T Chen (crimsun) wrote :

It is not entirely clear whether the SRU procedure is completed on the testing side, though I presume Simon's comment above is sufficient.

Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

This report has been marked "In progress" without any assignee for a long time now, and there is no recent comment. Can we consider that the SRU procedure is achieved and close this report ?

Thanks in advance.

Revision history for this message
Daniel T Chen (crimsun) wrote :

Fixed in every alsa-lib release post-6.06. Added tag just to cover the corner case that additional verification is necessary.

Changed in alsa-lib:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related questions

Remote bug watches

Bug watches keep track of this bug in other bug trackers.