diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2011-11-23 19:55:34 -0500 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2011-11-24 05:31:26 -0500 |
commit | 45f3121615b2b354f7d95d30f795bc5fe0043e92 (patch) | |
tree | 25f1e1be27e08c5b955fb5b31150a47032df1251 /arch/arm/mach-shmobile/board-mackerel.c | |
parent | 39afd66cead742e99c051d6f3b07f89d09eebbbb (diff) |
ASoC: fsi-ak4642: modify specification method of FSI / ak464x
Current fsi-ak4642 was using id_entry name in order to specify
FSI port and ak464x codec.
But it was no sense, no flexibility.
Platform can specify FSI/ak464x pair by this patch.
Acked-by: Paul Mundt <lethal@linux-sh.org>
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 | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/arch/arm/mach-shmobile/board-mackerel.c b/arch/arm/mach-shmobile/board-mackerel.c index 9c5e598e0e3..a2908d49a6d 100644 --- a/arch/arm/mach-shmobile/board-mackerel.c +++ b/arch/arm/mach-shmobile/board-mackerel.c | |||
@@ -990,8 +990,20 @@ static struct platform_device fsi_device = { | |||
990 | }, | 990 | }, |
991 | }; | 991 | }; |
992 | 992 | ||
993 | static struct fsi_ak4642_info fsi2_ak4643_info = { | ||
994 | .name = "AK4643", | ||
995 | .card = "FSI2A-AK4643", | ||
996 | .cpu_dai = "fsia-dai", | ||
997 | .codec = "ak4642-codec.0-0013", | ||
998 | .platform = "sh_fsi2", | ||
999 | .id = FSI_PORT_A, | ||
1000 | }; | ||
1001 | |||
993 | static struct platform_device fsi_ak4643_device = { | 1002 | static struct platform_device fsi_ak4643_device = { |
994 | .name = "sh_fsi2_a_ak4643", | 1003 | .name = "fsi-ak4642-audio", |
1004 | .dev = { | ||
1005 | .platform_data = &fsi2_ak4643_info, | ||
1006 | }, | ||
995 | }; | 1007 | }; |
996 | 1008 | ||
997 | /* | 1009 | /* |