devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Mark Brown <broonie@kernel.org>
To: Sean Cross <xobs@kosagi.com>
Cc: mark.rutland@arm.com, Fabio Estevam <fabio.estevam@freescale.com>,
	alsa-devel@alsa-project.org, lars@metafoo.de,
	devicetree@vger.kernel.org, Takashi Iwai <tiwai@suse.de>,
	Nicolin Chen <b42378@freescale.com>,
	Liam Girdwood <lgirdwood@gmail.com>,
	Rob Herring <robh+dt@kernel.org>,
	bunnie@kosagi.com, Philipp Zabel <p.zabel@pengutronix.de>,
	Grant Likely <grant.likely@linaro.org>,
	Shawn Guo <shawn.guo@linaro.org>
Subject: Re: [PATCH v4 3/3] ASoC: fsl: add imx-es8328 machine driver
Date: Wed, 18 Jun 2014 11:31:11 +0100	[thread overview]
Message-ID: <20140618103111.GH5099@sirena.org.uk> (raw)
In-Reply-To: <53A1687C.9010705@kosagi.com>


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

On Wed, Jun 18, 2014 at 06:22:52PM +0800, Sean Cross wrote:
> On 06/18/14 18:02, Mark Brown wrote:

> > This should be handled by the clock bindings not open coded in the
> > driver - leaving this here most likely won't play nicely when the clock
> > API can configure the defaults for the tree.  There is supposed to be
> > support for setting default clock trees going in (or perhaps already in)
> > the clock bindings.

> Can you give me more information on it?  Currently, it looks like most
> boards use a 24 MHz clock, judging from this comment in
> mach-imx/clk-imx6q.c:

Look at the clock API, this stuff was introduced in the last merge
window if it's there yet at all.

> This codec requires the more unusual 22.5792 MHz clock.  What is the
> appropriate method of obtaining this particular frequency?

clk_set_rate() on the directly connected clock, the problem is fiddling
about with the parenting rather than setting the rate.

> > No, this is broken.  The CODEC should request its own supplies which
> > need to correspond to the supplies the physical device has and failing
> > to get the supplies should be a fatal error unless the device works
> > without power (in which case why bother enablin them at all?).

> Not all codecs have power supplies.  Most don't, in fact, it's just this

The manufactuers of those that don't are being awfully quiet about what
sounds like a rather impressive feature...

> Additionally, since the regulator is external to the codec (as it
> physically cuts 3.3V from the power supply), it doesn't make sense to
> put it in the codec driver.

I'm not sure you've quite understood what the regulator API is there
for.

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

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



  reply	other threads:[~2014-06-18 10:31 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-06-18  3:47 [PATCH v4 0/3] Add ES8328 audio codec Sean Cross
     [not found] ` <1403063242-20840-1-git-send-email-xobs-nXMMniAx+RbQT0dZR+AlfA@public.gmane.org>
2014-06-18  3:47   ` [PATCH v4 1/3] devicetree: bindings: Add Everest Semicodunctor Sean Cross
2014-06-18  3:47   ` [PATCH v4 2/3] ASoC: add es8328 codec driver Sean Cross
     [not found]     ` <1403063242-20840-3-git-send-email-xobs-nXMMniAx+RbQT0dZR+AlfA@public.gmane.org>
2014-06-18  9:45       ` Mark Brown
2014-06-18  3:47   ` [PATCH v4 3/3] ASoC: fsl: add imx-es8328 machine driver Sean Cross
     [not found]     ` <1403063242-20840-4-git-send-email-xobs-nXMMniAx+RbQT0dZR+AlfA@public.gmane.org>
2014-06-18 10:02       ` Mark Brown
     [not found]         ` <20140618100233.GE5099-GFdadSzt00ze9xe1eoZjHA@public.gmane.org>
2014-06-18 10:22           ` Sean Cross
2014-06-18 10:31             ` Mark Brown [this message]
     [not found]               ` <20140618103111.GH5099-GFdadSzt00ze9xe1eoZjHA@public.gmane.org>
2014-06-19  1:34                 ` [alsa-devel] " Sean Cross
     [not found]                   ` <53A23E1B.3070008-nXMMniAx+RbQT0dZR+AlfA@public.gmane.org>
2014-06-19 10:39                     ` Mark Brown
2014-06-19 14:27                     ` Charles Keepax
     [not found]                       ` <20140619142737.GD3412-yzvPICuk2AATkU/dhu1WVueM+bqZidxxQQ4Iyu8u01E@public.gmane.org>
2014-06-19 15:13                         ` 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=20140618103111.GH5099@sirena.org.uk \
    --to=broonie@kernel.org \
    --cc=alsa-devel@alsa-project.org \
    --cc=b42378@freescale.com \
    --cc=bunnie@kosagi.com \
    --cc=devicetree@vger.kernel.org \
    --cc=fabio.estevam@freescale.com \
    --cc=grant.likely@linaro.org \
    --cc=lars@metafoo.de \
    --cc=lgirdwood@gmail.com \
    --cc=mark.rutland@arm.com \
    --cc=p.zabel@pengutronix.de \
    --cc=robh+dt@kernel.org \
    --cc=shawn.guo@linaro.org \
    --cc=tiwai@suse.de \
    --cc=xobs@kosagi.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;
as well as URLs for NNTP newsgroup(s).