alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
From: Takashi Iwai <tiwai@suse.de>
To: "Allyn, Mark A" <mark.a.allyn@intel.com>
Cc: alsa-devel@alsa-project.org
Subject: Re: Question on buffer size setting
Date: Mon, 21 May 2007 17:51:42 +0200	[thread overview]
Message-ID: <s5hiramp435.wl%tiwai@suse.de> (raw)
In-Reply-To: <5FD5754DDBA0B1499B5A0B4BB541948501183F8D@fmsmsx411.amr.corp.intel.com>

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

      reply	other threads:[~2007-05-21 15:51 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-05-19  1:00 Question on buffer size setting Allyn, Mark A
2007-05-21 15:51 ` 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=s5hiramp435.wl%tiwai@suse.de \
    --to=tiwai@suse.de \
    --cc=alsa-devel@alsa-project.org \
    --cc=mark.a.allyn@intel.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 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).