aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sh/boards/mach-se
diff options
context:
space:
mode:
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>2012-04-09 00:18:28 -0400
committerMark Brown <broonie@opensource.wolfsonmicro.com>2012-04-13 06:29:26 -0400
commitaf8a2fe12fae1b59178dc96e396e5665bcbea7da (patch)
treefd8d1e36ff014148a16a34c501806d464c5cc0e8 /arch/sh/boards/mach-se
parentf2390880ec0264a0ed26b32c23bc23435b4297da (diff)
ASoC: sh: fsi: use simple-card instead of fsi-ak4642
This patch uses simple-card driver instead of fsi-ak4642 on each board. To select AK4642 driver, each boards select it on Kconfig. This patch removes fsi-ak4642 driver which is no longer needed Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'arch/sh/boards/mach-se')
-rw-r--r--arch/sh/boards/mach-se/7724/setup.c15
1 files changed, 12 insertions, 3 deletions
diff --git a/arch/sh/boards/mach-se/7724/setup.c b/arch/sh/boards/mach-se/7724/setup.c
index c540b16547c3..5cc5ed44d9af 100644
--- a/arch/sh/boards/mach-se/7724/setup.c
+++ b/arch/sh/boards/mach-se/7724/setup.c
@@ -28,6 +28,7 @@
28#include <video/sh_mobile_lcdc.h> 28#include <video/sh_mobile_lcdc.h>
29#include <media/sh_mobile_ceu.h> 29#include <media/sh_mobile_ceu.h>
30#include <sound/sh_fsi.h> 30#include <sound/sh_fsi.h>
31#include <sound/simple_card.h>
31#include <asm/io.h> 32#include <asm/io.h>
32#include <asm/heartbeat.h> 33#include <asm/heartbeat.h>
33#include <asm/clock.h> 34#include <asm/clock.h>
@@ -304,17 +305,25 @@ static struct platform_device fsi_device = {
304 }, 305 },
305}; 306};
306 307
307static struct fsi_ak4642_info fsi_ak4642_info = { 308static struct asoc_simple_dai_init_info fsi2_ak4642_init_info = {
309 .fmt = SND_SOC_DAIFMT_LEFT_J,
310 .codec_daifmt = SND_SOC_DAIFMT_CBM_CFM,
311 .cpu_daifmt = SND_SOC_DAIFMT_CBS_CFS,
312 .sysclk = 11289600,
313};
314
315static struct asoc_simple_card_info fsi_ak4642_info = {
308 .name = "AK4642", 316 .name = "AK4642",
309 .card = "FSIA-AK4642", 317 .card = "FSIA-AK4642",
310 .cpu_dai = "fsia-dai", 318 .cpu_dai = "fsia-dai",
311 .codec = "ak4642-codec.0-0012", 319 .codec = "ak4642-codec.0-0012",
312 .platform = "sh_fsi.0", 320 .platform = "sh_fsi.0",
313 .id = FSI_PORT_A, 321 .codec_dai = "ak4642-hifi",
322 .init = &fsi2_ak4642_init_info,
314}; 323};
315 324
316static struct platform_device fsi_ak4642_device = { 325static struct platform_device fsi_ak4642_device = {
317 .name = "fsi-ak4642-audio", 326 .name = "asoc-simple-card",
318 .dev = { 327 .dev = {
319 .platform_data = &fsi_ak4642_info, 328 .platform_data = &fsi_ak4642_info,
320 }, 329 },