From: Pavel Hofman <pavel.hofman@ivitera.com>
To: alsa-devel <alsa-devel@alsa-project.org>
Subject: period_time in slave definition
Date: Mon, 28 Feb 2011 13:25:34 +0100 [thread overview]
Message-ID: <4D6B943E.4060302@ivitera.com> (raw)
Hi,
According to
http://www.alsa-project.org/alsa-doc/alsa-lib/pcm_plugins.html , my
.asoundrc contains:
pcm.test {
type plug
slave {
pcm "hw:0"
format "unchanged"
channels "unchanged"
rate "unchanged"
period_size 1024
buffer_size 4096
}
}
While pcm, format, channels, and rate are accepted, the period and
buffer fields are refused:
ALSA lib pcm.c:6811:(snd_pcm_slave_conf) Unknown field period_time
I checked the source code and the keywords seem to be ok
pcm.c:
static const char *const names[SND_PCM_HW_PARAM_LAST_INTERVAL + 1] = {
[SND_PCM_HW_PARAM_FORMAT] = "format",
[SND_PCM_HW_PARAM_CHANNELS] = "channels",
[SND_PCM_HW_PARAM_RATE] = "rate",
[SND_PCM_HW_PARAM_PERIOD_TIME] = "period_time",
[SND_PCM_HW_PARAM_PERIOD_SIZE] = "period_size",
[SND_PCM_HW_PARAM_BUFFER_TIME] = "buffer_time",
[SND_PCM_HW_PARAM_BUFFER_SIZE] = "buffer_size",
[SND_PCM_HW_PARAM_PERIODS] = "periods"
};
Has any change been introduced recently which is not reflected on wiki
yet? Is there a way to specify "default" period and buffer parameters?
Thanks a lot,
Pavel.
next reply other threads:[~2011-02-28 12:25 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-02-28 12:25 Pavel Hofman [this message]
2011-02-28 13:15 ` period_time in slave definition Jaroslav Kysela
2011-02-28 13:20 ` Pavel Hofman
2011-03-01 9:07 ` Pavel Hofman
2011-03-01 9:22 ` Jaroslav Kysela
2011-03-01 9:44 ` Pavel Hofman
2011-03-01 10:28 ` Pavel Hofman
2011-03-01 15:26 ` Pavel Hofman
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=4D6B943E.4060302@ivitera.com \
--to=pavel.hofman@ivitera.com \
--cc=alsa-devel@alsa-project.org \
/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 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.