diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2012-04-09 00:18:28 -0400 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-04-13 06:29:26 -0400 |
commit | af8a2fe12fae1b59178dc96e396e5665bcbea7da (patch) | |
tree | fd8d1e36ff014148a16a34c501806d464c5cc0e8 /arch/arm/mach-shmobile/board-mackerel.c | |
parent | f2390880ec0264a0ed26b32c23bc23435b4297da (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/arm/mach-shmobile/board-mackerel.c')
-rw-r--r-- | arch/arm/mach-shmobile/board-mackerel.c | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/arch/arm/mach-shmobile/board-mackerel.c b/arch/arm/mach-shmobile/board-mackerel.c index f49e28abe0ab..4a461384d27c 100644 --- a/arch/arm/mach-shmobile/board-mackerel.c +++ b/arch/arm/mach-shmobile/board-mackerel.c | |||
@@ -53,6 +53,7 @@ | |||
53 | #include <media/soc_camera.h> | 53 | #include <media/soc_camera.h> |
54 | #include <media/soc_camera_platform.h> | 54 | #include <media/soc_camera_platform.h> |
55 | #include <sound/sh_fsi.h> | 55 | #include <sound/sh_fsi.h> |
56 | #include <sound/simple_card.h> | ||
56 | 57 | ||
57 | #include <mach/common.h> | 58 | #include <mach/common.h> |
58 | #include <mach/irqs.h> | 59 | #include <mach/irqs.h> |
@@ -941,17 +942,25 @@ static struct platform_device fsi_device = { | |||
941 | }, | 942 | }, |
942 | }; | 943 | }; |
943 | 944 | ||
944 | static struct fsi_ak4642_info fsi2_ak4643_info = { | 945 | static struct asoc_simple_dai_init_info fsi2_ak4643_init_info = { |
946 | .fmt = SND_SOC_DAIFMT_LEFT_J, | ||
947 | .codec_daifmt = SND_SOC_DAIFMT_CBM_CFM, | ||
948 | .cpu_daifmt = SND_SOC_DAIFMT_CBS_CFS, | ||
949 | .sysclk = 11289600, | ||
950 | }; | ||
951 | |||
952 | static struct asoc_simple_card_info fsi2_ak4643_info = { | ||
945 | .name = "AK4643", | 953 | .name = "AK4643", |
946 | .card = "FSI2A-AK4643", | 954 | .card = "FSI2A-AK4643", |
947 | .cpu_dai = "fsia-dai", | 955 | .cpu_dai = "fsia-dai", |
948 | .codec = "ak4642-codec.0-0013", | 956 | .codec = "ak4642-codec.0-0013", |
949 | .platform = "sh_fsi2", | 957 | .platform = "sh_fsi2", |
950 | .id = FSI_PORT_A, | 958 | .codec_dai = "ak4642-hifi", |
959 | .init = &fsi2_ak4643_init_info, | ||
951 | }; | 960 | }; |
952 | 961 | ||
953 | static struct platform_device fsi_ak4643_device = { | 962 | static struct platform_device fsi_ak4643_device = { |
954 | .name = "fsi-ak4642-audio", | 963 | .name = "asoc-simple-card", |
955 | .dev = { | 964 | .dev = { |
956 | .platform_data = &fsi2_ak4643_info, | 965 | .platform_data = &fsi2_ak4643_info, |
957 | }, | 966 | }, |