All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mark Brown <broonie@kernel.org>
To: Lars-Peter Clausen <lars@metafoo.de>
Cc: alsa-devel@alsa-project.org, Liam Girdwood <lgirdwood@gmail.com>
Subject: Re: [PATCH 2/4] ASoC: Add support for the Analog Devices AXI-I2S core
Date: Fri, 29 Nov 2013 11:58:30 +0000	[thread overview]
Message-ID: <20131129115830.GT27568@sirena.org.uk> (raw)
In-Reply-To: <1385665372-29477-2-git-send-email-lars@metafoo.de>


[-- Attachment #1.1: Type: text/plain, Size: 1698 bytes --]

On Thu, Nov 28, 2013 at 08:02:50PM +0100, Lars-Peter Clausen wrote:

A few really minor things below.

> The patch also adds a simple ASoC PCM driver for the PL330 DMA controller using
> the generic dmaengine PCM driver. This driver is only temporary can be removed
> once we have all the infrastructure in place to query information like maximum
> transfer size directly from the dmaengine driver.

It's not really a driver as such, it's just specifying some extra
parameters - I'd expect you're going to need to keep the addresses at
least.  It's probably more accurate to say that at the minute there's
some assumptions in the driver about the DMA controller configuration
that will be required which should be removable in future?

> +config SND_SOC_ADI
> +	tristate "Audio support for Analog Devices reference designs"
> +	depends on SND_SOC && (MICROBLAZE || ARCH_ZYNQ || COMPILE_TEST)
> +	help
> +	  Audio support for various reference designs by Analog Devices.
> +

Given that this is a FPGA IP I'd also expect it to be available on
SOCFPGA and probably other things.  For the Designware I2S controller we
just don't have any platform dependency at all.

There's no need for the SND_SOC dependency, all the subdirectory
Kconfigs are only included in an if SND_SOC block.

> +	frame_size = AXI_I2S_BITS_PER_FRAME / 2 - 1;

This isn't obvious - usually the frame size is the number of bits per
frame.  Looking at the code I guess the hardware is more flexible than
the driver allows at the minute?

> +	regmap_write(i2s->regmap, AXI_I2S_REG_CLK_CTRL, (frame_size << 16) |
> +		bclk_div);

update_bits() would be more obvious, though for a memory mapped device
it really makes no difference.

[-- Attachment #1.2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

[-- Attachment #2: Type: text/plain, Size: 0 bytes --]



  reply	other threads:[~2013-11-29 11:58 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-28 19:02 [PATCH 1/4] dt: Add bindings documentation for the ADI AXI-I2S controller Lars-Peter Clausen
2013-11-28 19:02 ` [PATCH 2/4] ASoC: Add support for the Analog Devices AXI-I2S core Lars-Peter Clausen
2013-11-29 11:58   ` Mark Brown [this message]
2013-11-29 13:04     ` Lars-Peter Clausen
2013-11-29 14:27       ` Mark Brown
2013-11-29 14:34         ` Lars-Peter Clausen
     [not found] ` <1385665372-29477-1-git-send-email-lars-Qo5EllUWu/uELgA04lAiVw@public.gmane.org>
2013-11-28 19:02   ` [PATCH 3/4] dt: Add bindings documentation for the ADI AXI-SPDIF audio controller Lars-Peter Clausen
2013-11-28 19:02 ` [PATCH 4/4] ASoC: Add support for the Analog Devices AXI-SPDIF driver Lars-Peter Clausen
2013-11-29 12:06   ` 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=20131129115830.GT27568@sirena.org.uk \
    --to=broonie@kernel.org \
    --cc=alsa-devel@alsa-project.org \
    --cc=lars@metafoo.de \
    --cc=lgirdwood@gmail.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.