From: Chen Liangjun Date: Wed, 25 Jul 2012 12:43:16 +0000 (+0800) Subject: ENGR00218421-3 ESAI: init platform data for p2p playback X-Git-Tag: v3.0.35-fsl~672 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=c84983e7e36f12ed742d78e3036bbbfe179f5ffd;p=karo-tx-linux.git ENGR00218421-3 ESAI: init platform data for p2p playback Set audio p2p playback params(sample rate, word width) for ESAI in board init file(ARD). Signed-off-by: Chen Liangjun --- diff --git a/arch/arm/mach-mx6/board-mx6q_sabreauto.c b/arch/arm/mach-mx6/board-mx6q_sabreauto.c index 52cf62f1f136..b80a4bc41a70 100644 --- a/arch/arm/mach-mx6/board-mx6q_sabreauto.c +++ b/arch/arm/mach-mx6/board-mx6q_sabreauto.c @@ -54,6 +54,7 @@ #include #include #include +#include #include #include @@ -1062,9 +1063,15 @@ static const struct pm_platform_data mx6q_sabreauto_pm_data __initconst = { .suspend_exit = sabreauto_suspend_exit, }; +static const struct asrc_p2p_params esai_p2p = { + .p2p_rate = 48000, + .p2p_width = ASRC_WIDTH_24_BIT, +}; + static struct mxc_audio_platform_data sab_audio_data = { .sysclk = 24576000, .codec_name = "cs42888.1-0048", + .priv = (void *)&esai_p2p, }; static struct platform_device sab_audio_device = {