From mboxrd@z Thu Jan 1 00:00:00 1970 From: Takashi Iwai Subject: Re: snd_pcm_wait returning EPIPE Date: Mon, 11 Oct 2004 12:18:44 +0200 Sender: alsa-devel-admin@lists.sourceforge.net Message-ID: References: <20041007152634.GK12858@zewt.org> Mime-Version: 1.0 (generated by SEMI 1.14.5 - "Awara-Onsen") Content-Type: text/plain; charset=US-ASCII Return-path: Received: from Cantor.suse.de (cantor.suse.de [195.135.220.2]) by alsa.alsa-project.org (ALSA's E-mail Delivery System) with ESMTP id 7CE832BF for ; Mon, 11 Oct 2004 12:24:38 +0200 (MEST) In-Reply-To: <20041007152634.GK12858@zewt.org> Errors-To: alsa-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: Glenn Maynard Cc: alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org At Thu, 7 Oct 2004 11:26:34 -0400, Glenn Maynard wrote: > > I've disabled the underrun state, eg. setting > snd_pcm_sw_params_set_stop_threshold to dsnd_pcm_sw_params_get_boundary, > which results in EPIPE never being returned from snd_pcm_wait (as I wanted), > so I can handle underruns myself. I'm opening hw:0 directly, to avoid > resampling. > > However, I'm receiving a report of a system returning EPIPE: > > https://sourceforge.net/tracker/index.php?func=detail&aid=1035604&group_id=37892&atid=421366 > https://sourceforge.net/tracker/download.php?group_id=37892&atid=421366&file_id=103978&aid=1035604 > > This is apparently on an x86-64 system. > > Is this a known problem? Am I probably doing something wrong that just > happens to usually work? I'm treating EPIPE as an unexpected condition, > since it's not clear why it would happen here; should I have it call > snd_pcm_prepare() and retry anyway? -EPIPE is usually buffer over/underrun (XRUN), so apps are supposed to call snd_pcm_prepare() after receiving this. Takashi ------------------------------------------------------- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl