ASoC: support more sample rates on raumfeld devices
authorDaniel Mack <daniel@caiaq.de>
Fri, 15 Jan 2010 16:36:49 +0000 (17:36 +0100)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Fri, 15 Jan 2010 17:28:41 +0000 (17:28 +0000)
commita421296840379aee7d00ec4a28ecfe7e697a0a44
tree93e1b3cb7a2a343e20ea754776bf4535aa5184a3
parent6aababdf20bb8892023bb8df136514d7679e4959
ASoC: support more sample rates on raumfeld devices

Add support for sample rates other than 44100Khz on raumfeld audio
devices. At startup time, call snd_soc_dai_set_sysclk() with 0 as 'freq'
argument so it offers all the sample rates. Later, the function is
called again to give proper constraints.

Use the external audio clock generator to provide double data rate
clocks as the PXA's internal baud generator does anything but what's
described in the datasheets.

Signed-off-by: Daniel Mack <daniel@caiaq.de>
Cc: Mark Brown <broonie@opensource.wolfsonmicro.com>
Cc: Timur Tabi <timur@freescale.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/pxa/raumfeld.c