* Alsa lib mmap error
@ 2005-04-11 14:39 Guillaume GOURAT
0 siblings, 0 replies; only message in thread
From: Guillaume GOURAT @ 2005-04-11 14:39 UTC (permalink / raw)
To: alsa-devel; +Cc: Ben Dooks, vadim
Hi,
I have an error when some application want to use alsalib to play or record
song (Error reported from alsa lib when it want create a memory mapping with
the kernel drivers).
The message : ALSA lib pcm_mmap.c:363:(snd_pcm_mmap) mmap failed: Invalid
argument
amixer, aplay and arecord work perfectly.
My platform is Samsung ARM s3c2410 CPU with linux 2.6.11.4 and a texas
instrument codec tlv320aic23b connected by I2S bus. We use alsa version
1.0.9rc2 (i have integrated s3c2410 I2S and tlv320aic23b support drivers
from M. Ben Dooks with a few modification).
Madplay work only when it use OSS emulation, and doesn't work when it's
compiled to use alsa (./configure --with-alsa ...) :
[root@(none) arm]$madplay -b 16 -R 48000 /mnt/wav/Afro10.mp3 MPEG Audio
Decoder 0.15.2 (beta) - Copyright (C) 2000-2004 Robert Leslie et al.
ALSA lib pcm_mmap.c:363:(snd_pcm_mmap) mmap failed: Invalid argument
Unable to set hw params for playback: Invalid argument
output: Invalid argument
The same problem appear when we try to use another application.
for example linphone :
[root@(none) /root]$linphonec
Message:Found /dev/dsp.
Message:Found ALSA device: tlv
Message:Choosing alsa device tlv (Advanced Linux Sound Architecture) by
default.
> ALSA lib pcm_mmap.c:363:(snd_pcm_mmap) mmap failed: Invalid argument
> Warning:alsa_set_params: Error setting HW params:Invalid argument
Warning:General level is quite low (0). Linphone rises it up for you.
DEBUG: [get_output_if] connect: Network is unreachable
Message:Adding new codec PCMU/8000
Message:Adding new codec GSM/8000
Message:Adding new codec PCMA/8000
Message:Adding new codec speex/8000
Message:Adding new codec speex/16000
Message:Adding new codec 1015/8000
Ready.
linphonec>
Message:CALL_NEW
Warning:Local loopback network only !
Message:Refusing codec 97 (iLBC/8000)
Message:Refusing codec 2 (G726-32/8000)
"guillaume" <sip:Guillaume@192.168.1.1:5060> is calling you.
> ALSA lib pcm_mmap.c:363:(snd_pcm_mmap) mmap failed: Invalid argument
> Warning:alsa_set_params: Error setting HW params:Invalid argument
Message:killing sound daemons.
Do you have an idea how to solve this issue ?
Regards,
Guillaume GOURAT.
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-04-11 14:39 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-04-11 14:39 Alsa lib mmap error Guillaume GOURAT
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.