All of lore.kernel.org
 help / color / mirror / Atom feed
* pcm_oss: Can period_bytes - buffer_used be less than 0?
@ 2009-03-04 15:32 Roel Kluin
  2009-03-05  7:57 ` Takashi Iwai
  0 siblings, 1 reply; 2+ messages in thread
From: Roel Kluin @ 2009-03-04 15:32 UTC (permalink / raw)
  To: tiwai; +Cc: alsa-devel

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?

Roel

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: pcm_oss: Can period_bytes - buffer_used be less than 0?
  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
  0 siblings, 0 replies; 2+ messages in thread
From: Takashi Iwai @ 2009-03-05  7:57 UTC (permalink / raw)
  To: Roel Kluin; +Cc: alsa-devel

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-03-05  7:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 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.