[PlanetCCRMA] Failure starting ALSA with an MAudio Delta 66

Michael George mdgeorge@cs.cornell.edu
Fri May 27 11:51:01 2005


This is a multi-part message in MIME format.

------_=_NextPart_001_01C562EB.FAA26156
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi,

I was getting the same problem, and I did some experimenting and found =
out
the cause.  Something takes a few seconds to load, so the command =
'action
"Restoring sound driver settings" $alsactl -f $asoundcfg restore' in
/etc/init.d/alsasound fails because it happens right in the script, =
whereas
the same command "alsactl restore" works because I type it in a few =
seconds
later.

There's a horrible hacky way to work around this: I added the line =
"sleep 5"
(which makes the script wait for 5 seconds) to /etc/init.d/alsasound =
right
before the line 'action "Restoring sound driver settings" $alsactl -f
$asoundcfg restore'.  It works now, but it takes an extra five seconds =
to
load.

Perhaps I should notify the alsa mailing list as well?

--Mike George

>=20
> I think I get the same behaviour with my Tascam USB
> module. I could do store and restore and card 1 , but the
> script failed. (the tascam only has hardware mixers so
> store doesn't really do anything anyway). I just thought
> the error wasn't a real problem - just looks untidy
>=20
> On Apr 1, 2005 4:25 AM, Brad Fuller <brad@sonaural.com>
> >  wrote: Fernando Lopez-Lezcano wrote:=20
> >  On Thu, 2005-03-31 at 07:13, Brad Fuller wrote:
> > =20
> > =20
> >  Fernando Lopez-Lezcano wrote:=20
> > =20
> > =20
> >  On Mon, 2005-01-17 at 19:09, Brent Durbin wrote:
> > =20
> > =20
> > =20
> >  Hi All,
> > I'm new to the whole Linux Audio thing and was hoping
> > you could help me out. I installed FC3 on my system that
> >  has a MAudio Delta 66 card. I installed the PlanetCCRMA
> > stuff and updated to the Planet Edge so I could get ALSA
> > 1.0.8. When I do and alsasound restart I get: Shutting
> > down sound driver [ OK ] Starting sound driver
> > snd-ice1712 [ OK ] Starting sequencer [ OK ]
> > Restoring sound driver settings /usr/sbin/alsactl:
> > load_state:1267: No soundcards found...
> >  [FAILED]
> >=20
> > Can anyone give me a clue as to what I should look at to
> > figure out what is wrong? Could it be a problem with
> > /etc/modprobe.conf? Here are the relevant lines:
> > alias snd-card-0 snd-ice1712
> > options snd-card-0 index=3D0
> > install snd-ice1712 /sbin/modprobe --ignore-install
> > snd-ice1712 && /usr/sbin/alsactl restore >/dev/null 2>&1
> > || : remove snd-ice1712 { /usr/sbin/alsactl store
> > >/dev/null 2>&1 || : ; }; /sbin/modprobe -r
> > --ignore-remove snd-ice1712=20
> > Also, envy24control starts, so I am pretty sure that I'm
> > using the correct kernel.
> > =20
> > =20
> >  Meaning that the kernel module for the card is loaded
> > and the card is seen by envy24control? If so, you just
> > probably need to store the state of the mixer (some
> > settings and/or controls may have changed in the new
> >  alsa). Do: /usr/sbin/alsactl store
> > And then:
> >  /usr/sbin/alsactl restore
> > It should not complain anymore...
> > =20
> > =20
> >  Just want to add that I also have a Delta66 and have
> > the same problem. I've done the store/restore but still
> > it doesn't remember. I too receive the following error
> > when restarting alsa:=20
> > Restoring sound driver settings /usr/sbin/alsactl:=20
> > load_state:1272: No soundcards found... [FAILED]
> >=20
> > This seems to be a msg that should go to the ALSA dist
> >  list.=20
> >  Have you tried to redo the mixer state from scratch?
> > Delete or move away /etc/asound.state, then fire your
> > mixer, get the settings done and "/usr/bin/alsactl
> > store".=20
> > -- Fernando
> > =20
> >  just tried what you suggested. no change.
> > =20
> >  /usr/sbin/alsactl store and restore work fine, though.
> >
>=20

Hi,
I at least found out what causes the trouble on my machine
even so I didn found a solution yet. A report:
I start the machine and the sounddriver is loaded fine
(alsasound status).
After starting the jack server and hydrogen for example i
have
got no sound comming out. When I open the alsamixer all the
settings are zero even so I stored them with
(/usr/sbin/alsactl store 0) the last time. So when I change
the dac of the alsamixer or do a (/usr/sbin/alsactl restore
0) I get sound out of the machine. When I stop alsasound and
start it again I get
the same errors than all the others.
[root@pygmalion erikos]# /etc/rc.d/init.d/alsasound start
Starting sound driver snd-ice1712                  [  OK  ]
Starting sequencer                                         [
 OK  ]
Restoring sound driver settings /usr/sbin/alsactl:
load_state:1272: No soundcards found...      [FAILED]

So I say that the /etc/asound.state can`t be loaded
properly. As far as I understand the script alsasound, it
does load as default (asound.state).=20

Best Regards=20
Simon

------_=_NextPart_001_01C562EB.FAA26156
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
6.5.7226.0">
<TITLE>Re: [PlanetCCRMA] Failure starting ALSA with an MAudio Delta =
66</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->

<P><FONT SIZE=3D2>Hi,<BR>
<BR>
I was getting the same problem, and I did some experimenting and found =
out the cause.&nbsp; Something takes a few seconds to load, so the =
command 'action &quot;Restoring sound driver settings&quot; $alsactl -f =
$asoundcfg restore' in /etc/init.d/alsasound fails because it happens =
right in the script, whereas the same command &quot;alsactl =
restore&quot; works because I type it in a few seconds later.<BR>
<BR>
There's a horrible hacky way to work around this: I added the line =
&quot;sleep 5&quot; (which makes the script wait for 5 seconds) to =
/etc/init.d/alsasound right before the line 'action &quot;Restoring =
sound driver settings&quot; $alsactl -f $asoundcfg restore'.&nbsp; It =
works now, but it takes an extra five seconds to load.<BR>
<BR>
Perhaps I should notify the alsa mailing list as well?<BR>
<BR>
--Mike George<BR>
<BR>
&gt;<BR>
&gt; I think I get the same behaviour with my Tascam USB<BR>
&gt; module. I could do store and restore and card 1 , but the<BR>
&gt; script failed. (the tascam only has hardware mixers so<BR>
&gt; store doesn't really do anything anyway). I just thought<BR>
&gt; the error wasn't a real problem - just looks untidy<BR>
&gt;<BR>
&gt; On Apr 1, 2005 4:25 AM, Brad Fuller &lt;brad@sonaural.com&gt;<BR>
&gt; &gt;&nbsp; wrote: Fernando Lopez-Lezcano wrote:<BR>
&gt; &gt;&nbsp; On Thu, 2005-03-31 at 07:13, Brad Fuller wrote:<BR>
&gt; &gt;&nbsp;<BR>
&gt; &gt;&nbsp;<BR>
&gt; &gt;&nbsp; Fernando Lopez-Lezcano wrote:<BR>
&gt; &gt;&nbsp;<BR>
&gt; &gt;&nbsp;<BR>
&gt; &gt;&nbsp; On Mon, 2005-01-17 at 19:09, Brent Durbin wrote:<BR>
&gt; &gt;&nbsp;<BR>
&gt; &gt;&nbsp;<BR>
&gt; &gt;&nbsp;<BR>
&gt; &gt;&nbsp; Hi All,<BR>
&gt; &gt; I'm new to the whole Linux Audio thing and was hoping<BR>
&gt; &gt; you could help me out. I installed FC3 on my system that<BR>
&gt; &gt;&nbsp; has a MAudio Delta 66 card. I installed the =
PlanetCCRMA<BR>
&gt; &gt; stuff and updated to the Planet Edge so I could get ALSA<BR>
&gt; &gt; 1.0.8. When I do and alsasound restart I get: Shutting<BR>
&gt; &gt; down sound driver [ OK ] Starting sound driver<BR>
&gt; &gt; snd-ice1712 [ OK ] Starting sequencer [ OK ]<BR>
&gt; &gt; Restoring sound driver settings /usr/sbin/alsactl:<BR>
&gt; &gt; load_state:1267: No soundcards found...<BR>
&gt; &gt;&nbsp; [FAILED]<BR>
&gt; &gt;<BR>
&gt; &gt; Can anyone give me a clue as to what I should look at to<BR>
&gt; &gt; figure out what is wrong? Could it be a problem with<BR>
&gt; &gt; /etc/modprobe.conf? Here are the relevant lines:<BR>
&gt; &gt; alias snd-card-0 snd-ice1712<BR>
&gt; &gt; options snd-card-0 index=3D0<BR>
&gt; &gt; install snd-ice1712 /sbin/modprobe --ignore-install<BR>
&gt; &gt; snd-ice1712 &amp;&amp; /usr/sbin/alsactl restore &gt;/dev/null =
2&gt;&amp;1<BR>
&gt; &gt; || : remove snd-ice1712 { /usr/sbin/alsactl store<BR>
&gt; &gt; &gt;/dev/null 2&gt;&amp;1 || : ; }; /sbin/modprobe -r<BR>
&gt; &gt; --ignore-remove snd-ice1712<BR>
&gt; &gt; Also, envy24control starts, so I am pretty sure that I'm<BR>
&gt; &gt; using the correct kernel.<BR>
&gt; &gt;&nbsp;<BR>
&gt; &gt;&nbsp;<BR>
&gt; &gt;&nbsp; Meaning that the kernel module for the card is =
loaded<BR>
&gt; &gt; and the card is seen by envy24control? If so, you just<BR>
&gt; &gt; probably need to store the state of the mixer (some<BR>
&gt; &gt; settings and/or controls may have changed in the new<BR>
&gt; &gt;&nbsp; alsa). Do: /usr/sbin/alsactl store<BR>
&gt; &gt; And then:<BR>
&gt; &gt;&nbsp; /usr/sbin/alsactl restore<BR>
&gt; &gt; It should not complain anymore...<BR>
&gt; &gt;&nbsp;<BR>
&gt; &gt;&nbsp;<BR>
&gt; &gt;&nbsp; Just want to add that I also have a Delta66 and have<BR>
&gt; &gt; the same problem. I've done the store/restore but still<BR>
&gt; &gt; it doesn't remember. I too receive the following error<BR>
&gt; &gt; when restarting alsa:<BR>
&gt; &gt; Restoring sound driver settings /usr/sbin/alsactl:<BR>
&gt; &gt; load_state:1272: No soundcards found... [FAILED]<BR>
&gt; &gt;<BR>
&gt; &gt; This seems to be a msg that should go to the ALSA dist<BR>
&gt; &gt;&nbsp; list.<BR>
&gt; &gt;&nbsp; Have you tried to redo the mixer state from scratch?<BR>
&gt; &gt; Delete or move away /etc/asound.state, then fire your<BR>
&gt; &gt; mixer, get the settings done and &quot;/usr/bin/alsactl<BR>
&gt; &gt; store&quot;.<BR>
&gt; &gt; -- Fernando<BR>
&gt; &gt;&nbsp;<BR>
&gt; &gt;&nbsp; just tried what you suggested. no change.<BR>
&gt; &gt;&nbsp;<BR>
&gt; &gt;&nbsp; /usr/sbin/alsactl store and restore work fine, =
though.<BR>
&gt; &gt;<BR>
&gt;<BR>
<BR>
Hi,<BR>
I at least found out what causes the trouble on my machine<BR>
even so I didn found a solution yet. A report:<BR>
I start the machine and the sounddriver is loaded fine<BR>
(alsasound status).<BR>
After starting the jack server and hydrogen for example i<BR>
have<BR>
got no sound comming out. When I open the alsamixer all the<BR>
settings are zero even so I stored them with<BR>
(/usr/sbin/alsactl store 0) the last time. So when I change<BR>
the dac of the alsamixer or do a (/usr/sbin/alsactl restore<BR>
0) I get sound out of the machine. When I stop alsasound and<BR>
start it again I get<BR>
the same errors than all the others.<BR>
[root@pygmalion erikos]# /etc/rc.d/init.d/alsasound start<BR>
Starting sound driver =
snd-ice1712&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [&nbsp; OK&nbsp; ]<BR>
Starting =
sequencer&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [<BR>
&nbsp;OK&nbsp; ]<BR>
Restoring sound driver settings /usr/sbin/alsactl:<BR>
load_state:1272: No soundcards found...&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
[FAILED]<BR>
<BR>
So I say that the /etc/asound.state can`t be loaded<BR>
properly. As far as I understand the script alsasound, it<BR>
does load as default (asound.state).<BR>
<BR>
Best Regards<BR>
Simon</FONT>
</P>

</BODY>
</HTML>
------_=_NextPart_001_01C562EB.FAA26156--