From: Jarkko Nikula <jhnikula@gmail.com>
To: Raymond Yau <superquad.vortex2@gmail.com>
Cc: ALSA Development Mailing List <alsa-devel@alsa-project.org>
Subject: Re: First 50 milliseconds of audio clipping with dmix
Date: Thu, 20 May 2010 08:55:03 +0300 [thread overview]
Message-ID: <20100520085503.2f34ba75.jhnikula@gmail.com> (raw)
In-Reply-To: <AANLkTineIe45MEv8juotPw_wOaDu79islnJeplkgj42I@mail.gmail.com>
On Thu, 20 May 2010 12:04:06 +0800
Raymond Yau <superquad.vortex2@gmail.com> wrote:
> 2010/5/20 Tyler Conant <tconant@taser.com>
>
> > I'm trying to use dmix on an OMAP processor. I'm experiencing the first 50
> > ms of the sample getting clipped. When I aplay directly to the hw:0 I don't
> > get the clipping. The difference I see between the alsa configuration
> > between dmix and hw:0 is the start_threshold, stop_threshold and
> > silence_size. When it's direct to hw:0 the start and stop threshold are
> > equal to the buffer size. For dmix the start threshold is 1 and the stop
> > threshold is 1445199872. Is this dmix which is setting the start and stop or
> > is this aplay. I'm only guessing this is the reason why the first part is
> > clipping. The only bug which seem similar is
> > http://bugs.gentoo.org/show_bug.cgi?id=218641 and it's already been closed
> > out. I'm using alsa lib 1.0.23
> >
...
> >
> The major difference is access : MMAP_INTERLEAVED
>
I think I hear the same problem with OMAP3 BeagleBoard. These play fine:
aplay -D hw:0 48k_1kHz0dB100ms.wav
aplay -D hw:0 -M 48k_1kHz0dB100ms.wav
But with this there is some crack etc. if played after playing directly
to HW device:
aplay -D dmix 48k_1kHz0dB100ms.wav
But I don't hear this crack sound if repeating the command above.
Problem appears only when playing to dmix after playing to HW device.
And no, ASoC DAPM is not explaining this. Time between the commands
doesn't have any other effect than power up/-down pops.
--
Jarkko
prev parent reply other threads:[~2010-05-20 5:54 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-05-19 17:05 First 50 milliseconds of audio clipping with dmix Tyler Conant
2010-05-20 4:04 ` Raymond Yau
2010-05-20 5:55 ` Jarkko Nikula [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=20100520085503.2f34ba75.jhnikula@gmail.com \
--to=jhnikula@gmail.com \
--cc=alsa-devel@alsa-project.org \
--cc=superquad.vortex2@gmail.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;
as well as URLs for NNTP newsgroup(s).