diff options
author | Adrian Alonso <aalonso@freescale.com> | 2012-02-17 15:09:31 -0600 |
---|---|---|
committer | Adrian Alonso <aalonso@freescale.com> | 2012-02-21 16:40:50 -0600 |
commit | 8a6f9cc8a563bb892027c61481b2f7806456104e (patch) | |
tree | c206c8645ea9a488f209318c0fb5f7d5ebf3e090 /arch/arm/mach-mx6 | |
parent | b27c221d1b945ca45c8554bc2881084a06061d8e (diff) |
ENGR00171079-5 imx6q-sabreauto set supportted sample rates
* cs42888 set imx6q-sabreauto supportted play/record sample rates
master clk signal is a fixed source clock @24576000Mhz, thus
limit the play/record sample rates lrclk.
Signed-off-by: Adrian Alonso <aalonso@freescale.com>
Diffstat (limited to 'arch/arm/mach-mx6')
-rw-r--r-- | arch/arm/mach-mx6/board-mx6q_sabreauto.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/arm/mach-mx6/board-mx6q_sabreauto.c b/arch/arm/mach-mx6/board-mx6q_sabreauto.c index cff1fddfb638..1c9db717b45f 100644 --- a/arch/arm/mach-mx6/board-mx6q_sabreauto.c +++ b/arch/arm/mach-mx6/board-mx6q_sabreauto.c @@ -50,6 +50,7 @@ #include <linux/regulator/consumer.h> #include <linux/regulator/machine.h> #include <linux/regulator/fixed.h> +#include <sound/pcm.h> #include <mach/common.h> #include <mach/hardware.h> @@ -754,6 +755,12 @@ static struct imxi2c_platform_data mx6q_sabreauto_i2c1_data = { .bitrate = 100000, }; +static struct mxc_audio_codec_platform_data cs42888_data = { + .rates = (SNDRV_PCM_RATE_48000 | + SNDRV_PCM_RATE_96000 | + SNDRV_PCM_RATE_192000), +}; + static struct i2c_board_info mxc_i2c2_board_info[] __initdata = { { I2C_BOARD_INFO("max7310", 0x30), @@ -791,6 +798,7 @@ static struct i2c_board_info mxc_i2c1_board_info[] __initdata = { }, { I2C_BOARD_INFO("cs42888", 0x48), + .platform_data = (void *)&cs42888_data, }, }; |