From: feng_tian <feng_tian@126.com>
To: Tobin Davis <tdavis@dsl-only.net>
Cc: alsa-devel <alsa-devel@alsa-project.org>
Subject: Re: can't use dmixer
Date: Sat, 8 Dec 2007 16:17:34 +0800 (CST) [thread overview]
Message-ID: <15198768.595131197101854992.JavaMail.coremail@bj126app78.126.com> (raw)
In-Reply-To: <1196840557.10030.114.camel@razman.gruemaster.com>
I updated my ALSA driver, libs and utils to 1.0.15, but when I use dmix of aplay, it still complaints the error:
ALSA lib pcm_direct.c:790:(snd_pcm_direct_initialize_slave) slave plugin does not support mmap interleaved or mmap noninterleaved access
ALSA lib pcm_dmix.c:864:(snd_pcm_dmix_open) unable to initialize slave
aplay: main:547: audio open error: Invalid argument
I don't think that it's sound card doesn't support this mmap. Dmix is a soft mixer, right? So where should I start to fix this problem.
Any comments or advices are welcome.
BR
Feng
在2007-12-05,"Tobin Davis" <tdavis@dsl-only.net> 写道:
First and foremost, you are running on a version that is really old (by
Linux standards). The current release is 1.0.15. I'd suggest upgrading
and seeing if that solves your issue. Repost if it doesn't.
Tobin
On Wed, 2007-12-05 at 14:23 +0800, feng_tian wrote:
> Hi, all:
> I have a problem with dmix of alsa.
> I'm using alsa v1.0.11rc2 now. And make it running on ATMEL AT91SAM9260EK board. It runs ok without Dmix. But when I tried:
> bash> aplay -D dmixer test.wav
> The errors are:
>
> ALSA lib pcm_direct.c:790:(snd_pcm_direct_initialize_slave) slave plugin does not support mmap interleaved or mmap noninterleaved access
> ALSA lib pcm_dmix.c:864:(snd_pcm_dmix_open) unable to initialize slave
> aplay: main:547: audio open error: Invalid argument
>
> The configuration of my alsa in /etc/asound.con is:
>
> pcm.card0 {
> type hw
> card 0
> }
>
> pcm.!default {
> type plug
> slave.pcm "dmixer"
> }
>
> pcm.dmixer {
> type dmix
> ipc_key 1024
> slave {
> pcm "hw:0,0"
> format S16_LE
> period_time 0
> period_size 1024
> buffer_size 4096
>
> rate 22050
> }
> bindings {
> 0 0
> 1 1
> }
> }
> ctl.dmixer {
> type hw
> card 0
> device 0
> }
> pcm.dsp {
> type plug
> slave.pcm "dmixer" #use our new PCM here
> }
> ctl.mixer{
> type hw
> card 0
> }
> bash> aplay -L
> gives:
>
> PCM list:
> hw {
> @args.0 CARD
> @args.1 DEV
> @args.2 SUBDEV
> @args.CARD {
> type string
> default {
> @func getenv
> vars {
> 0 ALSA_PCM_CARD
> 1 ALSA_CARD
> }
> default {
> @func refer
> name 'defaults.pcm.card'
> }
> }
> }
> @args.DEV {
> type integer
> default {
> @func igetenv
> vars {
> 0 ALSA_PCM_DEVICE
> }
> default {
> @func refer
> name 'defaults.pcm.device'
> }
> }
> }
> @args.SUBDEV {
> type integer
> default {
> @func refer
> name 'defaults.pcm.subdevice'
> }
> }
> type hw
> card $CARD
> device $DEV
> subdevice $SUBDEV
> }
> plughw {
> @args.0 CARD
> @args.1 DEV
> @args.2 SUBDEV
> @args.CARD {
> type string
> default {
> @func getenv
> vars {
> 0 ALSA_PCM_CARD
> 1 ALSA_CARD
> }
> default {
> @func refer
> name 'defaults.pcm.card'
> }
> }
> }
> @args.DEV {
> type integer
> default {
> @func igetenv
> vars {
> 0 ALSA_PCM_DEVICE
> }
> default {
> @func refer
> name 'defaults.pcm.device'
> }
> }
> }
> @args.SUBDEV {
> type integer
> default {
> @func refer
> name 'defaults.pcm.subdevice'
> }
> }
> type plug
> slave.pcm {
> type hw
> card $CARD
> device $DEV
> subdevice $SUBDEV
> }
> }
> plug {
> @args.0 SLAVE
> @args.SLAVE {
> type string
> }
> type plug
> slave.pcm $SLAVE
> }
> shm {
> @args.0 SOCKET
> @args.1 PCM
> @args.SOCKET {
> type string
> }
> @args.PCM {
> type string
> }
> type shm
> server $SOCKET
> pcm $PCM
> }
> tee {
> @args.0 SLAVE
> @args.1 FILE
> @args.2 FORMAT
> @args.SLAVE {
> type string
> }
> @args.FILE {
> type string
> }
> @args.FORMAT {
> type string
> default raw
> }
> type file
> slave.pcm $SLAVE
> file $FILE
> format $FORMAT
> }
> file {
> @args.0 FILE
> @args.1 FORMAT
> @args.FILE {
> type string
> }
> @args.FORMAT {
> type string
> default raw
> }
> type file
> slave.pcm null
> file $FILE
> format $FORMAT
> }
> null {
> type null
> }
> cards 'cards.pcm'
> front 'cards.pcm.front'
> rear 'cards.pcm.rear'
> center_lfe 'cards.pcm.center_lfe'
> side 'cards.pcm.side'
> surround40 'cards.pcm.surround40'
> surround41 'cards.pcm.surround41'
> surround50 'cards.pcm.surround50'
> surround51 'cards.pcm.surround51'
> surround71 'cards.pcm.surround71'
> iec958 'cards.pcm.iec958'
> spdif 'cards.pcm.iec958'
> modem 'cards.pcm.modem'
> phoneline 'cards.pcm.phoneline'
> dmix 'cards.pcm.dmix'
> dsnoop 'cards.pcm.dsnoop'
> card0 {
> type hw
> card 0
> }
> default {
> type plug
> slave.pcm dmixer
> }
> dmixer {
> type dmix
> ipc_key 1024
> slave {
> pcm 'hw:0,0'
> format S16_LE
> period_time 0
> period_size 1024
> buffer_size 4096
> rate 22050
> }
> bindings {
> 0 0
> 1 1
> }
> }
> dsp {
> type plug
> slave.pcm dmixer
> }
> Is there anyone experienced in this kind of error? Any helps or advices is wecome.
>
> BR
> Feng
> _______________________________________________
> Alsa-devel mailing list
> Alsa-devel@alsa-project.org
> http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
--
Tobin Davis
I'm having a tax-deductible experience! I need an energy crunch!!
_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
next prev parent reply other threads:[~2007-12-08 8:17 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-12-05 6:23 can't use dmixer feng_tian
2007-12-05 7:42 ` Tobin Davis
2007-12-08 8:17 ` feng_tian [this message]
2007-12-05 8:30 ` 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=15198768.595131197101854992.JavaMail.coremail@bj126app78.126.com \
--to=feng_tian@126.com \
--cc=alsa-devel@alsa-project.org \
--cc=tdavis@dsl-only.net \
/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.