public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
From: Jon Smirl <jonsmirl@gmail.com>
To: Peter Ujfalusi <peter.ujfalusi@nokia.com>
Cc: "ext Aggarwal, Anuj" <anuj.aggarwal@ti.com>,
	alsa-devel@alsa-project.org,
	"linux-omap@vger.kernel.org" <linux-omap@vger.kernel.org>
Subject: Re: Beep sound in the end of audio file
Date: Wed, 6 May 2009 10:01:25 -0400	[thread overview]
Message-ID: <9e4733910905060701r33b7f3eaxf8d9da07f4bfd101@mail.gmail.com> (raw)
In-Reply-To: <200905060833.10998.peter.ujfalusi@nokia.com>

On Wed, May 6, 2009 at 1:33 AM, Peter Ujfalusi <peter.ujfalusi@nokia.com> wrote:
> Hello,
>
> On Tuesday 05 May 2009 20:03:57 ext Aggarwal, Anuj wrote:
>> Hi,
>>
>> After playing out any audio file on OMAP3 EVM, having TWL4030 codec,
>> I am hearing a beep sound. I have also tried implementing a mute function
>> in which I disabled all the inputs/outputs but still that didn't help.
>>
>> Any idea how this can be avoided?
>
> I have not heard from this kind of problem so far, which does not mean, that
> it does not exist ;)
> Can you describe the beep sound?
>
> After a quick look I can not pin point the soc board file used with the
> omap3evm board. Is it in the tree?
>
> Does the beep happens in these cases also (after stopping it with Ctrl+C):
> aplay -f dat /dev/zero
> aplay -f dat /dev/urandom


I'm having this problem on PowerPC....

Audio is played via multiple period buffers
Am interrupt is generated on the end of each period

The problem occurs at the end of the stream.
The period containing the end of stream plays and generates an interrupt.
ALSA then calls back with trigger(STOP)

But I can't shut off the DMA fast enough on these slower CPUs (not
3Ghz) to prevent the next period from starting to play. This next
period contains data from earlier in the stream. When a small amount
of it plays it sounds like a short tone beep.

The beep is only obvious if the last period being played mostly
contains silence. In that case the silence will play, then you will be
able to hear the burst of noise separated from the rest of the stream.

What I need to know is the address of the last valid sample in the
stream. If I knew that I could just program the DMA hardware to stop
after it played. I've been staring at ALSA core for a couple of days
trying to figure out how to get the address for the end of the stream.




>
>
> CC-ing alsa-devel...
>
>>
>> Thanks and Regards,
>> Anuj Aggarwal
>>
>> Platform Support Products
>> Texas Instruments Incorporated
>
>
> --
> Péter
> _______________________________________________
> Alsa-devel mailing list
> Alsa-devel@alsa-project.org
> http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
>



-- 
Jon Smirl
jonsmirl@gmail.com

  parent reply	other threads:[~2009-05-06 14:01 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-05-05 17:03 Beep sound in the end of audio file Aggarwal, Anuj
2009-05-06  5:33 ` Peter Ujfalusi
2009-05-06 14:00   ` Aggarwal, Anuj
2009-05-06 14:07     ` [alsa-devel] " Mark Brown
2009-05-07  9:35       ` Arun KS
2009-05-07  9:38         ` [alsa-devel] " Mark Brown
2009-05-07 10:48           ` Arun KS
2009-05-06 14:19     ` Todd Fischer
2009-05-07  5:48       ` Peter Ujfalusi
2009-05-07 11:08         ` Peter Ujfalusi
2009-05-07 11:16           ` Aggarwal, Anuj
2009-05-07 11:24             ` Peter Ujfalusi
2009-05-07 12:48               ` Arun KS
2009-05-07 14:15           ` Jarkko Nikula
2009-05-06 14:01   ` Jon Smirl [this message]
2009-05-06 14:03     ` [alsa-devel] " Jon Smirl

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=9e4733910905060701r33b7f3eaxf8d9da07f4bfd101@mail.gmail.com \
    --to=jonsmirl@gmail.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=anuj.aggarwal@ti.com \
    --cc=linux-omap@vger.kernel.org \
    --cc=peter.ujfalusi@nokia.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