From mboxrd@z Thu Jan 1 00:00:00 1970 From: Takashi Iwai Subject: Re: snd_pcm_close hangs Date: Tue, 04 Jun 2002 19:05:30 +0200 Sender: alsa-devel-admin@lists.sourceforge.net Message-ID: References: Mime-Version: 1.0 (generated by SEMI 1.14.3 - "Ushinoya") Content-Type: text/plain; charset=US-ASCII Return-path: Received: from Cantor.suse.de (ns.suse.de [213.95.15.193]) by alsa.alsa-project.org (8.9.3/8.9.3/SuSE Linux 8.9.3-0.1) with ESMTP id TAA11312 for ; Tue, 4 Jun 2002 19:05:38 +0200 In-Reply-To: Errors-To: alsa-devel-admin@lists.sourceforge.net List-Help: List-Post: List-Subscribe: , List-Unsubscribe: , List-Archive: To: Tim Goetze Cc: alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org At Mon, 3 Jun 2002 19:48:56 +0200 (CEST), Tim Goetze wrote: > > unfortunately the bug remains, it only manifests differently. > > after initializing the ice (cap + play are linked): > > [~] cat /proc/asound/ice/pcm0p/sub0/hw_params > access: MMAP_INTERLEAVED > format: S32_LE > subformat: STD > channels: 10 > rate: 44100 (44100/1) > period_size: 128 > buffer_size: 256 > tick_time: 10000 > > [~] cat /proc/asound/ice/pcm0p/sub0/sw_params > tstamp_mode: NONE > period_step: 1 > sleep_min: 0 > avail_min: 128 > xfer_align: 128 > start_threshold: 4294967295 > stop_threshold: 256 > silence_threshold: 0 > silence_size: 0 > boundary: 1073741824 > > [~] cat /proc/asound/ice/pcm0p/sub0/status > state: PREPARED > trigger_time: 0.000000 > tstamp : 1023125218.959946 > delay : 36548963 > avail : 0 > avail_max : 0 > ----- > hw_ptr : 0 > appl_ptr : 256 so far, so good.. > calling snd_pcm_close() takes a few seconds during which i see > this: > > [~] cat /proc/asound/ice/pcm0p/sub0/status > state: DRAINING > trigger_time: 1023125380.999721 > tstamp : 1023125381.905192 > delay : -39746 > avail : 40002 > avail_max : 40002 > ----- > hw_ptr : 40002 > appl_ptr : 256 the minus delay value is definitely wrong. something weird goes there... could you check sw_params during this happens? Takashi ps. i'll be at linuxtag, so the next answer will be delayed to the next week. _______________________________________________________________ Don't miss the 2002 Sprint PCS Application Developer's Conference August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm