From: Takashi Iwai <tiwai@suse.de>
To: Peter Vollmer <remllov_@gmx.de>
Cc: alsa-devel@lists.sourceforge.net
Subject: Re: ice1712, snd_pcm_mmap_readi(), POLLERR in poll_revents
Date: Fri, 16 May 2003 17:04:59 +0200 [thread overview]
Message-ID: <s5hfznfdjac.wl@alsa2.suse.de> (raw)
In-Reply-To: <5.1.0.14.2.20030516153136.032daf08@pop.gmx.net>
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
next prev parent reply other threads:[~2003-05-16 15:04 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-05-16 14:03 ice1712, snd_pcm_mmap_readi(), POLLERR in poll_revents Peter Vollmer
2003-05-16 15:04 ` Takashi Iwai [this message]
2003-05-16 15:52 ` Peter Vollmer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=s5hfznfdjac.wl@alsa2.suse.de \
--to=tiwai@suse.de \
--cc=alsa-devel@lists.sourceforge.net \
--cc=remllov_@gmx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox