[Pkg-alsa-devel] Bug#237452: marked as done (alsa-base: race condition with udev when restoring mixer settings)

Debian Bug Tracking System owner@bugs.debian.org
Sun, 25 Apr 2004 23:03:13 -0700


Your message dated Mon, 26 Apr 2004 01:47:05 -0400
with message-id <E1BHyxN-0002uU-00@newraff.debian.org>
and subject line Bug#237452: fixed in alsa-driver 1.0.4-2
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 11 Mar 2004 16:28:13 +0000
>From laytonj@bowebellhowell.com Thu Mar 11 08:28:12 2004
Return-path: <laytonj@bowebellhowell.com>
Received: from mx2.bowebellhowell.com (mx2.bellhowell.com) [207.235.66.111] 
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1B1T2a-0002Lw-00; Thu, 11 Mar 2004 08:28:12 -0800
Received: from tesla.mmt.bellhowell.com (tesla.mmt.bellhowell.com [192.168.110.50])
	by mx2.bellhowell.com (Postfix) with ESMTP
	id 9F88C34153; Thu, 11 Mar 2004 11:27:41 -0500 (EST)
Received: by tesla.mmt.bellhowell.com (Postfix, from userid 5029)
	id 6479126E3; Thu, 11 Mar 2004 11:27:41 -0500 (EST)
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
From: Jeffrey Layton <jtlayton@poochiereds.net>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: alsa-base: race condition with udev when restoring mixer settings
X-Mailer: reportbug 2.50
Date: Thu, 11 Mar 2004 11:27:40 -0500
Message-Id: <20040311162741.6479126E3@tesla.mmt.bellhowell.com>
Delivered-To: submit@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2004_03_08 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-5.0 required=4.0 tests=HAS_PACKAGE autolearn=no 
	version=2.60-bugs.debian.org_2004_03_08
X-Spam-Level: 

Package: alsa-base
Version: 1.0.3-1
Severity: normal

I just converted one of my machines to using the new udev facility, and
seem to have stumbled on a race condition when restoring mixer settings
at boot time. I think the problem is that there is a small delay after
the kernel modules are plugged in before the devices are created by
udev. Unfortunately, the alsactl restore seems to happen before the
devices are created, and it fails. Subsequent attempts to run it seem to
work fine.

It might be as simple as adding a delay in the script or looping for a bit
to make sure the devices are present before restoring mixer settings.

Please let me know if you need more info.

Thanks,
Jeff

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.4a
Locale: LANG=C, LC_CTYPE=C

Versions of packages alsa-base depends on:
ii  alsa-utils                   1.0.3-1     Advanced Linux Sound Architecture 
ii  debconf                      1.4.15      Debian configuration management sy
ii  debianutils                  2.7.2       Miscellaneous utilities specific t
ii  lsof                         4.70-1      List open files.
ii  module-init-tools            3.0-pre10-1 tools for managing Linux kernel mo
ii  modutils                     2.4.26-1    Linux module utilities
ii  procps                       1:3.2.0-1   The /proc file system utilities
ii  psmisc                       21.4-1      Utilities that use the proc filesy

-- debconf information:
  alsa-common/card-list: 
* alsa-base/alsactl_store_on_shutdown: true
* alsa-base/current_card: done
* alsa-base/force_stop_alsa_before_suspend: forcibly-unload-driver
* alsa-base/card_list: intel8x0 done

---------------------------------------
Received: (at 237452-close) by bugs.debian.org; 26 Apr 2004 05:53:04 +0000
>From katie@ftp-master.debian.org Sun Apr 25 22:53:04 2004
Return-path: <katie@ftp-master.debian.org>
Received: from newraff.debian.org [208.185.25.31] (mail)
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1BHz3A-0003a8-00; Sun, 25 Apr 2004 22:53:04 -0700
Received: from katie by newraff.debian.org with local (Exim 3.35 1 (Debian))
	id 1BHyxN-0002uU-00; Mon, 26 Apr 2004 01:47:05 -0400
From: Steve Kowalik <stevenk@debian.org>
To: 237452-close@bugs.debian.org
X-Katie: $Revision: 1.49 $
Subject: Bug#237452: fixed in alsa-driver 1.0.4-2
Message-Id: <E1BHyxN-0002uU-00@newraff.debian.org>
Sender: Archive Administrator <katie@ftp-master.debian.org>
Date: Mon, 26 Apr 2004 01:47:05 -0400
Delivered-To: 237452-close@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2004_03_25 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-5.0 required=4.0 tests=BAYES_00,HAS_BUG_NUMBER 
	autolearn=no version=2.60-bugs.debian.org_2004_03_25
X-Spam-Level: 
X-CrossAssassin-Score: 11

Source: alsa-driver
Source-Version: 1.0.4-2

We believe that the bug you reported is fixed in the latest version of
alsa-driver, which is due to be installed in the Debian FTP archive:

alsa-base_1.0.4-2_all.deb
  to pool/main/a/alsa-driver/alsa-base_1.0.4-2_all.deb
alsa-driver_1.0.4-2.diff.gz
  to pool/main/a/alsa-driver/alsa-driver_1.0.4-2.diff.gz
alsa-driver_1.0.4-2.dsc
  to pool/main/a/alsa-driver/alsa-driver_1.0.4-2.dsc
alsa-headers_1.0.4-2_all.deb
  to pool/main/a/alsa-driver/alsa-headers_1.0.4-2_all.deb
alsa-source_1.0.4-2_all.deb
  to pool/main/a/alsa-driver/alsa-source_1.0.4-2_all.deb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 237452@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Steve Kowalik <stevenk@debian.org> (supplier of updated alsa-driver package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)


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

Format: 1.7
Date: Mon, 26 Apr 2004 15:27:55 +1000
Source: alsa-driver
Binary: alsa-source alsa-headers alsa-base
Architecture: source all
Version: 1.0.4-2
Distribution: unstable
Urgency: low
Maintainer: Debian ALSA Maintainers <pkg-alsa-devel@lists.alioth.debian.org>
Changed-By: Steve Kowalik <stevenk@debian.org>
Description: 
 alsa-base  - ALSA sound driver common files
 alsa-headers - ALSA sound driver header files
 alsa-source - ALSA sound driver source
Closes: 191501 195516 199739 203491 210440 218655 229486 232380 232854 237003 237452 238278 238694 238994 240125 240594 240594 242720 243876 244068 245031 245783
Changes: 
 alsa-driver (1.0.4-2) unstable; urgency=low
 .
   * Steve Kowalik:
     - Actually do some work on this package!
     - Check for the presence of either devfs or udev before creating device
       nodes in alsa-base's postinst. (Closes: #243876)
     - Rewrite the init script to not load modules. Loading modules is now
       the responsibility of the user, or hotplug.
       (Closes: #195516, #203491, #210440, #232380, #237003, #237452, #240594)
       (Closes: #244068, #245783)
     - Stop alsa-base depending on lsof and procps.
     - Change the description for alsa-base to no longer mention module
       loading.
     - Rewrite the debconf-age for alsa-base:
       + Stop asking which modules to load. (Closes: #199739, #218655)
       + Only ask one question about saving mixer settings, in the style of
         setserial.
       + This means we can stop doing vile things to the debconf templates in
         debian/rules.
       + This also means that alsa can restore on bootup, and not save on
         shutdown. (Closes: #191501, #232854)
     - Remove the files under /etc/alsa/modutils, and the symlinks
       into /etc/modprobe.d and /etc/modutils.
     - Provide an alsa-base file under /etc/modprobe.d and /etc/modutils
       which will load the OSS compatibility modules.
       (Closes: #229486, #240594)
     - Blacklist (for hotplug) and skip (for discover) the OSS sound modules.
       Note that we can include the blacklist automatically for hotplug, but
       discover doesn't contain the infrastructure for that, so the file for
       discover is in /usr/share/doc/alsa-base.
       (Closes: #238278, #238694, #240125, #242720)
     - Due to the fact that the init script no longer touches modules, this
       script has been gutted to a shadow of its former self. (Closes: #238994)
     - Stop using install -d so liberally in debian/rules.
     - Rename debian/po/no.po to debian/po/nb.po.
     - Correct typo in debian/po/fr.po. (Closes: #245031) (thanks,
       Pierre Machard)
     - Remove debian/alsa-path, I can't see anything at all that references it.
   * Unreleased and untested.
Files: 
 d6e7b7fad0ff1f319377dfe1ee4583ec 805 sound optional alsa-driver_1.0.4-2.dsc
 32b5582e8c4aca3db9d856983f79b124 133458 sound optional alsa-driver_1.0.4-2.diff.gz
 421623be15597077ac2f2b8241ea69cd 45680 sound optional alsa-base_1.0.4-2_all.deb
 e3fb94c3d3f6683b33a9ebc8966b444d 1819260 sound optional alsa-source_1.0.4-2_all.deb
 bc2169190003c566e7523a020878244a 55920 sound optional alsa-headers_1.0.4-2_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFAjJ8yCfB0CMh//C8RAuDhAKDOw+UJxM1HA4lUSj5z2nD9F3gKXQCdG6hM
HXdppa/6Ew9HAsCreguhWTc=
=YZy3
-----END PGP SIGNATURE-----