ASoC: bells: Up clock rate to 48kHz and 512fs
Subsystems (3)
PATCH 1/1 ASoC: bells: Up clock rate to 48kHz and 512fs
The current WM0010 firmware images expect a 48kHz * 512fs clkin.
Signed-off-by Dimitris Papastamos <[email protected]>
--- sound/soc/samsung/bells.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
sound/soc/samsung/bells.c +2 -2
@@ -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
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.