From: tomars <leijin.tang@access-company.com>
To: alsa-devel@alsa-project.org
Subject: alsa conf file
Date: Fri, 14 Mar 2008 10:01:46 +0800 [thread overview]
Message-ID: <1205460106.9834.23.camel@tomars-laptop> (raw)
In-Reply-To: <mailman.3111.1205405872.2095.alsa-devel@alsa-project.org>
I write a asound.conf file in the /etc/ , the detail is as follows.
pcm.hardware{
type hw:0
card 0
device 0
}
pcm_slave.test {
pcm "hardware"
format S16_LE
rate 44100
channels 2
period_time 20000
buffer_time 80000
}
pcm.mix1{
type dmix
ipc_key 1235675
ipc_key_add_uid true
slave "test"
}
pcm.mix2{
type dmix
ipc_key 1235675
ipc_key_add_uid true
slave {
pcm "hw:0"
format S16_LE
rate 44100
channels 2
period_time 20000
buffer_time 80000
}
}
pcm.!default {
type plug
slave.pcm mix2
#slave.pcm mix1
}
when I use the slave.pcm mix2, the aplay works well. but if I select the slave.pcm mix1, the aplay gets the info:
ALSA lib pcm_direct.c:1462:(_snd_pcm_direct_get_slave_ipc_offset) Invalid type 'dmix' for slave PCM
I compare the definition of mix1 with the definition of mix2, I feel they have the identical meaning. so why does the mix2 get the error?
thank you!
next parent reply other threads:[~2008-03-14 2:01 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.3111.1205405872.2095.alsa-devel@alsa-project.org>
2008-03-14 2:01 ` tomars [this message]
2008-03-14 7:33 ` alsa conf file Clemens Ladisch
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=1205460106.9834.23.camel@tomars-laptop \
--to=leijin.tang@access-company.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox