From: Fabio Estevam <festevam@gmail.com>
To: Nicolin Chen <nicoleotsuka@gmail.com>
Cc: Fabio Estevam <fabio.estevam@nxp.com>,
"alsa-devel@alsa-project.org" <alsa-devel@alsa-project.org>,
Mark Brown <broonie@kernel.org>, Shawn Guo <shawnguo@kernel.org>,
Petr Kulhavy <brain@jikos.cz>
Subject: Re: [PATCH] ASoC: fsl_sai: Allow the SAI driver to turn on SAI_MCLK
Date: Wed, 4 May 2016 09:17:11 -0300 [thread overview]
Message-ID: <CAOMZO5CX5t4H5qVpB+e6tbEGgPR+nStArKuEtk+D0QapyzfOGA@mail.gmail.com> (raw)
In-Reply-To: <20160504070700.GA12216@Asurada>
Hi Nicolin,
On Wed, May 4, 2016 at 4:07 AM, Nicolin Chen <nicoleotsuka@gmail.com> wrote:
> I found out the mail from Zidan regarding the same GPR bit:
> http://mailman.alsa-project.org/pipermail/alsa-devel/2015-August/096401.html
>
> According to his reply, this bit also controls the clock source of MCLK2
> for the SAI. Each SAI has 3 MCLKs, but first disregarding MCLK3:
>
> When this bit gets set, the MCLK1 and MCLK2 of the corresponding SAI are
> both getting clock from CCM, and in the meantime outputting the clock via
> the PAD to external Codec chips. In this case, MCLK1 and MCLK2 have same
> clock rate, nothing special for bit clock dividing.
>
> When this bit gets clear, MCLK1 of the corresponding is still getting its
> clock from CCM while MCLK2 switches its source from CCM to the PAD. In this
> case, MCLK1 and MCLK2 can have different clock rates so as to support two
> sample rate groups: 44.1KHz and 48Khz.
>
> So, beside gating the clock output, it's more likely a clock MUX for MCLK2
> of each SAI to switch between CCM and external input.
At imx6ul.dtsi the mclk2 and mclk3 are just dummy clocks.
> Because DT property will be hard to change once we define it. I think it
> would be better to confirm this first before patching it (with Zidan or
> i.MX IC team). But the driver part, whether putting it to probe() or to
> set_dai_sysclk(), doesn't matter to me since we can change/improve it
> later as long as it follows the correct binding.
Also tried Zidan's NXP email and it also bounced, so not able to contact him.
Also don't have any contact with the audio folks in the i.MX IC team.
This binding is all about setting IMX6UL_GPR1_SAIx_MCLK_DIR or not.
So this is a very simple case:
IMX6UL_GPR1_SAIx_MCLK_DIR = 0 (this is the current behaviour)
IMX6UL_GPR1_SAIx_MCLK_DIR = 1 (this is what this patch allows)
I cannot see why this proposed binding would possibly break things or
would need a change in the future.
It's only purpose is to simply set IMX6UL_GPR1_SAIx_MCLK_DIR.
Regards,
Fabio Estevam
next prev parent reply other threads:[~2016-05-04 12:17 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-05-04 1:09 [PATCH] ASoC: fsl_sai: Allow the SAI driver to turn on SAI_MCLK Fabio Estevam
2016-05-04 1:44 ` Nicolin Chen
2016-05-04 2:01 ` Fabio Estevam
2016-05-04 7:07 ` Nicolin Chen
2016-05-04 12:17 ` Fabio Estevam [this message]
2016-05-04 17:29 ` Nicolin Chen
2016-05-04 17:41 ` Fabio Estevam
2016-05-04 17:51 ` Fabio Estevam
2016-05-04 17:55 ` Nicolin Chen
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=CAOMZO5CX5t4H5qVpB+e6tbEGgPR+nStArKuEtk+D0QapyzfOGA@mail.gmail.com \
--to=festevam@gmail.com \
--cc=alsa-devel@alsa-project.org \
--cc=brain@jikos.cz \
--cc=broonie@kernel.org \
--cc=fabio.estevam@nxp.com \
--cc=nicoleotsuka@gmail.com \
--cc=shawnguo@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;
as well as URLs for NNTP newsgroup(s).