diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2012-04-09 00:19:25 -0400 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-04-13 06:29:27 -0400 |
commit | 064bfada66779d95686cacdcbb17551e2c0bf66b (patch) | |
tree | dea8cac60e6f988846d158569f4e61aa2f7536fd /sound/soc/sh/fsi-da7210.c | |
parent | fa063b48046c1f30cb06898559bb34935ade74e1 (diff) |
ASoC: sh: fsi: use simple-card instead of fsi-da7210
This patch uses simple-card driver instead of fsi-da7210 on each board.
To select DA7210 driver, each boards select it on Kconfig.
This patch removes fsi-da7210 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 'sound/soc/sh/fsi-da7210.c')
-rw-r--r-- | sound/soc/sh/fsi-da7210.c | 81 |
1 files changed, 0 insertions, 81 deletions
diff --git a/sound/soc/sh/fsi-da7210.c b/sound/soc/sh/fsi-da7210.c deleted file mode 100644 index 1dd3354c7411..000000000000 --- a/sound/soc/sh/fsi-da7210.c +++ /dev/null | |||
@@ -1,81 +0,0 @@ | |||
1 | /* | ||
2 | * fsi-da7210.c | ||
3 | * | ||
4 | * Copyright (C) 2009 Renesas Solutions Corp. | ||
5 | * Kuninori Morimoto <morimoto.kuninori@renesas.com> | ||
6 | * | ||
7 | * This program is free software; you can redistribute it and/or modify it | ||
8 | * under the terms of the GNU General Public License as published by the | ||
9 | * Free Software Foundation; either version 2 of the License, or (at your | ||
10 | * option) any later version. | ||
11 | */ | ||
12 | |||
13 | #include <linux/platform_device.h> | ||
14 | #include <linux/module.h> | ||
15 | #include <sound/sh_fsi.h> | ||
16 | |||
17 | static int fsi_da7210_init(struct snd_soc_pcm_runtime *rtd) | ||
18 | { | ||
19 | struct snd_soc_dai *codec = rtd->codec_dai; | ||
20 | struct snd_soc_dai *cpu = rtd->cpu_dai; | ||
21 | int ret; | ||
22 | |||
23 | ret = snd_soc_dai_set_fmt(codec, | ||
24 | SND_SOC_DAIFMT_I2S | | ||
25 | SND_SOC_DAIFMT_CBM_CFM); | ||
26 | if (ret < 0) | ||
27 | return ret; | ||
28 | |||
29 | ret = snd_soc_dai_set_fmt(cpu, SND_SOC_DAIFMT_I2S | | ||
30 | SND_SOC_DAIFMT_CBS_CFS); | ||
31 | |||
32 | return ret; | ||
33 | } | ||
34 | |||
35 | static struct snd_soc_dai_link fsi_da7210_dai = { | ||
36 | .name = "DA7210", | ||
37 | .stream_name = "DA7210", | ||
38 | .cpu_dai_name = "fsib-dai", /* FSI B */ | ||
39 | .codec_dai_name = "da7210-hifi", | ||
40 | .platform_name = "sh_fsi.0", | ||
41 | .codec_name = "da7210-codec.0-001a", | ||
42 | .init = fsi_da7210_init, | ||
43 | }; | ||
44 | |||
45 | static struct snd_soc_card fsi_soc_card = { | ||
46 | .name = "FSI-DA7210", | ||
47 | .owner = THIS_MODULE, | ||
48 | .dai_link = &fsi_da7210_dai, | ||
49 | .num_links = 1, | ||
50 | }; | ||
51 | |||
52 | static struct platform_device *fsi_da7210_snd_device; | ||
53 | |||
54 | static int __init fsi_da7210_sound_init(void) | ||
55 | { | ||
56 | int ret; | ||
57 | |||
58 | fsi_da7210_snd_device = platform_device_alloc("soc-audio", FSI_PORT_B); | ||
59 | if (!fsi_da7210_snd_device) | ||
60 | return -ENOMEM; | ||
61 | |||
62 | platform_set_drvdata(fsi_da7210_snd_device, &fsi_soc_card); | ||
63 | ret = platform_device_add(fsi_da7210_snd_device); | ||
64 | if (ret) | ||
65 | platform_device_put(fsi_da7210_snd_device); | ||
66 | |||
67 | return ret; | ||
68 | } | ||
69 | |||
70 | static void __exit fsi_da7210_sound_exit(void) | ||
71 | { | ||
72 | platform_device_unregister(fsi_da7210_snd_device); | ||
73 | } | ||
74 | |||
75 | module_init(fsi_da7210_sound_init); | ||
76 | module_exit(fsi_da7210_sound_exit); | ||
77 | |||
78 | /* Module information */ | ||
79 | MODULE_DESCRIPTION("ALSA SoC FSI DA2710"); | ||
80 | MODULE_AUTHOR("Kuninori Morimoto <morimoto.kuninori@renesas.com>"); | ||
81 | MODULE_LICENSE("GPL"); | ||