From: Timur Tabi <timur@freescale.com>
To: Mark Brown <broonie@opensource.wolfsonmicro.com>
Cc: "alsa-devel@alsa-project.org" <alsa-devel@alsa-project.org>
Subject: Re: [PATCH 5/5] ASoC: add support for the Freescale / iVeia P1022 RDK reference board
Date: Wed, 19 Sep 2012 10:17:10 -0500 [thread overview]
Message-ID: <5059E1F6.7080804@freescale.com> (raw)
In-Reply-To: <20120919031209.GS8832@opensource.wolfsonmicro.com>
Mark Brown wrote:
> It's adding a new machine driver, that generally means a new binding.
Not for the way I defined the SSI bindings. All of the information is
stored in the SSI and codec nodes. That's why I did it that way. There
is no binding for the machine driver.
> If it's really an identical binding then it ought to at least add a new
> compatible property to the existing binding (and extend the set of
> supported CODECs for that binding).
Here's the device tree:
http://git.kernel.org/?p=linux/kernel/git/galak/powerpc.git;a=blob;f=arch/powerpc/boot/dts/p1022rdk.dts;h=51d82de223f37c12dfbb33906cac89ce551abcd2;hb=34f84b5b5bc83f4fc208cc278f572e6d926f976b
The only thing that's new is a node for the wm8960. I could create a
binding for that. I asked you in a previous email about the binding for
that codec, but you never replied.
> Personally given the thing with the interface formats and the fact that
> it's not sharing code with the other bindings for implementation of the
> binding I'd be inclined to just document it as a new binding and use it
> as the model going forwards, leaving the older bindings as legacy.
Again, the only new binding is the codec.
>>>> + /* Tell the WM8960 to set SYSCLK equal to MCLK input (bypass PLL) */
>>>> + ret = snd_soc_dai_set_clkdiv(rtd->codec_dai, WM8960_SYSCLKDIV,
>>>> + WM8960_SYSCLK_MCLK | WM8960_SYSCLK_DIV_1);
>>>> + if (ret < 0) {
>>>> + dev_err(dev, "could not set codec driver clock source\n");
>>>> + return ret;
>>>> + }
>
>>> ...we don't appear to use the PLL output anyway so why not just leave it
>>> off? As this is fixed it's better style to do the setup in late_init()
>>> or the init function for the DAI link.
>
>> I just copied this code from iVeia BSP. I'm not really sure what it does.
>
> You should just be able to drop the call to set_pll(), I expect you'll
> find that all it does is consume extra power.
Ok, I'll try it. I have no way to measure power consumption, however.
>> I almost never do this, and there are plenty of cases in my existing code
>> where I don't. Is this a new policy?
>
> It's not new, it's always been good practice - if something fails we
> should do as much as possible to tell the user why.
Ok.
>> This is the same code as my other two machine drivers that I've been using
>> for years. It's part of the SSI binding. Do you want me to change the
>> binding and drop the properties?
>
> Well, the existing bindings are out there so can't really be changed but
> we should do something better going forwards.
Fair enough. I created those bindings because, back then, I had no idea
whether they would be needed or not. Now that I've created three boards
that use the SSI, I see that it's not helpful. I can fix that.
--
Timur Tabi
Linux kernel developer at Freescale
next prev parent reply other threads:[~2012-09-19 15:17 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-09-14 21:14 [PATCH 1/5] [v3] ASoC: fsl: use snd_soc_register_card to register the card Timur Tabi
2012-09-14 21:14 ` [PATCH 2/5] ASoC: fsl: move machine drivers to late_initcall() Timur Tabi
2012-09-19 2:35 ` Mark Brown
2012-09-14 21:14 ` [PATCH 3/5] ASoC: fsl: remove unnecessary call to dma_unmap_single Timur Tabi
2012-09-19 2:35 ` Mark Brown
2012-09-14 21:14 ` [PATCH 4/5] ASoC: wm8960: add support for big-endian audio samples Timur Tabi
2012-09-19 2:34 ` Mark Brown
2012-09-19 2:58 ` Tabi Timur-B04825
2012-09-19 3:13 ` Mark Brown
2012-09-14 21:14 ` [PATCH 5/5] ASoC: add support for the Freescale / iVeia P1022 RDK reference board Timur Tabi
2012-09-19 2:32 ` Mark Brown
2012-09-19 2:47 ` Tabi Timur-B04825
2012-09-19 3:12 ` Mark Brown
2012-09-19 15:17 ` Timur Tabi [this message]
2012-09-19 2:35 ` [PATCH 1/5] [v3] ASoC: fsl: use snd_soc_register_card to register the card 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=5059E1F6.7080804@freescale.com \
--to=timur@freescale.com \
--cc=alsa-devel@alsa-project.org \
--cc=broonie@opensource.wolfsonmicro.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.