From alsa-user-owner@alsa.jcu.cz  Thu Jan 21 02:56:02 1999
Received: from telesoft.com (mail.telesoft.com [207.98.129.43])
	by marvin.jcu.cz (8.9.1a/8.9.1) with ESMTP id CAA08938
	for <alsa-user@alsa.jcu.cz>; Thu, 21 Jan 1999 02:54:11 +0100
Received: from goodnet.com (d15-31.phoenix.goodnet.com [209.141.96.160])
	by telesoft.com (8.8.5/8.8.5) with ESMTP id SAA31738
	for <alsa-user@alsa.jcu.cz>; Wed, 20 Jan 1999 18:57:31 -0700
Message-ID: <36A688EE.24270E1A@goodnet.com>
Date: Thu, 21 Jan 1999 01:54:54 +0000
From: Scott Dudley <scottd@goodnet.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

Kayvan,

I applied the patch but even though alsactl now exits 0, it still doesn't work.
Here's what my line looks like:

post-install snd-sb16 /usr/sbin/alsactl restore

Does this work for anyone?


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>.

--
Regards,

Scott Dudley




