All of lore.kernel.org
 help / color / mirror / Atom feed
* aplay bug?
@ 2003-11-27  3:02 Eliot Blennerhassett
  2003-11-27 11:08 ` Takashi Iwai
  0 siblings, 1 reply; 2+ messages in thread
From: Eliot Blennerhassett @ 2003-11-27  3:02 UTC (permalink / raw)
  To: alsa-devel

At line 200 of aplay.c (1.0.0pre3)
		if ((err = snd_ctl_open(&handle, name, 0)) < 0) {
			error("control open (%i): %s", card, snd_strerror(err));
			continue;
		}
if this error occurs, 'card' is never updated, the while loop becomes infinite.
because this bit from the end of the while loop is missed by the continue:

			if (snd_card_next(&card) < 0) {
			    error("snd_card_next");
			    break;
			}

I see this problem because when I load alsa drivers, I don't get the correct
permissions on files in /dev (I think).

Just found that the specific problem is that directory /dev/snd has permissions 
drw-rw----, should be drwxrwx--x

Can anybody help me about where this is configured?
I have options snd device_mode=0660 in my modules.conf which seems right for the
actual device files inside /dev/snd - is this wrong...?

thanks


Eliot Blennerhassett
AudioScience Inc.
--
Junk footer beyond this point. Read at your own risk.


-------------------------------------------------------------
Sign up for ICQmail at http://www.icq.com/icqmail/signup.html


-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: aplay bug?
  2003-11-27  3:02 aplay bug? Eliot Blennerhassett
@ 2003-11-27 11:08 ` Takashi Iwai
  0 siblings, 0 replies; 2+ messages in thread
From: Takashi Iwai @ 2003-11-27 11:08 UTC (permalink / raw)
  To: Eliot Blennerhassett; +Cc: alsa-devel

At Wed, 26 Nov 2003 19:02:48 -0800 (PST),
Eliot Blennerhassett wrote:
> 
> At line 200 of aplay.c (1.0.0pre3)
> 		if ((err = snd_ctl_open(&handle, name, 0)) < 0) {
> 			error("control open (%i): %s", card, snd_strerror(err));
> 			continue;
> 		}
> if this error occurs, 'card' is never updated, the while loop becomes infinite.
> because this bit from the end of the while loop is missed by the continue:
> 
> 			if (snd_card_next(&card) < 0) {
> 			    error("snd_card_next");
> 			    break;
> 			}
> 
> I see this problem because when I load alsa drivers, I don't get the correct
> permissions on files in /dev (I think).

yes, that's a bug.  thanks for pointing out.
fixed on cvs now.


Takashi


-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-11-27 11:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-11-27  3:02 aplay bug? Eliot Blennerhassett
2003-11-27 11:08 ` Takashi Iwai

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.