From mboxrd@z Thu Jan 1 00:00:00 1970 From: Takashi Iwai Subject: Re: aplay bug? Date: Thu, 27 Nov 2003 12:08:08 +0100 Sender: alsa-devel-admin@lists.sourceforge.net Message-ID: References: <20031126190248.9916.h006.c012.wm@mail.icqmail.com.criticalpath.net> Mime-Version: 1.0 (generated by SEMI 1.14.5 - "Awara-Onsen") Content-Type: text/plain; charset=US-ASCII Return-path: In-Reply-To: <20031126190248.9916.h006.c012.wm@mail.icqmail.com.criticalpath.net> Errors-To: alsa-devel-admin@lists.sourceforge.net List-Help: List-Post: List-Subscribe: , List-Unsubscribe: , List-Archive: To: Eliot Blennerhassett Cc: alsa-devel@lists.sourceforge.net List-Id: alsa-devel@alsa-project.org 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/