[alsa-devel] [topic/asoc][PATCH] ASoC: OMAP: Add more supported sample rates into McBSP DAI driver

Originally it was put too tight limits to support only 44.1 kHz and 48 kHz sample rates in McBSP DAI driver. Extend it now to 8 kHz - 96 kHz. With 96 kHz and 2*16 bits, bit clock is 3.072 MHz < 3.125 MHz (I2S max?).
Tested on Nokia N810 with TVL320AIC33 from rates 8 - 96 kHz and on Texas Instruments Beagle with TWL4030 from rates 8 - 48 kHz.
Signed-off-by: Jarkko Nikula jarkko.nikula@nokia.com Cc: Steve Sakoman steve@sakoman.com Cc: Arun KS arunks@mistralsolutions.com --- sound/soc/omap/omap-mcbsp.c | 4 +--- 1 files changed, 1 insertions(+), 3 deletions(-)
diff --git a/sound/soc/omap/omap-mcbsp.c b/sound/soc/omap/omap-mcbsp.c index 8485a8a..3d4060b 100644 --- a/sound/soc/omap/omap-mcbsp.c +++ b/sound/soc/omap/omap-mcbsp.c @@ -36,9 +36,7 @@ #include "omap-mcbsp.h" #include "omap-pcm.h"
-#define OMAP_MCBSP_RATES (SNDRV_PCM_RATE_44100 | \ - SNDRV_PCM_RATE_48000 | \ - SNDRV_PCM_RATE_KNOT) +#define OMAP_MCBSP_RATES (SNDRV_PCM_RATE_8000_96000)
struct omap_mcbsp_data { unsigned int bus_id;

On Wed, Nov 12, 2008 at 05:05:51PM +0200, Jarkko Nikula wrote:
Originally it was put too tight limits to support only 44.1 kHz and 48 kHz sample rates in McBSP DAI driver. Extend it now to 8 kHz - 96 kHz. With 96 kHz and 2*16 bits, bit clock is 3.072 MHz < 3.125 MHz (I2S max?).
Tested on Nokia N810 with TVL320AIC33 from rates 8 - 96 kHz and on Texas Instruments Beagle with TWL4030 from rates 8 - 48 kHz.
Signed-off-by: Jarkko Nikula jarkko.nikula@nokia.com Cc: Steve Sakoman steve@sakoman.com Cc: Arun KS arunks@mistralsolutions.com
Acked-by: Mark Brown broonie@opensource.wolfsonmicro.com

On Wed, 2008-11-12 at 17:05 +0200, Jarkko Nikula wrote:
Originally it was put too tight limits to support only 44.1 kHz and 48 kHz sample rates in McBSP DAI driver. Extend it now to 8 kHz - 96 kHz. With 96 kHz and 2*16 bits, bit clock is 3.072 MHz < 3.125 MHz (I2S max?).
Tested on Nokia N810 with TVL320AIC33 from rates 8 - 96 kHz and on Texas Instruments Beagle with TWL4030 from rates 8 - 48 kHz.
Signed-off-by: Jarkko Nikula jarkko.nikula@nokia.com Cc: Steve Sakoman steve@sakoman.com
Acked-by: Steve Sakoman steve@sakoman.com

On Wed, Nov 12, 2008 at 8:35 PM, Jarkko Nikula jarkko.nikula@nokia.comwrote:
Originally it was put too tight limits to support only 44.1 kHz and 48 kHz sample rates in McBSP DAI driver. Extend it now to 8 kHz - 96 kHz. With 96 kHz and 2*16 bits, bit clock is 3.072 MHz < 3.125 MHz (I2S max?).
Tested on Nokia N810 with TVL320AIC33 from rates 8 - 96 kHz and on Texas Instruments Beagle with TWL4030 from rates 8 - 48 kHz.
Signed-off-by: Jarkko Nikula jarkko.nikula@nokia.com Cc: Steve Sakoman steve@sakoman.com Cc: Arun KS arunks@mistralsolutions.com
Acked-by: Arun KS <arunks@mistralsolutions.com
Tested this on osk5912.
participants (4)
-
Arun KS
-
Jarkko Nikula
-
Mark Brown
-
Steve Sakoman