All of lore.kernel.org
 help / color / mirror / Atom feed
From: Takashi Iwai <tiwai@suse.de>
To: Daniel Danzberger <daniel@dd-wrt.com>
Cc: alsa-devel@alsa-project.org
Subject: Re: out of sync capture samples with MMAP on MIPS
Date: Tue, 29 May 2018 10:02:42 +0200	[thread overview]
Message-ID: <s5hmuwiq47x.wl-tiwai@suse.de> (raw)
In-Reply-To: <9554b45e-2918-19a0-8dec-8b131b3b6ab8@dd-wrt.com>

On Tue, 29 May 2018 09:55:44 +0200,
Daniel Danzberger wrote:
> 
> On 05/27/2018 01:08 PM, Takashi Iwai wrote:
> > On Sun, 27 May 2018 11:34:07 +0200,
> > Daniel Danzberger wrote:
> >>
> >> On 05/25/2018 02:20 PM, Takashi Iwai wrote:> It's likely because of the cache
> >> coherency issue on ARM.
> >>> Currently USB-audio driver uses the buffer via vmalloc() for the
> >>> intermediate buffer, and this may go out of sync on non-coherent arch
> >>> like ARM.
> >>>
> >>> Does the patch below help?  Not sure whether it works on ARM at all,
> >>> as I've tested only on x86.
> >> Your patch works. I cannot reproduce the issue anymore. Thanks.
> > 
> > Good to hear.  Below is the revised version, so that the behavior can
> > be controlled via use_vmalloc option for snd-usb-audio module.
> > Could you check whether this still works?
> 
> it works.

OK, I'll queue the patch for 4.18.


thanks,

Takashi

  reply	other threads:[~2018-05-29  8:02 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-05-23 18:36 out of sync capture samples with MMAP on MIPS Daniel Danzberger
2018-05-25 12:20 ` Takashi Iwai
2018-05-25 12:24   ` Takashi Iwai
2018-05-27  9:34   ` Daniel Danzberger
2018-05-27 11:08     ` Takashi Iwai
2018-05-29  7:55       ` Daniel Danzberger
2018-05-29  8:02         ` Takashi Iwai [this message]
2018-05-27 11:17   ` Daniel Danzberger

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=s5hmuwiq47x.wl-tiwai@suse.de \
    --to=tiwai@suse.de \
    --cc=alsa-devel@alsa-project.org \
    --cc=daniel@dd-wrt.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.