All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Guillaume GOURAT" <guillaume.nexvision@free.fr>
To: alsa-devel@lists.sourceforge.net
Cc: Ben Dooks <ben-linux-arm@fluff.org>, vadim@mbdsys.com
Subject: Alsa lib mmap error
Date: Mon, 11 Apr 2005 16:39:31 +0200	[thread overview]
Message-ID: <200504111646453.SM02000@STATIONXP> (raw)

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

                 reply	other threads:[~2005-04-11 14:39 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=200504111646453.SM02000@STATIONXP \
    --to=guillaume.nexvision@free.fr \
    --cc=alsa-devel@lists.sourceforge.net \
    --cc=ben-linux-arm@fluff.org \
    --cc=vadim@mbdsys.com \
    /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.