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/sh/boards | |
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/sh/boards')
-rw-r--r-- | arch/sh/boards/mach-se/7724/setup.c | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/arch/sh/boards/mach-se/7724/setup.c b/arch/sh/boards/mach-se/7724/setup.c index b747c0ab9264..b49723b21912 100644 --- a/arch/sh/boards/mach-se/7724/setup.c +++ b/arch/sh/boards/mach-se/7724/setup.c | |||
@@ -315,8 +315,20 @@ static struct platform_device fsi_device = { | |||
315 | }, | 315 | }, |
316 | }; | 316 | }; |
317 | 317 | ||
318 | static struct fsi_ak4642_info fsi_ak4642_info = { | ||
319 | .name = "AK4642", | ||
320 | .card = "FSIA-AK4642", | ||
321 | .cpu_dai = "fsia-dai", | ||
322 | .codec = "ak4642-codec.0-0012", | ||
323 | .platform = "sh_fsi.0", | ||
324 | .id = FSI_PORT_A, | ||
325 | }; | ||
326 | |||
318 | static struct platform_device fsi_ak4642_device = { | 327 | static struct platform_device fsi_ak4642_device = { |
319 | .name = "sh_fsi_a_ak4642", | 328 | .name = "fsi-ak4642-audio", |
329 | .dev = { | ||
330 | .platform_data = &fsi_ak4642_info, | ||
331 | }, | ||
320 | }; | 332 | }; |
321 | 333 | ||
322 | /* KEYSC in SoC (Needs SW33-2 set to ON) */ | 334 | /* KEYSC in SoC (Needs SW33-2 set to ON) */ |