All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] davinci-mcasp: fix clockin configuration
@ 2015-01-29 15:40 Urs Fässler
  0 siblings, 0 replies; only message in thread
From: Urs Fässler @ 2015-01-29 15:40 UTC (permalink / raw)
  To: linux-omap; +Cc: urs.fassler, perex, tiwai

[-- Attachment #1: Type: text/plain, Size: 855 bytes --]

The CPU seems to be clock master independent of the configuration. Use
bitclock-master flag to decide who is clock master.

---
 sound/soc/davinci/davinci-mcasp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sound/soc/davinci/davinci-mcasp.c
b/sound/soc/davinci/davinci-mcasp.c
index 30b94d4..396cdec 100644
--- a/sound/soc/davinci/davinci-mcasp.c
+++ b/sound/soc/davinci/davinci-mcasp.c
@@ -541,7 +541,7 @@ static int davinci_mcasp_set_sysclk(struct
snd_soc_dai *dai, int clk_id,
 {
 	struct davinci_mcasp *mcasp = snd_soc_dai_get_drvdata(dai);
 -	if (dir == SND_SOC_CLOCK_OUT) {
+	if (mcasp->bclk_master) {
 		mcasp_set_bits(mcasp, DAVINCI_MCASP_AHCLKXCTL_REG, AHCLKXE);
 		mcasp_set_bits(mcasp, DAVINCI_MCASP_AHCLKRCTL_REG, AHCLKRE);
 		mcasp_set_bits(mcasp, DAVINCI_MCASP_PDIR_REG, AHCLKX);
-- 
2.1.4



[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2015-01-29 15:48 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-01-29 15:40 [PATCH 1/2] davinci-mcasp: fix clockin configuration Urs Fässler

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.