Alsa-Devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Takashi Iwai <tiwai@suse.de>
To: Will Wagner <will_wagner@carallon.com>
Cc: alsa-devel@alsa-project.org
Subject: Re: aplay hang with 1.0.18
Date: Wed, 21 Jan 2009 11:01:01 +0100	[thread overview]
Message-ID: <s5h3afd2d2a.wl%tiwai@suse.de> (raw)
In-Reply-To: <49746CFE.2010203@carallon.com>

At Mon, 19 Jan 2009 12:07:26 +0000,
Will Wagner wrote:
> 
> Hi All,
> 
> I am seeing a problem with aplay hanging when trying to play a wav file. The problem is 
> that it is trying to use an mmap function even though mmap was not initialised. The call 
> stack is:
> 
> #0  snd_pcm_mmap_begin (pcm=0x400764a0, areas=0x400772c4,
> offset=0x40061e1c,
>      frames=0x40082f78) at pcm.c:6402
> #1  0x40081eb4 in snd_pcm_plugin_write_areas (pcm=0x2b0e8,
> areas=0xbeb20950,
>      offset=0, size=2048) at pcm_plugin.c:278
> #2  0x4006ab20 in snd1_pcm_write_areas (pcm=0x2b0e8, areas=0xbeb20950,
>      offset=0, size=2048, func=0x40081e30 <snd_pcm_plugin_write_areas>)
>      at pcm.c:6654
> #3  0x40082578 in snd_pcm_plugin_writei (pcm=0x2b0e8, buffer=0x2b6c8,
>      size=2048) at pcm_plugin.c:361
> #4  0x4005e384 in _snd_pcm_writei (pcm=0x21db8, buffer=0x2b6c8,
> size=2048)
>      at pcm_local.h:516
> #5  0x4005e2f8 in snd_pcm_writei (pcm=0x21db8, buffer=0x2b6c8,
> size=2048)
>      at pcm.c:1243
> #6  0x0001045c in pcm_write (data=0x2b6c8 "^", count=2048) at
> aplay.c:1432
> #7  0x000135b8 in playback_go (fd=5, loaded=0, count=424600, rtype=2,
>      name=0xbeb20dd5 "/sdcard/test.wav") at aplay.c:2171
> #8  0x00013a0c in playback (name=0xbeb20dd5 "/sdcard/test.wav") at
> aplay.c:2231
> #9  0x0000c38c in main (argc=2, argv=0xbeb20cd4) at aplay.c:641
> 
> It gets here even though the mmap_flag was not set. This then causes an infinite loop as 
> no mmap areas have been defined.
> 
> My setup was working with version 1.0.16. What could have changed to break this? Is it 
> something wrong with my config?

Try alsa-lib 1.0.19.  There have been some fixes regarding mmap
emulation.


Takashi

      reply	other threads:[~2009-01-21 10:01 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-19 12:07 aplay hang with 1.0.18 Will Wagner
2009-01-21 10:01 ` Takashi Iwai [this message]

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=s5h3afd2d2a.wl%tiwai@suse.de \
    --to=tiwai@suse.de \
    --cc=alsa-devel@alsa-project.org \
    --cc=will_wagner@carallon.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox