From alsa-user-owner@alsa.jcu.cz  Mon Jan 18 05:02:01 1999
Received: from simons.tabor.edu (simons.tabor.edu [198.248.166.181])
	by marvin.jcu.cz (8.9.1a/8.9.1) with ESMTP id EAA00682
	for <alsa-user@alsa.jcu.cz>; Mon, 18 Jan 1999 04:59:59 +0100
Received: from unforgettable.com ([198.248.166.88])
          by simons.tabor.edu (8.8.4/8.8.4) with ESMTP
	  id VAA24445 for <alsa-user@alsa.jcu.cz>; Sun, 17 Jan 1999 21:31:29 -0600
Message-ID: <36A2B1CC.BDD25A5E@unforgettable.com>
Date: Mon, 18 Jan 1999 04:00:12 +0000
From: Jesse Kaufman <kaufmjes@unforgettable.com>
MIME-Version: 1.0
To: alsa-user@alsa.jcu.cz
Subject: Re: Sound Muted by Default
References: <369FF621.85CDD60F@goodnet.com>
		<Pine.LNX.4.04.9901171755120.1331-100000@syrjala.pp.sci.fi> <13986.21189.379960.12521@satyr.sylvan.com>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Reply-To: alsa-user@alsa.jcu.cz
Sender: alsa-user-owner@alsa.jcu.cz
Precedence: list

please excuse my ignorance, but how do i apply that patch...  i think my problem is
when i shutdown / restart, alsasound exits abnormally, and the settings aren't saved
correcty, as when i manually start / restart alsa, my settings work fine...

jesse

Kayvan Aghaiepour Sylvan wrote:

> >> Folks,
> >>
> >> I'm loving Alsa!  I have however but one irritating problem.  As you'll
> >> see below, I have pre and post conditions in /etc/conf.modules to store
> >> and restore settings using alsactl however, it doesn't work.  Can anyone
> >> suggest what may be wrong?
>
> >
> >Hi,
> >The Kerneld mini-howto states that the post-install option can be used,
> >but the pre-remove options doesn't exist. I myself tried the post-install
> >option but it didn't work. I think that's because I'm using kmod and not
> >kerneld.
>
> I just looked into this.
>
> I tried the following in my /etc/conf.modules:
>
>     post-install snd-interwave /usr/sbin/alsactl restore
>     pre-remove snd-interwave /usr/sbin/alsactl store
>
> When I tried it, modprobe complains with the message
> "pre-remove snd-interwave failed".
>
> The reason for the failure is simply that alsactl exits with a
> nonzeror return status. This patch fixes this bug.
>
> Index: alsactl.c
> ===================================================================
> RCS file: /home/alsa/cvsroot/alsa-utils/alsactl/alsactl.c,v
> retrieving revision 1.6
> diff -u -u -r1.6 alsactl.c
> --- alsactl.c   1998/11/27 15:13:57     1.6
> +++ alsactl.c   1999/01/17 21:06:19
> @@ -198,8 +198,7 @@
>                 return 0;
>         }
>         if (!strcmp(argv[optind], "store")) {
> -               return store_setup(argc - optind > 1 ? argv[optind + 1] : NULL) ?
> -                   0 : 1;
> +               return store_setup(argc - optind > 1 ? argv[optind + 1] : NULL) ;
>         } else if (!strcmp(argv[optind], "restore")) {
>                 return restore_setup(argc - optind > 1 ? argv[optind + 1] : NULL) ?
>                     0 : 1;
> ------
> To unsubscribe from <alsa-user@alsa.jcu.cz> mailing list send message
> 'unsubscribe' in the body of message to <alsa-user-request@alsa.jcu.cz>.

--
"If we don't stand up to Micro$oft, who will?"
     - The Boycott Micro$oft Web Page

http://www.cs.berkeley.edu/~mdw/boycott/




