All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/6] ASoC: ad1980: Stay in 20bit mode for architectures other than blackfin
@ 2010-08-24 13:09 Uwe Kleine-König
  2010-08-24 13:09 ` [PATCH 2/6] ASoC: ad1980: fix names of a few kcontrols Uwe Kleine-König
                   ` (6 more replies)
  0 siblings, 7 replies; 16+ messages in thread
From: Uwe Kleine-König @ 2010-08-24 13:09 UTC (permalink / raw)
  To: alsa-devel, Sonic Zhang; +Cc: Sascha Hauer

From: Sascha Hauer <s.hauer@pengutronix.de>

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
---
 sound/soc/codecs/ad1980.c |   10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)

diff --git a/sound/soc/codecs/ad1980.c b/sound/soc/codecs/ad1980.c
index 70cfaec..35c0580 100644
--- a/sound/soc/codecs/ad1980.c
+++ b/sound/soc/codecs/ad1980.c
@@ -168,13 +168,21 @@ retry:
 	}
 
 	soc_ac97_ops.reset(codec->ac97);
+
+#ifdef SND_BF5XX_SOC_AD1980
 	/* Set bit 16slot in register 74h, then every slot will has only 16
 	 * bits. This command is sent out in 20bit mode, in which case the
-	 * first nibble of data is eaten by the addr. (Tag is always 16 bit)*/
+	 * first nibble of data is eaten by the addr. (Tag is always 16 bit).
+	 *
+	 * This seems to be blackfin specific. On other systems we want 20bit
+	 * mode.
+	 */
 	ac97_write(codec, AC97_AD_SERIAL_CFG, 0x9900);
+#endif
 
 	if (ac97_read(codec, AC97_RESET)  != 0x0090)
 		goto err;
+
 	return 0;
 
 err:
-- 
1.7.1

_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

^ permalink raw reply related	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2010-08-29 13:53 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-08-24 13:09 [PATCH 1/6] ASoC: ad1980: Stay in 20bit mode for architectures other than blackfin Uwe Kleine-König
2010-08-24 13:09 ` [PATCH 2/6] ASoC: ad1980: fix names of a few kcontrols Uwe Kleine-König
2010-08-27 18:11   ` Mark Brown
2010-08-24 13:09 ` [PATCH 3/6] ASoC: ad1980: remove unneeded function declaration Uwe Kleine-König
2010-08-27 18:12   ` Mark Brown
2010-08-28  8:14     ` Liam Girdwood
2010-08-29 13:53       ` Mark Brown
2010-08-24 13:09 ` [PATCH 4/6] ASoC: ad1980: make usage of register cache optional Uwe Kleine-König
2010-08-27 18:20   ` Mark Brown
2010-08-24 13:09 ` [PATCH 5/6] ASoC: ad1980: verify cache at probe time Uwe Kleine-König
2010-08-27 18:23   ` Mark Brown
2010-08-24 13:09 ` [PATCH 6/6] ASoC: ad1980: verify writes Uwe Kleine-König
2010-08-27 18:25   ` Mark Brown
2010-08-25  3:28 ` [PATCH 1/6] ASoC: ad1980: Stay in 20bit mode for architectures other than blackfin Zhang, Sonic
2010-08-25  5:03   ` Uwe Kleine-König
2010-08-27 18:06 ` Mark Brown

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.