]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ENGR00219595 MX6Q ARM2: Add init data for P2P playback
authorChen Liangjun <b36089@freescale.com>
Tue, 7 Aug 2012 03:05:22 +0000 (11:05 +0800)
committerOliver Wendt <ow@karo-electronics.de>
Mon, 30 Sep 2013 12:12:38 +0000 (14:12 +0200)
Add init data for ESAI ASRC P2P playback in ARM2 board init file.

Signed-off-by: Chen Liangjun <b36089@freescale.com>
arch/arm/mach-mx6/board-mx6q_arm2.c

index 58edfad9061a3b67bf2643e6b3d7ed28930c3a55..5d9600dc8db9b51e2a7294815d2eff7861092df4 100644 (file)
@@ -52,6 +52,8 @@
 #include <linux/regulator/fixed.h>
 #include <linux/mfd/max17135.h>
 #include <sound/pcm.h>
+#include <linux/mxc_asrc.h>
+
 
 #include <mach/common.h>
 #include <mach/hardware.h>
@@ -1557,8 +1559,14 @@ static const struct pm_platform_data mx6_arm2_pm_data __initconst = {
        .suspend_exit   = arm2_suspend_exit,
 };
 
+static const struct asrc_p2p_params esai_p2p __initconst = {
+       .p2p_rate = 44100,
+       .p2p_width = ASRC_WIDTH_24_BIT,
+};
+
 static struct mxc_audio_platform_data sab_audio_data = {
        .sysclk = 16934400,
+       .priv = (void *)&esai_p2p,
 };
 
 static struct platform_device sab_audio_device = {