From alsa-user-owner@alsa.jcu.cz  Sun Jan 31 15:28:47 1999
Received: from pluto.andeby (IDENT:ahermans@t2o212p6.telia.com [195.204.226.66])
	by marvin.jcu.cz (8.9.1a/8.9.1) with ESMTP id PAA04844
	for <alsa-user@alsa.jcu.cz>; Sun, 31 Jan 1999 15:26:25 +0100
Received: from localhost (ahermans@localhost)
	by pluto.andeby (8.8.7/8.8.7) with ESMTP id PAA15874;
	Sun, 31 Jan 1999 15:27:01 +0100
Date: Sun, 31 Jan 1999 15:27:01 +0100 (CET)
From: Anders Semb Hermansen <ahermans@vf.telia.no>
To: Pug Fantus <pug_fantus@usa.net>
cc: alsa-user@alsa.jcu.cz
Subject: Re: Can't access mixer 1/0 ?
In-Reply-To: <36B44134.A0D0AE2E@usa.net>
Message-ID: <Pine.LNX.4.04.9901311519200.15758-100000@pluto.andeby>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Reply-To: alsa-user@alsa.jcu.cz
Sender: alsa-user-owner@alsa.jcu.cz
Precedence: list

On Sun, 31 Jan 1999, Pug Fantus wrote:

> Daniele Malleo wrote:
> 
> > Greetings,
> > It seems like I'm collecting all possible error messages from this alsa
> > mixer...
> > After having fixed the "sharing libraries" this is what happens when
> > I type amixer:
> >
> > Can't access mixer 1/0
> > Failed to open mixer device
> >
> > What does it mean? How do I fix it?
> > As before, the kde mixer does indeed start and initiallyt sets all
> > values to 0. But even raising all the sliders doesn't help: no sound
> > comes out.
> >
> > Still needing help,
> >
> > Dan
> >
> 
> I'm now getting that error with wmmixer-alsa, if I try to start it as a
> user.  It loads fine if root runs it.
> 

Wmmixer-alsa uses code from amixer to open mixer device. (It uses
alsa-lib)

You could try the following patch and see what error message
snd_mixer_open returns.

diff -uNr wmmixer-alsa-0.4.orig/amixer.cc wmmixer-alsa-0.4/amixer.cc
--- wmmixer-alsa-0.4.orig/amixer.cc     Wed Dec 30 14:46:34 1998
+++ wmmixer-alsa-0.4/amixer.cc  Sun Jan 31 15:24:36 1999
@@ -29,10 +29,12 @@

 Mixer::Mixer(int card, int device)
 {
+       int err;
        mixer_handle = NULL;

-       if (snd_mixer_open(&mixer_handle, card, device) < 0) {
+       if (err=snd_mixer_open(&mixer_handle, card, device) < 0) {
                fprintf(stderr, "Can't access mixer %i/%i\n", card+1,
device);
+               fprintf(stderr, "%s\n", snd_strerror(err));
                mixer_status = ~E_MIXER_SUCCESS;
                return;
        }


> 
> --
> pugfantus  --  #linuxlounge EfNet  --  http://members.xoom.com/pugfantus
> 
> "I can't understand why people are frightened of new ideas.  I'm frightened
> of the old ones."                       -- John Cage
> 
> 
> 
> ------
> 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>.
> 

Hope this helps,

Anders

--
Anders Semb Hermansen
E-Mail: <ahermans@vf.telia.no>
Cellmail: <93802837@sms.netcom.no>



