[alsa-devel] [PATCH] ASoC: bells: Up clock rate to 48kHz and 512fs
The current WM0010 firmware images expect a 48kHz * 512fs clkin.
Signed-off-by: Dimitris Papastamos dp@opensource.wolfsonmicro.com --- sound/soc/samsung/bells.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/sound/soc/samsung/bells.c b/sound/soc/samsung/bells.c index 3d7ace7..c8ac240 100644 --- a/sound/soc/samsung/bells.c +++ b/sound/soc/samsung/bells.c @@ -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
On Fri, Nov 02, 2012 at 01:01:56PM +0000, Dimitris Papastamos wrote:
The current WM0010 firmware images expect a 48kHz * 512fs clkin.
That's not actually the case, it's more flexible than that also...
-#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.
participants (2)
-
Dimitris Papastamos
-
Mark Brown