All of lore.kernel.org
 help / color / mirror / Atom feed
* pcm buffer size
@ 2004-05-25 10:17 Nicolas Hüppelshäuser
  2004-05-25 10:49 ` James Courtier-Dutton
  2004-05-25 12:07 ` Clemens Ladisch
  0 siblings, 2 replies; 3+ messages in thread
From: Nicolas Hüppelshäuser @ 2004-05-25 10:17 UTC (permalink / raw)
  To: alsa-devel


Hi!

I'm using alsa 1.0.4.  How can I get a larger alsa buffer size?  The
maximum size returned by snd_pcm_hw_params_get_buffer_size_max is too
small.  I found no module option and nothing apropriate within the driver
code.  Mainly I'm using the snd-usb-audio module but others are also of
interest.

best regards
	Nicolas Hueppelshaeuser
--
nicolas hueppelshaeuser, emlix gmbh, http://www.emlix.com,
mailto:nh@emlix.com




-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click

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

* Re: pcm buffer size
  2004-05-25 10:17 pcm buffer size Nicolas Hüppelshäuser
@ 2004-05-25 10:49 ` James Courtier-Dutton
  2004-05-25 12:07 ` Clemens Ladisch
  1 sibling, 0 replies; 3+ messages in thread
From: James Courtier-Dutton @ 2004-05-25 10:49 UTC (permalink / raw)
  To: Nicolas Hüppelshäuser; +Cc: alsa-devel

Nicolas Hüppelshäuser wrote:
> Hi!
> 
> I'm using alsa 1.0.4.  How can I get a larger alsa buffer size?  The
> maximum size returned by snd_pcm_hw_params_get_buffer_size_max is too
> small.  I found no module option and nothing apropriate within the driver
> code.  Mainly I'm using the snd-usb-audio module but others are also of
> interest.
> 
> best regards
> 	Nicolas Hueppelshaeuser
> --

You cannot. the value returned by 
snd_pcm_hw_params_get_buffer_size_max() is based on the hardware 
limitations. If you need more buffer space, buffer up the data in your 
application.

Cheers
James



-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click

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

* Re: pcm buffer size
  2004-05-25 10:17 pcm buffer size Nicolas Hüppelshäuser
  2004-05-25 10:49 ` James Courtier-Dutton
@ 2004-05-25 12:07 ` Clemens Ladisch
  1 sibling, 0 replies; 3+ messages in thread
From: Clemens Ladisch @ 2004-05-25 12:07 UTC (permalink / raw)
  To: Nicolas Hüppelshäuser; +Cc: alsa-devel

Nicolas Hüppelshäuser wrote:
> I'm using alsa 1.0.4.  How can I get a larger alsa buffer size?

PCM devices have a default maximum buffer size and a maximum maxmimum
buffer size.  For example, in the snd-usb-audio driver, it's 64 KB and
128 KB.

The current value (in KB) can be seen in the file
/proc/asound/cardX/pcmXY/subX/prealloc.  You can change it with

  echo 128 > /proc/asound/card0/pcm0p/sub0/prealloc


In most cases, the maxmimum buffer size is constrained by hardware
limitations, but in the case of snd-usb-audio, it should be safe to
raise this value (look for the call to snd_pcm_lib_preallocate_pages()
in usbaudio.c).


HTH
Clemens





-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g.
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id149&alloc_id66&op=click

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

end of thread, other threads:[~2004-05-25 12:07 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-05-25 10:17 pcm buffer size Nicolas Hüppelshäuser
2004-05-25 10:49 ` James Courtier-Dutton
2004-05-25 12:07 ` Clemens Ladisch

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.