From mboxrd@z Thu Jan 1 00:00:00 1970 From: Takashi Iwai Subject: Re: ICE1724 - File descriptor in bad state when capturing Date: Mon, 10 Mar 2008 12:08:36 +0100 Message-ID: References: <47D46B01.8020009@insite.cz> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mx2.suse.de (mx2.suse.de [195.135.220.15]) by alsa0.perex.cz (Postfix) with ESMTP id EC4E924433 for ; Mon, 10 Mar 2008 12:08:36 +0100 (CET) In-Reply-To: <47D46B01.8020009@insite.cz> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: alsa-devel-bounces@alsa-project.org Errors-To: alsa-devel-bounces@alsa-project.org To: Pavel Hofman Cc: alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org At Sun, 09 Mar 2008 23:56:01 +0100, Pavel Hofman wrote: > > Hi, > > I have most of the ESI Juli driver working, but I have hit a problem > with the capture stream. I had to modify some ice1724.c code to allow > redefining clock-related functions in the actual card file (Juli has a > different clocking scheme), but all the DMA code is left intact, as well > as the methods defining the capture stream. > > The ice1724 vu-meters detect input ADC data, I can hear correct sound > when setting the internal mixer to H/W-In. Yet, when trying to record, I get > > arecord -v -D hw:0,0,0 -r 44100 -f S32_LE -c2 > > .... > RIFF$WAVEfmt ... data arecord: pcm_read:1346: read error: File > descriptor in bad state It's -EBADFD and indicates that the PCM state isn't the expected one, in this case, SNDRV_PCM_STATE_PREPARED or RUNNING. The error comes from snd_pcm_capture_ioctl1() in core/pcm_native.c. Not sure what is broken, but this should be the starting point. Takashi