All of lore.kernel.org
 help / color / mirror / Atom feed
From: emilio@elopez.com.ar (Emilio López)
To: linux-arm-kernel@lists.infradead.org
Subject: [linux-sunxi] Re: [PATCH v4] dma: sun4i: Add support for the DMA engine on sun[457]i SoCs
Date: Tue, 03 Feb 2015 19:47:15 -0300	[thread overview]
Message-ID: <54D14FF3.2030005@elopez.com.ar> (raw)
In-Reply-To: <54D12D25.5000408@elopez.com.ar>

El 03/02/15 a las 17:18, Emilio L?pez escibi?:
> Hi,
>
> El 03/02/15 a las 16:39, jonsmirl at gmail.com escibi?:
>> Did you fix multiple simultaneous DMA transfers in this? And easy test
>> is to start jack audio. Jack will start simultaneous cyclic transfers
>> on both the ALSA input and output. Since cyclic transfers never end,
>> multiple simultaneous transfers has to work. Last time I tried it I
>> got an immediate GPF when the second cyclic transfer was started.
>
> I didn't get a chance to test with jack yet, but I don't see any reason
> why two cyclic transfers wouldn't work, assuming they're on different
> vchans.
>
> Were you by any chance booting off of NAND by the way? That caused a GPF
> because the bootloader left the hardware in a dirty state, but it should
> be fixed now.

A quick followup on this; I tried jack and found a bug on the way 
channels are terminated, it turns out sometimes IRQs can still trigger 
after the termination. Once I fixed that, I was able to get jack to 
produce a deafening tone with the following:

# jackd -dalsa --playback &
# jackdmp 1.9.10
Copyright 2001-2005 Paul Davis and others.
Copyright 2004-2014 Grame.
jackdmp comes with ABSOLUTELY NO WARRANTY
This is free software, and you are welcome to redistribute it
under certain conditions; see the file COPYING for details
JACK server starting in realtime mode with priority 10
self-connect-mode is "Don't restrict self connect requests"
creating alsa driver ... hw:0|-|1024|2|48000|0|0|nomon|swmeter|-|32bit
configuring for 48000Hz, period = 1024 frames (21.3 ms), buffer = 2 periods
ALSA: final selected sample format for playback: 32bit integer little-endian
ALSA: use 2 periods for playback
# jack_simple_client

  reply	other threads:[~2015-02-03 22:47 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-31 22:58 [PATCH v4] DMAEngine support for sun4i, sun5i & sun7i Emilio López
2015-01-31 22:58 ` [PATCH v4] dma: sun4i: Add support for the DMA engine on sun[457]i SoCs Emilio López
2015-02-01 10:03   ` [linux-sunxi] " Priit Laes
2015-02-03 18:43     ` Emilio López
2015-02-03 19:39       ` [linux-sunxi] " jonsmirl at gmail.com
2015-02-03 20:18         ` Emilio López
2015-02-03 22:47           ` Emilio López [this message]
2015-02-04  3:12   ` Vinod Koul

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=54D14FF3.2030005@elopez.com.ar \
    --to=emilio@elopez.com.ar \
    --cc=linux-arm-kernel@lists.infradead.org \
    /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.