From: Takashi Iwai <tiwai@suse.de>
To: Tim Goetze <tim@quitte.de>
Cc: alsa-devel@alsa-project.org
Subject: Re: snd_pcm_close hangs
Date: Tue, 04 Jun 2002 19:05:30 +0200 [thread overview]
Message-ID: <s5h660zdlet.wl@alsa2.suse.de> (raw)
In-Reply-To: <Pine.LNX.4.21.0206031920560.761-100000@summer.quitte>
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
next prev parent reply other threads:[~2002-06-04 17:05 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-05-30 15:14 snd_pcm_close hangs Tim Goetze
2002-05-30 23:19 ` cvs not compiling cleanly Fernando Pablo Lopez-Lezcano
2002-05-31 3:27 ` Patrick Shirkey
2002-05-31 8:35 ` Takashi Iwai
2002-05-31 8:42 ` snd_pcm_close hangs Takashi Iwai
2002-05-31 17:06 ` Tim Goetze
2002-05-31 23:49 ` Tim Goetze
2002-06-01 0:57 ` Tim Goetze
2002-06-01 11:22 ` Tim Goetze
2002-06-03 13:36 ` Takashi Iwai
2002-06-03 14:47 ` Tim Goetze
2002-06-03 17:48 ` Tim Goetze
2002-06-04 17:05 ` Takashi Iwai [this message]
2002-06-04 21:10 ` Tim Goetze
2002-06-10 14:22 ` Takashi Iwai
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=s5h660zdlet.wl@alsa2.suse.de \
--to=tiwai@suse.de \
--cc=alsa-devel@alsa-project.org \
--cc=tim@quitte.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