alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
* period_time in slave definition
@ 2011-02-28 12:25 Pavel Hofman
  2011-02-28 13:15 ` Jaroslav Kysela
  0 siblings, 1 reply; 8+ messages in thread
From: Pavel Hofman @ 2011-02-28 12:25 UTC (permalink / raw)
  To: alsa-devel

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.

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

end of thread, other threads:[~2011-03-01 15:34 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-28 12:25 period_time in slave definition Pavel Hofman
2011-02-28 13:15 ` 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

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).