From: Takashi Iwai <tiwai@suse.de>
To: Roel Kluin <roel.kluin@gmail.com>
Cc: alsa-devel@alsa-project.org
Subject: Re: pcm_oss: Can period_bytes - buffer_used be less than 0?
Date: Thu, 05 Mar 2009 08:57:08 +0100 [thread overview]
Message-ID: <s5hprgwflm3.wl%tiwai@suse.de> (raw)
In-Reply-To: <49AE9F07.1000904@gmail.com>
At Wed, 04 Mar 2009 16:32:23 +0100,
Roel Kluin wrote:
>
> vi sound/core/oss/pcm_oss.c +1572 (in linus' git tree) and note:
>
> static int snd_pcm_oss_sync(struct snd_pcm_oss_file *pcm_oss_file)
> {
> ...
> size_t size;
> ... :1608
> size = runtime->oss.period_bytes - runtime->oss.period_ptr;
>
> can this period_bytes - buffer_used become less than 0?
You mean "period_bytes - period_ptr"?
Then no, period_ptr is always smaller than period_bytes.
Takashi
prev parent reply other threads:[~2009-03-05 7:57 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-04 15:32 pcm_oss: Can period_bytes - buffer_used be less than 0? Roel Kluin
2009-03-05 7:57 ` 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=s5hprgwflm3.wl%tiwai@suse.de \
--to=tiwai@suse.de \
--cc=alsa-devel@alsa-project.org \
--cc=roel.kluin@gmail.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.