From: Sylwester Nawrocki <s.nawrocki@samsung.com>
To: Mark Brown <broonie@kernel.org>
Cc: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>,
alsa-devel@alsa-project.org, lee.jones@linaro.org,
linux-kernel@vger.kernel.org
Subject: Re: [alsa-devel] [RFC PATCH] mfd: arizona: Add gating of external MCLKn clocks
Date: Tue, 23 Aug 2016 18:44:57 +0200 [thread overview]
Message-ID: <0c0378e7-918b-1545-1655-43293aed4c8d@samsung.com> (raw)
In-Reply-To: <20160822174104.GT22076@sirena.org.uk>
On 08/22/2016 07:41 PM, Mark Brown wrote:
> On Mon, Aug 22, 2016 at 07:22:47PM +0200, Sylwester Nawrocki wrote:
>
>> If we provided an interface like:
>
>> struct clk * arizona_get_mclk(struct arizona *arizona, int id);
>> void arizona_put_mclk(struct clk *clk);
>
>> the machine driver would need to get hold of struct arizona*,
>> which is not that straightforward if we are given only CODEC
>> of_node (it can be a child of I2C or SPI bus).
>
> We could add an interface for the machine driver to retrieve a clock
> from the CODEC as a transition measure...
That works for me. Is the long term plan to control the CODEC's clocks
through the common clock API in machine drivers and phase out calls
like snd_soc_codec_set_pll(), snd_soc_codec_set_sysclk()?
>> Then how about specifying MCLK in the sound node and using
>> regular devm_clk_get()?
>
> This is what we're trying to avoid?
Indeed, sorry, I just started getting confused of what are acceptable
tradeoffs here.
next prev parent reply other threads:[~2016-08-23 16:45 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-08-19 17:17 Sylwester Nawrocki
2016-08-22 9:22 ` Charles Keepax
2016-08-22 17:22 ` [alsa-devel] " Sylwester Nawrocki
2016-08-22 17:41 ` Mark Brown
2016-08-23 16:44 ` Sylwester Nawrocki [this message]
2016-08-23 16:28 ` Charles Keepax
2016-08-25 10:18 ` Sylwester Nawrocki
2016-08-25 13:02 ` Charles Keepax
2016-08-25 13:26 ` Sylwester Nawrocki
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=0c0378e7-918b-1545-1655-43293aed4c8d@samsung.com \
--to=s.nawrocki@samsung.com \
--cc=alsa-devel@alsa-project.org \
--cc=broonie@kernel.org \
--cc=ckeepax@opensource.wolfsonmicro.com \
--cc=lee.jones@linaro.org \
--cc=linux-kernel@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®