* [PATCH] ASoC: cs42l73: If Internal MCLK is >= 6.4MHz, then set SCLK to 64*Fs.
@ 2013-03-05 19:12 Paul Handrigan
2013-03-05 20:47 ` Brian Austin
2013-03-06 4:51 ` Mark Brown
0 siblings, 2 replies; 3+ messages in thread
From: Paul Handrigan @ 2013-03-05 19:12 UTC (permalink / raw)
To: alsa-devel; +Cc: liam.r.girdwood, brian.austin, broonie, Paul Handrigan
Signed-off-by: Paul Handrigan <Paul.Handrigan@cirrus.com>
---
sound/soc/codecs/cs42l73.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/sound/soc/codecs/cs42l73.c b/sound/soc/codecs/cs42l73.c
index 6361dab..3b20c86 100644
--- a/sound/soc/codecs/cs42l73.c
+++ b/sound/soc/codecs/cs42l73.c
@@ -1180,7 +1180,11 @@ static int cs42l73_pcm_hw_params(struct snd_pcm_substream *substream,
priv->config[id].mmcc &= 0xC0;
priv->config[id].mmcc |= cs42l73_mclk_coeffs[mclk_coeff].mmcc;
priv->config[id].spc &= 0xFC;
- priv->config[id].spc |= MCK_SCLK_MCLK;
+ /* Use SCLK=64*Fs if internal MCLK >= 6.4MHz */
+ if (priv->mclk >= 6400000)
+ priv->config[id].spc |= MCK_SCLK_64FS;
+ else
+ priv->config[id].spc |= MCK_SCLK_MCLK;
} else {
/* CS42L73 Slave */
priv->config[id].spc &= 0xFC;
--
1.7.0.4
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] ASoC: cs42l73: If Internal MCLK is >= 6.4MHz, then set SCLK to 64*Fs.
2013-03-05 19:12 [PATCH] ASoC: cs42l73: If Internal MCLK is >= 6.4MHz, then set SCLK to 64*Fs Paul Handrigan
@ 2013-03-05 20:47 ` Brian Austin
2013-03-06 4:51 ` Mark Brown
1 sibling, 0 replies; 3+ messages in thread
From: Brian Austin @ 2013-03-05 20:47 UTC (permalink / raw)
To: Paul Handrigan; +Cc: liam.r.girdwood, alsa-devel, broonie, brian.austin
On Tue, 5 Mar 2013, Paul Handrigan wrote:
> Signed-off-by: Paul Handrigan <Paul.Handrigan@cirrus.com>
> ---
Acked-by: Brian Austin <brian.austin@cirrus.com>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] ASoC: cs42l73: If Internal MCLK is >= 6.4MHz, then set SCLK to 64*Fs.
2013-03-05 19:12 [PATCH] ASoC: cs42l73: If Internal MCLK is >= 6.4MHz, then set SCLK to 64*Fs Paul Handrigan
2013-03-05 20:47 ` Brian Austin
@ 2013-03-06 4:51 ` Mark Brown
1 sibling, 0 replies; 3+ messages in thread
From: Mark Brown @ 2013-03-06 4:51 UTC (permalink / raw)
To: Paul Handrigan; +Cc: liam.r.girdwood, alsa-devel, brian.austin
[-- Attachment #1.1: Type: text/plain, Size: 142 bytes --]
On Tue, Mar 05, 2013 at 01:12:56PM -0600, Paul Handrigan wrote:
> Signed-off-by: Paul Handrigan <Paul.Handrigan@cirrus.com>
Applied, thanks.
[-- Attachment #1.2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
[-- Attachment #2: Type: text/plain, Size: 0 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-03-06 4:52 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-05 19:12 [PATCH] ASoC: cs42l73: If Internal MCLK is >= 6.4MHz, then set SCLK to 64*Fs Paul Handrigan
2013-03-05 20:47 ` Brian Austin
2013-03-06 4:51 ` Mark Brown
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).