* Question on buffer size setting
@ 2007-05-19 1:00 Allyn, Mark A
2007-05-21 15:51 ` Takashi Iwai
0 siblings, 1 reply; 2+ messages in thread
From: Allyn, Mark A @ 2007-05-19 1:00 UTC (permalink / raw)
To: alsa-devel
Hello:
I am attempting to do some debugging of a new audio device, and I need
to change the
number of buffer descriptor list entries from the default of 16 to
something much
smaller, like 3.
I am a bit confused while looking at the code. There seems to be a value
labeled
SNDRV_PCM_HW_PARAM_BUFFER_SIZE, but I can't figure how it is set. Is
this a parameter that
is passed as part of the configure prior to doing a make for the driver?
Is this a parameter
passed to modprobe when loading the driver?
Thanks for your help.
Mark
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Question on buffer size setting
2007-05-19 1:00 Question on buffer size setting Allyn, Mark A
@ 2007-05-21 15:51 ` Takashi Iwai
0 siblings, 0 replies; 2+ messages in thread
From: Takashi Iwai @ 2007-05-21 15:51 UTC (permalink / raw)
To: Allyn, Mark A; +Cc: alsa-devel
At Fri, 18 May 2007 18:00:18 -0700,
Allyn, Mark A wrote:
>
> Hello:
>
> I am attempting to do some debugging of a new audio device, and I need
> to change the
> number of buffer descriptor list entries from the default of 16 to
> something much
> smaller, like 3.
If you're referring to hda-intel, the number of buffer descriptor list
isn't fixed there. The smallest size is 2 and the max size is 16.
(16 is used for allocation at the driver init time, though.)
> I am a bit confused while looking at the code. There seems to be a value
> labeled
> SNDRV_PCM_HW_PARAM_BUFFER_SIZE, but I can't figure how it is set. Is
> this a parameter that
> is passed as part of the configure prior to doing a make for the driver?
> Is this a parameter
> passed to modprobe when loading the driver?
It's a parameter set by user-space at each time the application sets
up the PCM after opening the device. The setup is done in hw_params
callback.
Takashi
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-05-21 15:51 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-19 1:00 Question on buffer size setting Allyn, Mark A
2007-05-21 15:51 ` Takashi Iwai
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).