[From nobody Thu Jul  2 15:50:58 2009
Received: (at submit) by bugs.debian.org; 9 Apr 2009 07:03:45 +0000
X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02
	(2007-08-08) on rietz.debian.org
X-Spam-Level: 
X-Spam-Bayes: score:0.0000 Tokens: new, 62; hammy, 98; neutral, 39; spammy, 2.
	spammytokens:0.987-1--H*r:79.155.102, 0.847-+--card
	hammytokens:0.000-+--H*u:1.9.9, 0.000-+--Severity, 0.000-+--UD:init.d, 
	0.000-+--initd, 0.000-+--init.d
X-Spam-Status: No, score=-9.8 required=4.0 tests=BAYES_00,HAS_PACKAGE,
	MURPHY_WRONG_WORD2,SPF_PASS autolearn=ham
	version=3.2.3-bugs.debian.org_2005_01_02
Return-path: &lt;jordipujolp@gmail.com&gt;
Received: from mail-ew0-f158.google.com ([209.85.219.158])
	by rietz.debian.org with esmtp (Exim 4.63)
	(envelope-from &lt;jordipujolp@gmail.com&gt;) id 1LroIb-0000bo-4y
	for submit@bugs.debian.org; Thu, 09 Apr 2009 07:03:45 +0000
Received: by ewy2 with SMTP id 2so515994ewy.41
	for &lt;submit@bugs.debian.org&gt;; Thu, 09 Apr 2009 00:03:38 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
	h=domainkey-signature:received:received:from:to:subject:date
	:user-agent:mime-version:content-type:message-id;
	bh=/9aJ3MZQSYUvysH/tu0EDYjS9epiGMDZ4Od/E/HpFxM=;
	b=Fza4yVT0c7WJFOJjGuTS3ljacO41KU8J4TnrNvGjvxp3tHN6PP3BdH9VqtomeTpgDn
	lARkk2JLcaa53ik67MyUM9K2Cy7E3A/ji2j2vbW7mN0O1xuh64WeEW6zMbb+zcKndIpp
	baePsu4aWMrtVOX5mYgaojhclR5ua31pVfVRg=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;
	h=from:to:subject:date:user-agent:mime-version:content-type
	:message-id;
	b=qZKQvIBnGJSSxr7itPrtNt2USi246Sq7VjFLYZ8aY09LLcF+KO1AN++AMPVijepHrJ
	g6AGd2jrzOIXbwKuwOqLwl4z9YKnuPiHqVhFdl0KzjvaWaxt8e7wmbPR6VggMNVo/Kxg
	e90gANIl8J7xNt3OObLokJGzSDOM0qmxbozsg=
Received: by 10.216.71.204 with SMTP id r54mr527820wed.125.1239260618787;
	Thu, 09 Apr 2009 00:03:38 -0700 (PDT)
Received: from pcjordi.jordipujol.net
	(127.Red-79-155-102.dynamicIP.rima-tde.net [79.155.102.127])
	by mx.google.com with ESMTPS id t2sm6967057gve.14.2009.04.09.00.03.37
	(version=TLSv1/SSLv3 cipher=RC4-MD5);
	Thu, 09 Apr 2009 00:03:37 -0700 (PDT)
From: Jordi Pujol &lt;jordipujolp@gmail.com&gt;
To: submit@bugs.debian.org
Subject: daemon test if device pcsp exist before setting with amixer
Date: Thu, 9 Apr 2009 09:03:35 +0200
User-Agent: KMail/1.9.9
MIME-Version: 1.0
Content-Type: Multipart/Mixed;
  boundary=&quot;Boundary-00=_H3Z3JKjJyYkFBaa&quot;
Message-Id: &lt;200904090903.35816.jordipujolp@gmail.com&gt;
Delivered-To: submit@bugs.debian.org

--Boundary-00=_H3Z3JKjJyYkFBaa
Content-Type: text/plain;
  charset=&quot;utf-8&quot;
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Package: alsa-utils 
Version: 1.0.19-2
Severity: normal
Architecture: amd64

Hello,

when the alsa-utils daemon starts, in a system that has not the device &quot;pcsp&quot;,
a lot of errors appear in the boot screen,

Proposed solution, 
test if that device exist before trying to set it.

Kind regards,

Jordi Pujol

--Boundary-00=_H3Z3JKjJyYkFBaa
Content-Type: text/x-diff;
  charset=&quot;iso 8859-15&quot;;
  name=&quot;init-alsa-utils.diff&quot;
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
	filename=&quot;init-alsa-utils.diff&quot;

--- /lnet/00filesystem.squashfs/etc/init.d/alsa-utils	2009-03-30 02:36:01.000000000 +0200
+++ /etc/init.d/alsa-utils	2009-04-09 08:48:48.545351854 +0200
@@ -221,7 +221,8 @@
 		sanify_levels_on_card &quot;$1&quot; || TTSDML_RETURNSTATUS=1
 		;;
 	esac
-	mute_and_zero_levels_on_card &quot;pcsp&quot;
+	cat /proc/asound/card[0-9]*/id | grep -qswe &quot;pcsp&quot; &amp;&amp; \
+		mute_and_zero_levels_on_card &quot;pcsp&quot;
 	return $TTSDML_RETURNSTATUS
 }
 

--Boundary-00=_H3Z3JKjJyYkFBaa--


]