From: Takashi Iwai <tiwai@suse.de>
To: Abramo Bagnara <abramo.bagnara@libero.it>
Cc: alsa-devel@lists.sourceforge.net
Subject: Re: Re: [alsa-cvslog] CVS: alsa-kernel/core pcm_lib.c,1.20,1.21
Date: Thu, 31 Oct 2002 11:10:10 +0100 [thread overview]
Message-ID: <s5h8z0ec41p.wl@alsa2.suse.de> (raw)
In-Reply-To: <3DC036C7.79DB33E6@libero.it>
At Wed, 30 Oct 2002 20:45:11 +0100,
Abramo Bagnara wrote:
>
> Takashi Iwai wrote:
> >
> > Update of /cvsroot/alsa/alsa-kernel/core
> > In directory usw-pr-cvs1:/tmp/cvs-serv13506
> >
> > Modified Files:
> > pcm_lib.c
> > Log Message:
> > fixed the infinite loop at capture-draining on oss-emulation.
> >
> > Index: pcm_lib.c
> > ===================================================================
> > RCS file: /cvsroot/alsa/alsa-kernel/core/pcm_lib.c,v
> > retrieving revision 1.20
> > retrieving revision 1.21
> > diff -u -r1.20 -r1.21
> > --- pcm_lib.c 12 Oct 2002 14:38:42 -0000 1.20
> > +++ pcm_lib.c 30 Oct 2002 18:12:46 -0000 1.21
> > @@ -2138,7 +2138,7 @@
> > snd_pcm_uframes_t frames, appl_ptr, appl_ofs;
> > snd_pcm_uframes_t avail;
> > snd_pcm_uframes_t cont;
> > - if (runtime->sleep_min == 0 && runtime->status->state == SNDRV_PCM_STATE_RUNNING)
> > + if (runtime->sleep_min == 0 && (runtime->status->state == SNDRV_PCM_STATE_RUNNING || runtime->status->state == SNDRV_PCM_STATE_DRAINING))
> > snd_pcm_update_hw_ptr(substream);
> > avail = snd_pcm_capture_avail(runtime);
> > if (runtime->status->state == SNDRV_PCM_STATE_DRAINING) {
>
> What are you trying to do here?
>
> What's the reason to call snd_pcm_update_hw_ptr when PCM is not running?
sorry, my mistake.
already fixed by Jaroslav.
Takashi (..needs vacation soon)
-------------------------------------------------------
This sf.net email is sponsored by: Influence the future
of Java(TM) technology. Join the Java Community
Process(SM) (JCP(SM)) program now.
http://ads.sourceforge.net/cgi-bin/redirect.pl?sunm0004en
prev parent reply other threads:[~2002-10-31 10:10 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <E186xKi-0003hi-00@usw-pr-cvs1.sourceforge.net>
2002-10-30 19:45 ` [alsa-cvslog] CVS: alsa-kernel/core pcm_lib.c,1.20,1.21 Abramo Bagnara
2002-10-31 10:10 ` 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=s5h8z0ec41p.wl@alsa2.suse.de \
--to=tiwai@suse.de \
--cc=abramo.bagnara@libero.it \
--cc=alsa-devel@lists.sourceforge.net \
/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