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: Mon, 10 Jun 2002 16:22:27 +0200 [thread overview]
Message-ID: <s5hofej2oyk.wl@alsa2.suse.de> (raw)
In-Reply-To: <Pine.LNX.4.21.0206042226500.21633-200000@summer.quitte>
At Tue, 4 Jun 2002 23:10:20 +0200 (CEST),
Tim Goetze wrote:
>
> Takashi Iwai wrote:
>
> [...]
>
> >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?
>
> yes i could, but i won't if you don't insist (they don't change anyway
> iirc). instead i have done some more investigations:
>
> remember capture + play are linked, and audio data has been written.
> now draining the playback stream *always* fails in the way already
> described.
oh, then it's related with the linkage...
> consequences: if you close capture first and then playback, things
> work ok. if you unlink the streams before closing them, things work
> ok, and the order of closing does not matter.
>
> i have attached testing boilerplate code that you can use to
> reproduce the error.
thanks, i'll test this later.
Takashi
_______________________________________________________________
Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas - http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink
prev parent reply other threads:[~2002-06-10 14:22 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
2002-06-04 21:10 ` Tim Goetze
2002-06-10 14:22 ` Takashi Iwai [this message]
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=s5hofej2oyk.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