From: Clemens Ladisch <clemens@ladisch.de>
To: Raymond Yau <superquad.vortex2@gmail.com>
Cc: ALSA Development Mailing List <alsa-devel@alsa-project.org>
Subject: Re: Is calling snd_pcm_sw_params() mandatory ?
Date: Mon, 29 Nov 2010 09:14:49 +0100 [thread overview]
Message-ID: <4CF360F9.9040309@ladisch.de> (raw)
In-Reply-To: <AANLkTinXD=5sZHdpPOdsrVnhuS629a7VBXwFQvxaU9+c@mail.gmail.com>
Raymond Yau wrote:
> Does alsa-lib has any check whether the application had called snd_pcm_sw_params() or
> it provide default values for those software parameters (e.g. start_threshold, stop_threshold)
The internal snd_pcm_sw_params_default() function does this:
params->tstamp_mode = SND_PCM_TSTAMP_NONE;
params->period_step = 1;
params->sleep_min = 0;
params->avail_min = pcm->period_size;
params->xfer_align = 1;
params->start_threshold = 1;
params->stop_threshold = pcm->buffer_size;
params->silence_threshold = 0;
params->silence_size = 0;
Regards,
Clemens
prev parent reply other threads:[~2010-11-29 8:12 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-11-29 4:20 Is calling snd_pcm_sw_params() mandatory ? Raymond Yau
2010-11-29 8:14 ` Clemens Ladisch [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=4CF360F9.9040309@ladisch.de \
--to=clemens@ladisch.de \
--cc=alsa-devel@alsa-project.org \
--cc=superquad.vortex2@gmail.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