All of lore.kernel.org
 help / color / mirror / Atom feed
From: Markus Pargmann <mpa@pengutronix.de>
To: Mark Brown <broonie@kernel.org>
Cc: Fabio Estevam <fabio.estevam@freescale.com>,
	alsa-devel@alsa-project.org, Lars-Peter Clausen <lars@metafoo.de>,
	devicetree-discuss@lists.ozlabs.org,
	Liam Girdwood <lgirdwood@gmail.com>, Timur Tabi <timur@tabi.org>,
	Grant Likely <grant.likely@secretlab.ca>,
	Sascha Hauer <kernel@pengutronix.de>,
	Shawn Guo <shawn.guo@linaro.org>,
	linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH v9 04/10] ASoC: fsl-ssi: Add support for imx-pcm-fiq
Date: Sat, 6 Jul 2013 19:13:23 +0200	[thread overview]
Message-ID: <20130706171323.GG16871@s25.your-server.de> (raw)
In-Reply-To: <20130703160637.GQ27646@sirena.org.uk>

Hi Mark,

On Wed, Jul 03, 2013 at 05:06:37PM +0100, Mark Brown wrote:
> On Thu, Jun 20, 2013 at 03:20:23PM +0200, Markus Pargmann wrote:
> 
> > +	ssi_private->use_dma = !of_property_read_bool(np, "fsl,imx-fiq");
> > +
> 
> This binding should be documented.  I'm not sure it really needs to be
> a binding, though - is it not possible for the driver to just figure out
> that DMA won't work automatically (for example by looking at the CODEC
> in use)?  I'm not sure this is a good name either, it should be saying
> why the FIQ is needed rather than saying that we should use the FIQ.

I think fsl_ssi_startup is the first function in which we know which
codec is connected to fsl-ssi. There we have access to the pcm runtime,
which stores the codec used. But that is too late for the ssi setup.

I could use of_find_compatible_node to search for the wm9712 codec, but
that would assume that there is only one codec attached to the system.

Perhaps "fsl,fiq-filter-codec-stream" is a better name for the binding?

Regards,

Markus

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

WARNING: multiple messages have this Message-ID (diff)
From: mpa@pengutronix.de (Markus Pargmann)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v9 04/10] ASoC: fsl-ssi: Add support for imx-pcm-fiq
Date: Sat, 6 Jul 2013 19:13:23 +0200	[thread overview]
Message-ID: <20130706171323.GG16871@s25.your-server.de> (raw)
In-Reply-To: <20130703160637.GQ27646@sirena.org.uk>

Hi Mark,

On Wed, Jul 03, 2013 at 05:06:37PM +0100, Mark Brown wrote:
> On Thu, Jun 20, 2013 at 03:20:23PM +0200, Markus Pargmann wrote:
> 
> > +	ssi_private->use_dma = !of_property_read_bool(np, "fsl,imx-fiq");
> > +
> 
> This binding should be documented.  I'm not sure it really needs to be
> a binding, though - is it not possible for the driver to just figure out
> that DMA won't work automatically (for example by looking at the CODEC
> in use)?  I'm not sure this is a good name either, it should be saying
> why the FIQ is needed rather than saying that we should use the FIQ.

I think fsl_ssi_startup is the first function in which we know which
codec is connected to fsl-ssi. There we have access to the pcm runtime,
which stores the codec used. But that is too late for the ssi setup.

I could use of_find_compatible_node to search for the wm9712 codec, but
that would assume that there is only one codec attached to the system.

Perhaps "fsl,fiq-filter-codec-stream" is a better name for the binding?

Regards,

Markus

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

  reply	other threads:[~2013-07-06 17:13 UTC|newest]

Thread overview: 52+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-20 13:20 ASoC: fsl-ssi: ac97-slave support Markus Pargmann
2013-06-20 13:20 ` Markus Pargmann
     [not found] ` <1371734429-6081-1-git-send-email-mpa-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>
2013-06-20 13:20   ` [PATCH v9 01/10] ASoC: imx-pcm-dma: DT support Markus Pargmann
2013-06-20 13:20     ` Markus Pargmann
2013-06-23 17:49     ` Timur Tabi
2013-06-23 17:49       ` Timur Tabi
     [not found]       ` <51C7351D.9080004-N01EOCouUvQ@public.gmane.org>
2013-07-05 13:56         ` Markus Pargmann
2013-07-05 13:56           ` Markus Pargmann
     [not found]     ` <1371734429-6081-2-git-send-email-mpa-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>
2013-07-03 16:02       ` Mark Brown
2013-07-03 16:02         ` Mark Brown
2013-06-20 13:20   ` [PATCH v9 02/10] ASoC: imx-pcm-fiq: Introduce pcm-fiq-params Markus Pargmann
2013-06-20 13:20     ` Markus Pargmann
     [not found]     ` <1371734429-6081-3-git-send-email-mpa-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>
2013-07-03 16:02       ` Mark Brown
2013-07-03 16:02         ` Mark Brown
2013-06-20 13:20   ` [PATCH v9 03/10] ASoC: fsl: Move soc_ac97_ops from imx-ssi to fsl_ssi Markus Pargmann
2013-06-20 13:20     ` Markus Pargmann
     [not found]     ` <1371734429-6081-4-git-send-email-mpa-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>
2013-07-03 16:07       ` Mark Brown
2013-07-03 16:07         ` Mark Brown
2013-06-20 13:20   ` [PATCH v9 04/10] ASoC: fsl-ssi: Add support for imx-pcm-fiq Markus Pargmann
2013-06-20 13:20     ` Markus Pargmann
     [not found]     ` <1371734429-6081-5-git-send-email-mpa-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>
2013-07-03 16:06       ` Mark Brown
2013-07-03 16:06         ` Mark Brown
2013-07-06 17:13         ` Markus Pargmann [this message]
2013-07-06 17:13           ` Markus Pargmann
     [not found]           ` <20130706171323.GG16871-uTtddPNT4wdcDCsr1GFxkoQuADTiUCJX@public.gmane.org>
2013-07-08  8:04             ` Mark Brown
2013-07-08  8:04               ` Mark Brown
2013-06-20 13:20   ` [PATCH v9 05/10] ASoC: fsl-ssi: Use generic DMA bindings if possible Markus Pargmann
2013-06-20 13:20     ` Markus Pargmann
2013-06-20 13:20   ` [PATCH v9 06/10] ASoC: fsl-ssi: imx ac97 support Markus Pargmann
2013-06-20 13:20     ` Markus Pargmann
2013-06-20 13:20   ` [PATCH v9 07/10] ARM: imx: Export ac97 reset functions Markus Pargmann
2013-06-20 13:20     ` Markus Pargmann
2013-06-20 13:20   ` [PATCH v9 08/10] ASoC: Add phycore-ac97-dt driver Markus Pargmann
2013-06-20 13:20     ` Markus Pargmann
     [not found]     ` <1371734429-6081-9-git-send-email-mpa-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>
2013-07-03 16:17       ` Mark Brown
2013-07-03 16:17         ` Mark Brown
2013-07-07  7:19         ` Markus Pargmann
2013-07-07  7:19           ` Markus Pargmann
2013-07-07 13:16           ` Fabio Estevam
2013-07-07 13:16             ` [alsa-devel] " Fabio Estevam
2013-07-08  7:19             ` Markus Pargmann
2013-07-08  7:19               ` [alsa-devel] " Markus Pargmann
     [not found]           ` <20130707071949.GH16871-uTtddPNT4wdcDCsr1GFxkoQuADTiUCJX@public.gmane.org>
2013-07-08  8:06             ` Mark Brown
2013-07-08  8:06               ` Mark Brown
2013-06-20 13:20   ` [PATCH v9 09/10] ASoC: fsl: Move fsl-ssi binding doc to sound/ Markus Pargmann
2013-06-20 13:20     ` Markus Pargmann
     [not found]     ` <1371734429-6081-10-git-send-email-mpa-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>
2013-07-03 16:18       ` Mark Brown
2013-07-03 16:18         ` Mark Brown
2013-06-20 13:20   ` [PATCH v9 10/10] ASoC: fsl: Update fsl-ssi binding doc Markus Pargmann
2013-06-20 13:20     ` Markus Pargmann
     [not found]     ` <1371734429-6081-11-git-send-email-mpa-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>
2013-07-03 16:19       ` Mark Brown
2013-07-03 16:19         ` 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=20130706171323.GG16871@s25.your-server.de \
    --to=mpa@pengutronix.de \
    --cc=alsa-devel@alsa-project.org \
    --cc=broonie@kernel.org \
    --cc=devicetree-discuss@lists.ozlabs.org \
    --cc=fabio.estevam@freescale.com \
    --cc=grant.likely@secretlab.ca \
    --cc=kernel@pengutronix.de \
    --cc=lars@metafoo.de \
    --cc=lgirdwood@gmail.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=shawn.guo@linaro.org \
    --cc=timur@tabi.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.