mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Richard Zhao <richard.zhao@freescale.com>
To: Shawn Guo <shawn.guo@linaro.org>
Cc: <linux-kernel@vger.kernel.org>,
	<linux-arm-kernel@lists.infradead.org>, <vinod.koul@intel.com>,
	<dan.j.williams@intel.com>, <linuxzsc@gmail.com>,
	<shawn.guo@gmail.com>, <kernel@pengutronix.de>
Subject: Re: [PATCH 1/1] dma: imx-sdma: buf_tail should be initialize in prepare function
Date: Thu, 24 May 2012 11:27:00 +0800	[thread overview]
Message-ID: <20120524032659.GA19682@b20223-02.ap.freescale.net> (raw)
In-Reply-To: <20120524032026.GB17621@S2101-09.ap.freescale.net>

On Thu, May 24, 2012 at 11:20:29AM +0800, Shawn Guo wrote:
> On Mon, May 21, 2012 at 08:31:34PM +0800, Richard Zhao wrote:
> > This fix audio underrun issue. When SNDRV_PCM_TRIGGER_STOP
> > and SNDRV_PCM_TRIGGER_START, it calls prepare again. buf_tail
> > should be reset to zero.
> > So move buf_tail initialization into prepare function.
> > 
> I tried the patch on imx51, and it does not fix the issue for me.
> 
> Regards,
> Shawn
> 
> root@linaro-developer:~# aplay audio8k16S.wav
> Playing WAVE 'audio8k16S.wav' : Signed 16 bit Little Endian, Rate 8000 Hz, Stere
> o
> ^Z
> [1]+  Stopped                 aplay audio8k16S.wav
> root@linaro-developer:~# fg
> aplay audio8k16S.wav
> underrun!!! (at least 2034.382 ms long)
Does the audio playback recover? Without the patch, sometimes the
playback will have distortion and play too fast.

Thanks
Richard 


  reply	other threads:[~2012-05-24  3:27 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-21 12:31 Richard Zhao
2012-05-22 10:43 ` Richard Zhao
2012-05-24  3:20 ` Shawn Guo
2012-05-24  3:27   ` Richard Zhao [this message]
2012-05-24  3:33     ` Shawn Guo
2012-05-25  8:09       ` Richard Zhao
2012-05-25  8:20         ` Shawn Guo

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=20120524032659.GA19682@b20223-02.ap.freescale.net \
    --to=richard.zhao@freescale.com \
    --cc=dan.j.williams@intel.com \
    --cc=kernel@pengutronix.de \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linuxzsc@gmail.com \
    --cc=shawn.guo@gmail.com \
    --cc=shawn.guo@linaro.org \
    --cc=vinod.koul@intel.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

all inboxes | Powered by JetHome®