From mboxrd@z Thu Jan 1 00:00:00 1970 From: Takashi Iwai Subject: Re: ice1712, snd_pcm_mmap_readi(), POLLERR in poll_revents Date: Fri, 16 May 2003 17:04:59 +0200 Sender: alsa-devel-admin@lists.sourceforge.net Message-ID: References: <5.1.0.14.2.20030516153136.032daf08@pop.gmx.net> Mime-Version: 1.0 (generated by SEMI 1.14.4 - "Hosorogi") Content-Type: text/plain; charset=US-ASCII Return-path: In-Reply-To: <5.1.0.14.2.20030516153136.032daf08@pop.gmx.net> Errors-To: alsa-devel-admin@lists.sourceforge.net List-Help: List-Post: List-Subscribe: , List-Unsubscribe: , List-Archive: To: Peter Vollmer Cc: alsa-devel@lists.sourceforge.net List-Id: alsa-devel@alsa-project.org At Fri, 16 May 2003 16:03:48 +0200, Peter Vollmer wrote: > > Hi all, > > I am still trying to get the ice1712-based soundcard to work on an embedded > platform, using alsa driver/lib 0.9.3 > While capturing works for hw:0,0 (multitrack mode) using snd_pcm_readi(), I > get an -EIO when capturing with snd_pcm_mmap_readi(), immediatly after the > buffer is filled up with 4 periods. > I tracked the problem down to the snd_read_areas() function, where > snd_pcm_wait(pcm,-1) returns -EIO (detection of POLLERR in revents), > waiting for the soundcard to become ready. at first you should check in which state the pcm stream is when poll() returns the error. alsa-lib code checks the normal errors (XRUN and SUSPENDED) but the other status are handled as it is. ciao, Takashi ------------------------------------------------------- Enterprise Linux Forum Conference & Expo, June 4-6, 2003, Santa Clara The only event dedicated to issues related to Linux enterprise solutions www.enterpriselinuxforum.com