diff options
author | Adrian Alonso <aalonso@freescale.com> | 2012-02-21 14:44:29 -0600 |
---|---|---|
committer | Adrian Alonso <aalonso@freescale.com> | 2012-02-21 16:40:50 -0600 |
commit | c5bb95440be59da1b3181eaf7b652ca678e31537 (patch) | |
tree | 540e096989558da91d7afe5e7f942d6ad6835dd5 /arch | |
parent | 6cf5923b7f3778f92cc7315753499083382191a9 (diff) |
ENGR00171079-9: mx53-ard cs42888 board sample rate settings
* Board mx53-ard cs42888 supportted sample rate settings,
pass them trough mxc_audio_codec_platform_data
* Update copyrigth year 2012
Signed-off-by: Adrian Alonso <aalonso@freescale.com>
Diffstat (limited to 'arch')
-rwxr-xr-x | arch/arm/mach-mx5/board-mx53_ard.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/arch/arm/mach-mx5/board-mx53_ard.c b/arch/arm/mach-mx5/board-mx53_ard.c index 9541210b77b1..7774b73f108a 100755 --- a/arch/arm/mach-mx5/board-mx53_ard.c +++ b/arch/arm/mach-mx5/board-mx53_ard.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2011 Freescale Semiconductor, Inc. All Rights Reserved. + * Copyright (C) 2012 Freescale Semiconductor, Inc. All Rights Reserved. */ /* @@ -28,6 +28,7 @@ #include <linux/smsc911x.h> #include <linux/i2c/pca953x.h> #include <linux/regulator/consumer.h> +#include <sound/pcm.h> #include <mach/common.h> #include <mach/hardware.h> @@ -254,6 +255,12 @@ static struct mxc_audio_platform_data mxc_surround_audio_data = { .sysclk = 24576000, }; +static struct mxc_audio_codec_platform_data cs42888_data = { + .rates = (SNDRV_PCM_RATE_48000 | + SNDRV_PCM_RATE_96000 | + SNDRV_PCM_RATE_192000), +}; + static int imx53_init_audio(void) { ard_gpio_activate_esai_ports(); @@ -320,6 +327,7 @@ static struct i2c_board_info mxc_i2c1_board_info[] __initdata = { { .type = "cs42888", .addr = 0x48, + .platform_data = (void *)&cs42888_data, }, }; |