From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pavel Hofman Subject: Re: ICE1724 - File descriptor in bad state when capturing Date: Tue, 11 Mar 2008 16:21:58 +0100 Message-ID: <47D6A396.9000902@insite.cz> References: <47D46B01.8020009@insite.cz> <47D5AA82.4080009@insite.cz> <47D63632.60808@ladisch.de> <47D63D6A.10503@insite.cz> <47D6A111.8010608@ladisch.de> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from prague.insite.cz (r3g29.net.upc.cz [213.220.198.29]) by alsa0.perex.cz (Postfix) with ESMTP id E3A8624402 for ; Tue, 11 Mar 2008 16:22:03 +0100 (CET) In-Reply-To: <47D6A111.8010608@ladisch.de> 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: Clemens Ladisch Cc: ALSA Developers List-Id: alsa-devel@alsa-project.org Clemens Ladisch napsal(a): > Pavel Hofman wrote: >> Clemens Ladisch wrote: >>> Pavel Hofman wrote: >>>> Whereas for the broken analog input, the sequence is >>>> >>>> 1. snd_pcm_lib_read1 with SNDRV_PCM_STATE_PREPARED - returns 0 >>>> 2. snd_pcm_lib_read1 with SNDRV_PCM_STATE_SETUP - returns -EBADFD >>> I'd guess that your trigger callback fails somehow, bit this is >>> hard to determine without the source code. >> Thanks, I will do more testing in the evening. Just in case, I am >> including the relevant files. I moved all rate-relevant stuff to >> card-specific routines, redefined in juli.c. The trigger code was not >> changed at all. >> >> Perhaps those new snd_pcm_hardware structs in juli.c (I do not know the >> exact meaning of the _bytes_ ones)? > > These values are in bytes (and not in frames). > > It's possible that the AK4114 code stops the stream because it thinks > that the input sample rate has changed. Try uncommenting the printk > in i2c/other/ak4114.c. Thanks, I will try that. I can even check with the whole AK4114 creation code commented out. Would the SPDIF receiver code stop the analog capture stream too? The digital capture stream works fine. Thanks, Pavel. > > > Regards, > Clemens > _______________________________________________ > Alsa-devel mailing list > Alsa-devel@alsa-project.org > http://mailman.alsa-project.org/mailman/listinfo/alsa-devel -- ----------------- inSITE, s.r.o. Kafkova 16, 160 00 Praha 6 Rubesova 29, 326 00 Plzen Tel., fax: +420 - 37 - 74 493 58 GSM: +420 - 603 - 163 973 Email: pavel.hofman@insite.cz www.educity.cz, www.insite.cz www.meetings.cz, www.hrzive.cz www.comben.cz, www.hr-online.cz ------------------------------- Navstivte www.educity.cz, server s nejvetsi nabidkou profesniho vzdelavani na ceskem internetu.