From: ANISH KUMAR <anish.singh@samsung.com>
To: Mark Brown <broonie@opensource.wolfsonmicro.com>
Cc: "alsa-devel@alsa-project.org" <alsa-devel@alsa-project.org>
Subject: Re: ALSA DMIX support without MMAP ?
Date: Thu, 14 Jan 2010 10:30:59 +0000 (GMT) [thread overview]
Message-ID: <30985164.282301263465059783.JavaMail.weblogic@epml09> (raw)
>mmap is supported by the Samsung drivers.
Thanks for this information which i overlooked.
>This looks like the dmix data rates are getting out of sync with what
>the hardware is doing. Enabling CONFIG_SND_PCM_XRUN_DEBUG will produce
>more diagnostic information from the driver side
I got the problem and after doing the changes DMIX plugin is working very fine.
As you know XRUN was happening and this happening in snd_pcm_update_hw_ptr_post function.
This happened because stop_threshold is increased suddenly(Is it done by dmix? If yes then why ?) ??????
In normal condtions this would have been fine but in my code i was multiplying it by some amount causing it to wrap around(stop_threshold=0 );Causing XRUN.So i just removed this multiplying factor.
One more Rate conversion query:
./alsa_aplay -v -D"plug:'dmix:RATE=44100'" bond.wav
Playing WAVE 'bond.wav' : Unsigned 8 bit, Rate 11025 Hz, Mono
Plug PCM: Rate conversion PCM (44100, sformat=U8)
As you can see bond.wav is sampled at 11025k but when i am playing with Plug PCM there is some noise in the song why????Is rate conversion algoritm not able to resample it properly?
If i play with ./alsa_aplay -v -D"plug:'dmix:RATE=11025'" bond.wav then no noise.Probably because no resampling happening?
Mark Brown Heartfelt Thanks for your time.
next reply other threads:[~2010-01-14 10:31 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-01-14 10:30 ANISH KUMAR [this message]
2010-01-14 10:37 ` ALSA DMIX support without MMAP ? Jaroslav Kysela
-- strict thread matches above, loose matches on Subject: below --
2010-01-18 3:25 ANISH KUMAR
2010-01-18 11:01 ` Mark Brown
2010-01-15 12:07 ANISH KUMAR
2010-01-15 13:37 ` Mark Brown
[not found] <0KW800IYGE3P07@ms13.samsung.com>
2010-01-14 9:55 ` Mark Brown
2010-01-13 9:46 ANISH KUMAR
2010-01-13 11:27 ` Mark Brown
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=30985164.282301263465059783.JavaMail.weblogic@epml09 \
--to=anish.singh@samsung.com \
--cc=alsa-devel@alsa-project.org \
--cc=broonie@opensource.wolfsonmicro.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.