* how to find the maximum fragment size for SNDCTL_DSP_SETFRAGMENT?
@ 2000-06-08 18:26 Britton
2000-06-08 21:59 ` Hannu Savolainen
2000-06-08 22:25 ` Britton
0 siblings, 2 replies; 3+ messages in thread
From: Britton @ 2000-06-08 18:26 UTC (permalink / raw)
To: linux-sound
The guide of 4front's web page says total_buffer_size/2. I know the
kernel buffer size used to be defined at kernel compile time. How does
one go about determining it now? DSP_GETBLKSZ? Does DSP_GETBLKSZ still
fix the block size so that the device must be closed and opened again in
order to set the fragment size?
Britton Kerin
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: how to find the maximum fragment size for SNDCTL_DSP_SETFRAGMENT?
2000-06-08 18:26 how to find the maximum fragment size for SNDCTL_DSP_SETFRAGMENT? Britton
@ 2000-06-08 21:59 ` Hannu Savolainen
2000-06-08 22:25 ` Britton
1 sibling, 0 replies; 3+ messages in thread
From: Hannu Savolainen @ 2000-06-08 21:59 UTC (permalink / raw)
To: linux-sound
On Thu, 8 Jun 2000, Britton wrote:
>
> The guide of 4front's web page says total_buffer_size/2. I know the
> kernel buffer size used to be defined at kernel compile time. How does
> one go about determining it now? DSP_GETBLKSZ?
Wy would you need this information?
If you like to get as large fragments as possible just set the fragment
size to very big. The driver will then select the largest one it could
support.
However changing the fragment size bigger than the default doesn't give
any benefit. You can always write/read multiple fragments at time to get
the same effect.
> Does DSP_GETBLKSZ still
> fix the block size so that the device must be closed and opened again in
> order to set the fragment size?
This is the current and future behaviour.
Best regards,
Hannu
-----
Hannu Savolainen (hannu@opensound.com)
http://www.opensound.com (Open Sound System (OSS))
http://www.compusonic.fi (Finnish OSS pages)
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: how to find the maximum fragment size for SNDCTL_DSP_SETFRAGMENT?
2000-06-08 18:26 how to find the maximum fragment size for SNDCTL_DSP_SETFRAGMENT? Britton
2000-06-08 21:59 ` Hannu Savolainen
@ 2000-06-08 22:25 ` Britton
1 sibling, 0 replies; 3+ messages in thread
From: Britton @ 2000-06-08 22:25 UTC (permalink / raw)
To: linux-sound
On Fri, 9 Jun 2000, Hannu Savolainen wrote:
> On Thu, 8 Jun 2000, Britton wrote:
>
> >
> > The guide of 4front's web page says total_buffer_size/2. I know the
> > kernel buffer size used to be defined at kernel compile time. How does
> > one go about determining it now? DSP_GETBLKSZ?
> Wy would you need this information?
I'm letting my users specify the fragment size, and I try to check things
like whether what they specify is out of range before actually making the
syscall.
> If you like to get as large fragments as possible just set the fragment
> size to very big. The driver will then select the largest one it could
> support.
Ok, I didn't know it would do that. I guess there is no real reason the
user needs to know if their large fragment size was not actually set (they
already get a warning if the fragment size they request is big enough that
it will likely cause latency). That behavior might be something to add to
the 4front page.
> However changing the fragment size bigger than the default doesn't give
> any benefit. You can always write/read multiple fragments at time to get
> the same effect.
>
> > Does DSP_GETBLKSZ still
> > fix the block size so that the device must be closed and opened again in
> > order to set the fragment size?
> This is the current and future behaviour.
Thanks,
Britton
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2000-06-08 22:25 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-06-08 18:26 how to find the maximum fragment size for SNDCTL_DSP_SETFRAGMENT? Britton
2000-06-08 21:59 ` Hannu Savolainen
2000-06-08 22:25 ` Britton
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox