Skip to contentSkip to conversation

ASoC: bells: Up clock rate to 48kHz and 512fs

PATCH In review Dimitris Papastamos 2 participants 2 messages Nov 2, 2012

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ASoC: bells: Up clock rate to 48kHz and 512fs

The current WM0010 firmware images expect a 48kHz * 512fs clkin.

---
 sound/soc/samsung/bells.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
sound/soc/samsung/bells.c +2 -2
index 3d7ace7..c8ac240 100644
@@ -27,8 +27,8 @@
  */
 #define MCLK_RATE 24576000
 
-#define SYS_AUDIO_RATE 44100
-#define SYS_MCLK_RATE  (SYS_AUDIO_RATE * 256)
+#define SYS_AUDIO_RATE 48000
+#define SYS_MCLK_RATE  (SYS_AUDIO_RATE * 512)
 
 #define DAI_AP_DSP    0
 #define DAI_DSP_CODEC 1
Signature · 1 line
1.8.0
#1 lore raw
Quoted 2 lines · Dimitris Papastamos

The current WM0010 firmware images expect a 48kHz * 512fs clkin.

That's not actually the case, it's more flexible than that also...

sound/soc/samsung/bells.c line 31

Quoted 4 lines
sound/soc/samsung/bells.c +2 -2
-#define SYS_AUDIO_RATE 44100
-#define SYS_MCLK_RATE  (SYS_AUDIO_RATE * 256)
+#define SYS_AUDIO_RATE 48000
+#define SYS_MCLK_RATE  (SYS_AUDIO_RATE * 512)

...if you're doing this you need to update the clock rates supplied to the CODECs otherwise they won't be able to generate the required audio rate.