diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2011-01-12 01:32:07 -0500 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2011-01-12 18:21:18 -0500 |
commit | a193436c5d52e8398af22462beaa03407fa89b2e (patch) | |
tree | b28c7de2dc48e8f249039c8dc408c10bd3b2ddfa /sound/soc/sh | |
parent | aea170a099793abcd0e6de46b947458073204241 (diff) |
ASoC: sh: fsi-ak4642: fixup platform device id
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Acked-by: Liam Girdwood <lrg@slimlogic.co.uk>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/sh')
-rw-r--r-- | sound/soc/sh/fsi-ak4642.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/sound/soc/sh/fsi-ak4642.c b/sound/soc/sh/fsi-ak4642.c index a14820ac9665..56cd34223100 100644 --- a/sound/soc/sh/fsi-ak4642.c +++ b/sound/soc/sh/fsi-ak4642.c | |||
@@ -18,6 +18,7 @@ struct fsi_ak4642_data { | |||
18 | const char *cpu_dai; | 18 | const char *cpu_dai; |
19 | const char *codec; | 19 | const char *codec; |
20 | const char *platform; | 20 | const char *platform; |
21 | int id; | ||
21 | }; | 22 | }; |
22 | 23 | ||
23 | static int fsi_ak4642_dai_init(struct snd_soc_pcm_runtime *rtd) | 24 | static int fsi_ak4642_dai_init(struct snd_soc_pcm_runtime *rtd) |
@@ -60,7 +61,7 @@ static int fsi_ak4642_probe(struct platform_device *pdev) | |||
60 | 61 | ||
61 | pdata = (struct fsi_ak4642_data *)id_entry->driver_data; | 62 | pdata = (struct fsi_ak4642_data *)id_entry->driver_data; |
62 | 63 | ||
63 | fsi_snd_device = platform_device_alloc("soc-audio", FSI_PORT_A); | 64 | fsi_snd_device = platform_device_alloc("soc-audio", pdata->id); |
64 | if (!fsi_snd_device) | 65 | if (!fsi_snd_device) |
65 | goto out; | 66 | goto out; |
66 | 67 | ||
@@ -93,6 +94,7 @@ static struct fsi_ak4642_data fsi_a_ak4642 = { | |||
93 | .cpu_dai = "fsia-dai", | 94 | .cpu_dai = "fsia-dai", |
94 | .codec = "ak4642-codec.0-0012", | 95 | .codec = "ak4642-codec.0-0012", |
95 | .platform = "sh_fsi.0", | 96 | .platform = "sh_fsi.0", |
97 | .id = FSI_PORT_A, | ||
96 | }; | 98 | }; |
97 | 99 | ||
98 | static struct fsi_ak4642_data fsi_b_ak4642 = { | 100 | static struct fsi_ak4642_data fsi_b_ak4642 = { |
@@ -101,6 +103,7 @@ static struct fsi_ak4642_data fsi_b_ak4642 = { | |||
101 | .cpu_dai = "fsib-dai", | 103 | .cpu_dai = "fsib-dai", |
102 | .codec = "ak4642-codec.0-0012", | 104 | .codec = "ak4642-codec.0-0012", |
103 | .platform = "sh_fsi.0", | 105 | .platform = "sh_fsi.0", |
106 | .id = FSI_PORT_B, | ||
104 | }; | 107 | }; |
105 | 108 | ||
106 | static struct fsi_ak4642_data fsi_a_ak4643 = { | 109 | static struct fsi_ak4642_data fsi_a_ak4643 = { |
@@ -109,6 +112,7 @@ static struct fsi_ak4642_data fsi_a_ak4643 = { | |||
109 | .cpu_dai = "fsia-dai", | 112 | .cpu_dai = "fsia-dai", |
110 | .codec = "ak4642-codec.0-0013", | 113 | .codec = "ak4642-codec.0-0013", |
111 | .platform = "sh_fsi.0", | 114 | .platform = "sh_fsi.0", |
115 | .id = FSI_PORT_A, | ||
112 | }; | 116 | }; |
113 | 117 | ||
114 | static struct fsi_ak4642_data fsi_b_ak4643 = { | 118 | static struct fsi_ak4642_data fsi_b_ak4643 = { |
@@ -117,6 +121,7 @@ static struct fsi_ak4642_data fsi_b_ak4643 = { | |||
117 | .cpu_dai = "fsib-dai", | 121 | .cpu_dai = "fsib-dai", |
118 | .codec = "ak4642-codec.0-0013", | 122 | .codec = "ak4642-codec.0-0013", |
119 | .platform = "sh_fsi.0", | 123 | .platform = "sh_fsi.0", |
124 | .id = FSI_PORT_B, | ||
120 | }; | 125 | }; |
121 | 126 | ||
122 | static struct fsi_ak4642_data fsi2_a_ak4642 = { | 127 | static struct fsi_ak4642_data fsi2_a_ak4642 = { |
@@ -125,6 +130,7 @@ static struct fsi_ak4642_data fsi2_a_ak4642 = { | |||
125 | .cpu_dai = "fsia-dai", | 130 | .cpu_dai = "fsia-dai", |
126 | .codec = "ak4642-codec.0-0012", | 131 | .codec = "ak4642-codec.0-0012", |
127 | .platform = "sh_fsi2", | 132 | .platform = "sh_fsi2", |
133 | .id = FSI_PORT_A, | ||
128 | }; | 134 | }; |
129 | 135 | ||
130 | static struct fsi_ak4642_data fsi2_b_ak4642 = { | 136 | static struct fsi_ak4642_data fsi2_b_ak4642 = { |
@@ -133,6 +139,7 @@ static struct fsi_ak4642_data fsi2_b_ak4642 = { | |||
133 | .cpu_dai = "fsib-dai", | 139 | .cpu_dai = "fsib-dai", |
134 | .codec = "ak4642-codec.0-0012", | 140 | .codec = "ak4642-codec.0-0012", |
135 | .platform = "sh_fsi2", | 141 | .platform = "sh_fsi2", |
142 | .id = FSI_PORT_B, | ||
136 | }; | 143 | }; |
137 | 144 | ||
138 | static struct fsi_ak4642_data fsi2_a_ak4643 = { | 145 | static struct fsi_ak4642_data fsi2_a_ak4643 = { |
@@ -141,6 +148,7 @@ static struct fsi_ak4642_data fsi2_a_ak4643 = { | |||
141 | .cpu_dai = "fsia-dai", | 148 | .cpu_dai = "fsia-dai", |
142 | .codec = "ak4642-codec.0-0013", | 149 | .codec = "ak4642-codec.0-0013", |
143 | .platform = "sh_fsi2", | 150 | .platform = "sh_fsi2", |
151 | .id = FSI_PORT_A, | ||
144 | }; | 152 | }; |
145 | 153 | ||
146 | static struct fsi_ak4642_data fsi2_b_ak4643 = { | 154 | static struct fsi_ak4642_data fsi2_b_ak4643 = { |
@@ -149,6 +157,7 @@ static struct fsi_ak4642_data fsi2_b_ak4643 = { | |||
149 | .cpu_dai = "fsib-dai", | 157 | .cpu_dai = "fsib-dai", |
150 | .codec = "ak4642-codec.0-0013", | 158 | .codec = "ak4642-codec.0-0013", |
151 | .platform = "sh_fsi2", | 159 | .platform = "sh_fsi2", |
160 | .id = FSI_PORT_B, | ||
152 | }; | 161 | }; |
153 | 162 | ||
154 | static struct platform_device_id fsi_id_table[] = { | 163 | static struct platform_device_id fsi_id_table[] = { |