Title: [8696] trunk/sound/soc/codecs/adau1373.c: correct some code mistakes
Revision
8696
Author
cliff
Date
2010-05-10 03:22:35 -0400 (Mon, 10 May 2010)

Log Message

correct some code mistakes

Modified Paths


Diff

Modified: trunk/sound/soc/codecs/adau1373.c (8695 => 8696)


--- trunk/sound/soc/codecs/adau1373.c	2010-05-10 05:21:50 UTC (rev 8695)
+++ trunk/sound/soc/codecs/adau1373.c	2010-05-10 07:22:35 UTC (rev 8696)
@@ -658,7 +658,7 @@
 		break;
 	}
 	reg = snd_soc_read(codec, ADAU_DAIA);
-	snd_soc_write(codec, ADAU_DAIACTL, reg | dai_ctl);
+	snd_soc_write(codec, ADAU_DAIA, reg | dai_ctl);
 	snd_soc_write(codec, ADAU_PLLACTL, 0x00);
 	snd_soc_write(codec, ADAU_PLLACTL6, 0x01);
 
@@ -961,12 +961,11 @@
 	adau1373->in_chan_mask = CAP_INPA;
 
 	/* Capture settings */
-#ifdef DIGMIC
+#if DIGMIC
 	/* Digital microphone A */
 	snd_soc_write(codec, ADAU_DMICCTL, 0x01);
 #else
-
-	snd_soc_write(codec, ADAU1373_INPUTMODE, 0x00);
+	snd_soc_write(codec, ADAU_INPMODE, 0x00);
 	/* Input volume gain: 0 db */
 	snd_soc_write(codec, ADAU_IN1LCTL, 0x0D);
 	snd_soc_write(codec, ADAU_IN1RCTL, 0x0D);
@@ -997,7 +996,7 @@
 	snd_soc_write(codec, ADAU_LCDOUTP, 0x1F);
 
 	/* clock souce: PLL1, FS, 64 bits per frame */
-	snd_soc_write(codec, ADAU_BCLKDIVA, 0x1A);
+	snd_soc_write(codec, ADAU_BCLKDIVA, 0x02);
 
 
 
_______________________________________________
Linux-kernel-commits mailing list
[email protected]
https://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits

Reply via email to