aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/tegra
diff options
context:
space:
mode:
authorStephen Warren <swarren@nvidia.com>2011-04-12 13:40:36 -0400
committerMark Brown <broonie@opensource.wolfsonmicro.com>2011-04-18 16:33:42 -0400
commitdc0a50afa67c3dbd51211881b7568917dbbc6861 (patch)
tree4fea3479228807d65d5462aa7c2044c72b374f06 /sound/soc/tegra
parentc6d46678a1adacde05a01e51361610ce2666fe6a (diff)
ASoC: Tegra: Rename harmony.c to tegra_wm8903.c
Soon, this machine driver will be updated to handle a number of Tegra boards using the WM8903 codec. Rename the file in advance to reflect this. Fix the content of tegra_wm8903.c to match the rename; replace references to Harmony board with something more generic. * s/struct tegra_harmony/struct tegra_wm8903/ * s/harmony/machine/ # variable name * Similar rename for some functions * Similar comment fix * Similar MODULE_DESCRIPTION fix Signed-off-by: Stephen Warren <swarren@nvidia.com> Acked-by: Liam Girdwood <lrg@ti.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/tegra')
-rw-r--r--sound/soc/tegra/Kconfig9
-rw-r--r--sound/soc/tegra/Makefile4
-rw-r--r--sound/soc/tegra/tegra_wm8903.c (renamed from sound/soc/tegra/harmony.c)157
3 files changed, 86 insertions, 84 deletions
diff --git a/sound/soc/tegra/Kconfig b/sound/soc/tegra/Kconfig
index 66b504f06c23..9e53fec52d60 100644
--- a/sound/soc/tegra/Kconfig
+++ b/sound/soc/tegra/Kconfig
@@ -14,13 +14,14 @@ config SND_TEGRA_SOC_I2S
14 Tegra I2S interface. You will also need to select the individual 14 Tegra I2S interface. You will also need to select the individual
15 machine drivers to support below. 15 machine drivers to support below.
16 16
17config SND_TEGRA_SOC_HARMONY 17config SND_TEGRA_SOC_WM8903
18 tristate "SoC Audio support for Tegra Harmony reference board" 18 tristate "SoC Audio support for Tegra boards using a WM8903 codec"
19 depends on SND_TEGRA_SOC && MACH_HARMONY && I2C 19 depends on SND_TEGRA_SOC && MACH_HARMONY && I2C
20 default m 20 default m
21 select SND_TEGRA_SOC_I2S 21 select SND_TEGRA_SOC_I2S
22 select SND_SOC_WM8903 22 select SND_SOC_WM8903
23 help 23 help
24 Say Y or M here if you want to add support for SoC audio on the 24 Say Y or M here if you want to add support for SoC audio on Tegra
25 Tegra Harmony reference board. 25 boards using the WM8093 codec. Currently, the only supported board
26 is Harmony.
26 27
diff --git a/sound/soc/tegra/Makefile b/sound/soc/tegra/Makefile
index fd183d3ab4f1..c9f7ea430376 100644
--- a/sound/soc/tegra/Makefile
+++ b/sound/soc/tegra/Makefile
@@ -10,6 +10,6 @@ obj-$(CONFIG_SND_TEGRA_SOC) += snd-soc-tegra-pcm.o
10obj-$(CONFIG_SND_TEGRA_SOC_I2S) += snd-soc-tegra-i2s.o 10obj-$(CONFIG_SND_TEGRA_SOC_I2S) += snd-soc-tegra-i2s.o
11 11
12# Tegra machine Support 12# Tegra machine Support
13snd-soc-tegra-harmony-objs := harmony.o 13snd-soc-tegra-wm8903-objs := tegra_wm8903.o
14 14
15obj-$(CONFIG_SND_TEGRA_SOC_HARMONY) += snd-soc-tegra-harmony.o 15obj-$(CONFIG_SND_TEGRA_SOC_WM8903) += snd-soc-tegra-wm8903.o
diff --git a/sound/soc/tegra/harmony.c b/sound/soc/tegra/tegra_wm8903.c
index 6bd1e42d5381..0e31925b9d56 100644
--- a/sound/soc/tegra/harmony.c
+++ b/sound/soc/tegra/tegra_wm8903.c
@@ -1,5 +1,5 @@
1/* 1/*
2 * harmony.c - Harmony machine ASoC driver 2 * tegra_wm8903.c - Tegra machine ASoC driver for boards using WM8903 codec.
3 * 3 *
4 * Author: Stephen Warren <swarren@nvidia.com> 4 * Author: Stephen Warren <swarren@nvidia.com>
5 * Copyright (C) 2010-2011 - NVIDIA, Inc. 5 * Copyright (C) 2010-2011 - NVIDIA, Inc.
@@ -56,13 +56,13 @@
56#define GPIO_INT_MIC_EN BIT(1) 56#define GPIO_INT_MIC_EN BIT(1)
57#define GPIO_EXT_MIC_EN BIT(2) 57#define GPIO_EXT_MIC_EN BIT(2)
58 58
59struct tegra_harmony { 59struct tegra_wm8903 {
60 struct tegra_asoc_utils_data util_data; 60 struct tegra_asoc_utils_data util_data;
61 struct tegra_wm8903_platform_data *pdata; 61 struct tegra_wm8903_platform_data *pdata;
62 int gpio_requested; 62 int gpio_requested;
63}; 63};
64 64
65static int harmony_asoc_hw_params(struct snd_pcm_substream *substream, 65static int tegra_wm8903_hw_params(struct snd_pcm_substream *substream,
66 struct snd_pcm_hw_params *params) 66 struct snd_pcm_hw_params *params)
67{ 67{
68 struct snd_soc_pcm_runtime *rtd = substream->private_data; 68 struct snd_soc_pcm_runtime *rtd = substream->private_data;
@@ -70,7 +70,7 @@ static int harmony_asoc_hw_params(struct snd_pcm_substream *substream,
70 struct snd_soc_dai *cpu_dai = rtd->cpu_dai; 70 struct snd_soc_dai *cpu_dai = rtd->cpu_dai;
71 struct snd_soc_codec *codec = rtd->codec; 71 struct snd_soc_codec *codec = rtd->codec;
72 struct snd_soc_card *card = codec->card; 72 struct snd_soc_card *card = codec->card;
73 struct tegra_harmony *harmony = snd_soc_card_get_drvdata(card); 73 struct tegra_wm8903 *machine = snd_soc_card_get_drvdata(card);
74 int srate, mclk, mclk_change; 74 int srate, mclk, mclk_change;
75 int err; 75 int err;
76 76
@@ -89,7 +89,7 @@ static int harmony_asoc_hw_params(struct snd_pcm_substream *substream,
89 while (mclk < 6000000) 89 while (mclk < 6000000)
90 mclk *= 2; 90 mclk *= 2;
91 91
92 err = tegra_asoc_utils_set_rate(&harmony->util_data, srate, mclk, 92 err = tegra_asoc_utils_set_rate(&machine->util_data, srate, mclk,
93 &mclk_change); 93 &mclk_change);
94 if (err < 0) { 94 if (err < 0) {
95 dev_err(card->dev, "Can't configure clocks\n"); 95 dev_err(card->dev, "Can't configure clocks\n");
@@ -126,20 +126,20 @@ static int harmony_asoc_hw_params(struct snd_pcm_substream *substream,
126 return 0; 126 return 0;
127} 127}
128 128
129static struct snd_soc_ops harmony_asoc_ops = { 129static struct snd_soc_ops tegra_wm8903_ops = {
130 .hw_params = harmony_asoc_hw_params, 130 .hw_params = tegra_wm8903_hw_params,
131}; 131};
132 132
133static struct snd_soc_jack harmony_hp_jack; 133static struct snd_soc_jack tegra_wm8903_hp_jack;
134 134
135static struct snd_soc_jack_pin harmony_hp_jack_pins[] = { 135static struct snd_soc_jack_pin tegra_wm8903_hp_jack_pins[] = {
136 { 136 {
137 .pin = "Headphone Jack", 137 .pin = "Headphone Jack",
138 .mask = SND_JACK_HEADPHONE, 138 .mask = SND_JACK_HEADPHONE,
139 }, 139 },
140}; 140};
141 141
142static struct snd_soc_jack_gpio harmony_hp_jack_gpios[] = { 142static struct snd_soc_jack_gpio tegra_wm8903_hp_jack_gpios[] = {
143 { 143 {
144 .name = "headphone detect", 144 .name = "headphone detect",
145 .report = SND_JACK_HEADPHONE, 145 .report = SND_JACK_HEADPHONE,
@@ -148,22 +148,22 @@ static struct snd_soc_jack_gpio harmony_hp_jack_gpios[] = {
148 } 148 }
149}; 149};
150 150
151static struct snd_soc_jack harmony_mic_jack; 151static struct snd_soc_jack tegra_wm8903_mic_jack;
152 152
153static struct snd_soc_jack_pin harmony_mic_jack_pins[] = { 153static struct snd_soc_jack_pin tegra_wm8903_mic_jack_pins[] = {
154 { 154 {
155 .pin = "Mic Jack", 155 .pin = "Mic Jack",
156 .mask = SND_JACK_MICROPHONE, 156 .mask = SND_JACK_MICROPHONE,
157 }, 157 },
158}; 158};
159 159
160static int harmony_event_int_spk(struct snd_soc_dapm_widget *w, 160static int tegra_wm8903_event_int_spk(struct snd_soc_dapm_widget *w,
161 struct snd_kcontrol *k, int event) 161 struct snd_kcontrol *k, int event)
162{ 162{
163 struct snd_soc_codec *codec = w->codec; 163 struct snd_soc_codec *codec = w->codec;
164 struct snd_soc_card *card = codec->card; 164 struct snd_soc_card *card = codec->card;
165 struct tegra_harmony *harmony = snd_soc_card_get_drvdata(card); 165 struct tegra_wm8903 *machine = snd_soc_card_get_drvdata(card);
166 struct tegra_wm8903_platform_data *pdata = harmony->pdata; 166 struct tegra_wm8903_platform_data *pdata = machine->pdata;
167 167
168 gpio_set_value_cansleep(pdata->gpio_spkr_en, 168 gpio_set_value_cansleep(pdata->gpio_spkr_en,
169 SND_SOC_DAPM_EVENT_ON(event)); 169 SND_SOC_DAPM_EVENT_ON(event));
@@ -171,8 +171,8 @@ static int harmony_event_int_spk(struct snd_soc_dapm_widget *w,
171 return 0; 171 return 0;
172} 172}
173 173
174static const struct snd_soc_dapm_widget harmony_dapm_widgets[] = { 174static const struct snd_soc_dapm_widget tegra_wm8903_dapm_widgets[] = {
175 SND_SOC_DAPM_SPK("Int Spk", harmony_event_int_spk), 175 SND_SOC_DAPM_SPK("Int Spk", tegra_wm8903_event_int_spk),
176 SND_SOC_DAPM_HP("Headphone Jack", NULL), 176 SND_SOC_DAPM_HP("Headphone Jack", NULL),
177 SND_SOC_DAPM_MIC("Mic Jack", NULL), 177 SND_SOC_DAPM_MIC("Mic Jack", NULL),
178}; 178};
@@ -188,17 +188,17 @@ static const struct snd_soc_dapm_route harmony_audio_map[] = {
188 {"IN1L", NULL, "Mic Bias"}, 188 {"IN1L", NULL, "Mic Bias"},
189}; 189};
190 190
191static const struct snd_kcontrol_new harmony_controls[] = { 191static const struct snd_kcontrol_new tegra_wm8903_controls[] = {
192 SOC_DAPM_PIN_SWITCH("Int Spk"), 192 SOC_DAPM_PIN_SWITCH("Int Spk"),
193}; 193};
194 194
195static int harmony_asoc_init(struct snd_soc_pcm_runtime *rtd) 195static int tegra_wm8903_init(struct snd_soc_pcm_runtime *rtd)
196{ 196{
197 struct snd_soc_codec *codec = rtd->codec; 197 struct snd_soc_codec *codec = rtd->codec;
198 struct snd_soc_dapm_context *dapm = &codec->dapm; 198 struct snd_soc_dapm_context *dapm = &codec->dapm;
199 struct snd_soc_card *card = codec->card; 199 struct snd_soc_card *card = codec->card;
200 struct tegra_harmony *harmony = snd_soc_card_get_drvdata(card); 200 struct tegra_wm8903 *machine = snd_soc_card_get_drvdata(card);
201 struct tegra_wm8903_platform_data *pdata = harmony->pdata; 201 struct tegra_wm8903_platform_data *pdata = machine->pdata;
202 int ret; 202 int ret;
203 203
204 ret = gpio_request(pdata->gpio_spkr_en, "spkr_en"); 204 ret = gpio_request(pdata->gpio_spkr_en, "spkr_en");
@@ -206,7 +206,7 @@ static int harmony_asoc_init(struct snd_soc_pcm_runtime *rtd)
206 dev_err(card->dev, "cannot get spkr_en gpio\n"); 206 dev_err(card->dev, "cannot get spkr_en gpio\n");
207 return ret; 207 return ret;
208 } 208 }
209 harmony->gpio_requested |= GPIO_SPKR_EN; 209 machine->gpio_requested |= GPIO_SPKR_EN;
210 210
211 gpio_direction_output(pdata->gpio_spkr_en, 0); 211 gpio_direction_output(pdata->gpio_spkr_en, 0);
212 212
@@ -215,7 +215,7 @@ static int harmony_asoc_init(struct snd_soc_pcm_runtime *rtd)
215 dev_err(card->dev, "cannot get int_mic_en gpio\n"); 215 dev_err(card->dev, "cannot get int_mic_en gpio\n");
216 return ret; 216 return ret;
217 } 217 }
218 harmony->gpio_requested |= GPIO_INT_MIC_EN; 218 machine->gpio_requested |= GPIO_INT_MIC_EN;
219 219
220 /* Disable int mic; enable signal is active-high */ 220 /* Disable int mic; enable signal is active-high */
221 gpio_direction_output(pdata->gpio_int_mic_en, 0); 221 gpio_direction_output(pdata->gpio_int_mic_en, 0);
@@ -225,38 +225,39 @@ static int harmony_asoc_init(struct snd_soc_pcm_runtime *rtd)
225 dev_err(card->dev, "cannot get ext_mic_en gpio\n"); 225 dev_err(card->dev, "cannot get ext_mic_en gpio\n");
226 return ret; 226 return ret;
227 } 227 }
228 harmony->gpio_requested |= GPIO_EXT_MIC_EN; 228 machine->gpio_requested |= GPIO_EXT_MIC_EN;
229 229
230 /* Enable ext mic; enable signal is active-low */ 230 /* Enable ext mic; enable signal is active-low */
231 gpio_direction_output(pdata->gpio_ext_mic_en, 0); 231 gpio_direction_output(pdata->gpio_ext_mic_en, 0);
232 232
233 ret = snd_soc_add_controls(codec, harmony_controls, 233 ret = snd_soc_add_controls(codec, tegra_wm8903_controls,
234 ARRAY_SIZE(harmony_controls)); 234 ARRAY_SIZE(tegra_wm8903_controls));
235 if (ret < 0) 235 if (ret < 0)
236 return ret; 236 return ret;
237 237
238 snd_soc_dapm_new_controls(dapm, harmony_dapm_widgets, 238 snd_soc_dapm_new_controls(dapm, tegra_wm8903_dapm_widgets,
239 ARRAY_SIZE(harmony_dapm_widgets)); 239 ARRAY_SIZE(tegra_wm8903_dapm_widgets));
240 240
241 snd_soc_dapm_add_routes(dapm, harmony_audio_map, 241 snd_soc_dapm_add_routes(dapm, harmony_audio_map,
242 ARRAY_SIZE(harmony_audio_map)); 242 ARRAY_SIZE(harmony_audio_map));
243 243
244 harmony_hp_jack_gpios[0].gpio = pdata->gpio_hp_det; 244 tegra_wm8903_hp_jack_gpios[0].gpio = pdata->gpio_hp_det;
245 snd_soc_jack_new(codec, "Headphone Jack", SND_JACK_HEADPHONE, 245 snd_soc_jack_new(codec, "Headphone Jack", SND_JACK_HEADPHONE,
246 &harmony_hp_jack); 246 &tegra_wm8903_hp_jack);
247 snd_soc_jack_add_pins(&harmony_hp_jack, 247 snd_soc_jack_add_pins(&tegra_wm8903_hp_jack,
248 ARRAY_SIZE(harmony_hp_jack_pins), 248 ARRAY_SIZE(tegra_wm8903_hp_jack_pins),
249 harmony_hp_jack_pins); 249 tegra_wm8903_hp_jack_pins);
250 snd_soc_jack_add_gpios(&harmony_hp_jack, 250 snd_soc_jack_add_gpios(&tegra_wm8903_hp_jack,
251 ARRAY_SIZE(harmony_hp_jack_gpios), 251 ARRAY_SIZE(tegra_wm8903_hp_jack_gpios),
252 harmony_hp_jack_gpios); 252 tegra_wm8903_hp_jack_gpios);
253 253
254 snd_soc_jack_new(codec, "Mic Jack", SND_JACK_MICROPHONE, 254 snd_soc_jack_new(codec, "Mic Jack", SND_JACK_MICROPHONE,
255 &harmony_mic_jack); 255 &tegra_wm8903_mic_jack);
256 snd_soc_jack_add_pins(&harmony_mic_jack, 256 snd_soc_jack_add_pins(&tegra_wm8903_mic_jack,
257 ARRAY_SIZE(harmony_mic_jack_pins), 257 ARRAY_SIZE(tegra_wm8903_mic_jack_pins),
258 harmony_mic_jack_pins); 258 tegra_wm8903_mic_jack_pins);
259 wm8903_mic_detect(codec, &harmony_mic_jack, SND_JACK_MICROPHONE, 0); 259 wm8903_mic_detect(codec, &tegra_wm8903_mic_jack, SND_JACK_MICROPHONE,
260 0);
260 261
261 snd_soc_dapm_force_enable_pin(dapm, "Mic Bias"); 262 snd_soc_dapm_force_enable_pin(dapm, "Mic Bias");
262 263
@@ -270,27 +271,27 @@ static int harmony_asoc_init(struct snd_soc_pcm_runtime *rtd)
270 return 0; 271 return 0;
271} 272}
272 273
273static struct snd_soc_dai_link harmony_wm8903_dai = { 274static struct snd_soc_dai_link tegra_wm8903_dai = {
274 .name = "WM8903", 275 .name = "WM8903",
275 .stream_name = "WM8903 PCM", 276 .stream_name = "WM8903 PCM",
276 .codec_name = "wm8903.0-001a", 277 .codec_name = "wm8903.0-001a",
277 .platform_name = "tegra-pcm-audio", 278 .platform_name = "tegra-pcm-audio",
278 .cpu_dai_name = "tegra-i2s.0", 279 .cpu_dai_name = "tegra-i2s.0",
279 .codec_dai_name = "wm8903-hifi", 280 .codec_dai_name = "wm8903-hifi",
280 .init = harmony_asoc_init, 281 .init = tegra_wm8903_init,
281 .ops = &harmony_asoc_ops, 282 .ops = &tegra_wm8903_ops,
282}; 283};
283 284
284static struct snd_soc_card snd_soc_harmony = { 285static struct snd_soc_card snd_soc_tegra_wm8903 = {
285 .name = "tegra-harmony", 286 .name = "tegra-wm8903",
286 .dai_link = &harmony_wm8903_dai, 287 .dai_link = &tegra_wm8903_dai,
287 .num_links = 1, 288 .num_links = 1,
288}; 289};
289 290
290static __devinit int tegra_snd_harmony_probe(struct platform_device *pdev) 291static __devinit int tegra_wm8903_driver_probe(struct platform_device *pdev)
291{ 292{
292 struct snd_soc_card *card = &snd_soc_harmony; 293 struct snd_soc_card *card = &snd_soc_tegra_wm8903;
293 struct tegra_harmony *harmony; 294 struct tegra_wm8903 *machine;
294 struct tegra_wm8903_platform_data *pdata; 295 struct tegra_wm8903_platform_data *pdata;
295 int ret; 296 int ret;
296 297
@@ -305,21 +306,21 @@ static __devinit int tegra_snd_harmony_probe(struct platform_device *pdev)
305 return -EINVAL; 306 return -EINVAL;
306 } 307 }
307 308
308 harmony = kzalloc(sizeof(struct tegra_harmony), GFP_KERNEL); 309 machine = kzalloc(sizeof(struct tegra_wm8903), GFP_KERNEL);
309 if (!harmony) { 310 if (!machine) {
310 dev_err(&pdev->dev, "Can't allocate tegra_harmony\n"); 311 dev_err(&pdev->dev, "Can't allocate tegra_wm8903 struct\n");
311 return -ENOMEM; 312 return -ENOMEM;
312 } 313 }
313 314
314 harmony->pdata = pdata; 315 machine->pdata = pdata;
315 316
316 ret = tegra_asoc_utils_init(&harmony->util_data, &pdev->dev); 317 ret = tegra_asoc_utils_init(&machine->util_data, &pdev->dev);
317 if (ret) 318 if (ret)
318 goto err_free_harmony; 319 goto err_free_machine;
319 320
320 card->dev = &pdev->dev; 321 card->dev = &pdev->dev;
321 platform_set_drvdata(pdev, card); 322 platform_set_drvdata(pdev, card);
322 snd_soc_card_set_drvdata(card, harmony); 323 snd_soc_card_set_drvdata(card, machine);
323 324
324 ret = snd_soc_register_card(card); 325 ret = snd_soc_register_card(card);
325 if (ret) { 326 if (ret) {
@@ -334,17 +335,17 @@ err_clear_drvdata:
334 snd_soc_card_set_drvdata(card, NULL); 335 snd_soc_card_set_drvdata(card, NULL);
335 platform_set_drvdata(pdev, NULL); 336 platform_set_drvdata(pdev, NULL);
336 card->dev = NULL; 337 card->dev = NULL;
337 tegra_asoc_utils_fini(&harmony->util_data); 338 tegra_asoc_utils_fini(&machine->util_data);
338err_free_harmony: 339err_free_machine:
339 kfree(harmony); 340 kfree(machine);
340 return ret; 341 return ret;
341} 342}
342 343
343static int __devexit tegra_snd_harmony_remove(struct platform_device *pdev) 344static int __devexit tegra_wm8903_driver_remove(struct platform_device *pdev)
344{ 345{
345 struct snd_soc_card *card = platform_get_drvdata(pdev); 346 struct snd_soc_card *card = platform_get_drvdata(pdev);
346 struct tegra_harmony *harmony = snd_soc_card_get_drvdata(card); 347 struct tegra_wm8903 *machine = snd_soc_card_get_drvdata(card);
347 struct tegra_wm8903_platform_data *pdata = harmony->pdata; 348 struct tegra_wm8903_platform_data *pdata = machine->pdata;
348 349
349 snd_soc_unregister_card(card); 350 snd_soc_unregister_card(card);
350 351
@@ -352,43 +353,43 @@ static int __devexit tegra_snd_harmony_remove(struct platform_device *pdev)
352 platform_set_drvdata(pdev, NULL); 353 platform_set_drvdata(pdev, NULL);
353 card->dev = NULL; 354 card->dev = NULL;
354 355
355 tegra_asoc_utils_fini(&harmony->util_data); 356 tegra_asoc_utils_fini(&machine->util_data);
356 357
357 if (harmony->gpio_requested & GPIO_EXT_MIC_EN) 358 if (machine->gpio_requested & GPIO_EXT_MIC_EN)
358 gpio_free(pdata->gpio_ext_mic_en); 359 gpio_free(pdata->gpio_ext_mic_en);
359 if (harmony->gpio_requested & GPIO_INT_MIC_EN) 360 if (machine->gpio_requested & GPIO_INT_MIC_EN)
360 gpio_free(pdata->gpio_int_mic_en); 361 gpio_free(pdata->gpio_int_mic_en);
361 if (harmony->gpio_requested & GPIO_SPKR_EN) 362 if (machine->gpio_requested & GPIO_SPKR_EN)
362 gpio_free(pdata->gpio_spkr_en); 363 gpio_free(pdata->gpio_spkr_en);
363 364
364 kfree(harmony); 365 kfree(machine);
365 366
366 return 0; 367 return 0;
367} 368}
368 369
369static struct platform_driver tegra_snd_harmony_driver = { 370static struct platform_driver tegra_wm8903_driver = {
370 .driver = { 371 .driver = {
371 .name = DRV_NAME, 372 .name = DRV_NAME,
372 .owner = THIS_MODULE, 373 .owner = THIS_MODULE,
373 .pm = &snd_soc_pm_ops, 374 .pm = &snd_soc_pm_ops,
374 }, 375 },
375 .probe = tegra_snd_harmony_probe, 376 .probe = tegra_wm8903_driver_probe,
376 .remove = __devexit_p(tegra_snd_harmony_remove), 377 .remove = __devexit_p(tegra_wm8903_driver_remove),
377}; 378};
378 379
379static int __init snd_tegra_harmony_init(void) 380static int __init tegra_wm8903_modinit(void)
380{ 381{
381 return platform_driver_register(&tegra_snd_harmony_driver); 382 return platform_driver_register(&tegra_wm8903_driver);
382} 383}
383module_init(snd_tegra_harmony_init); 384module_init(tegra_wm8903_modinit);
384 385
385static void __exit snd_tegra_harmony_exit(void) 386static void __exit tegra_wm8903_modexit(void)
386{ 387{
387 platform_driver_unregister(&tegra_snd_harmony_driver); 388 platform_driver_unregister(&tegra_wm8903_driver);
388} 389}
389module_exit(snd_tegra_harmony_exit); 390module_exit(tegra_wm8903_modexit);
390 391
391MODULE_AUTHOR("Stephen Warren <swarren@nvidia.com>"); 392MODULE_AUTHOR("Stephen Warren <swarren@nvidia.com>");
392MODULE_DESCRIPTION("Harmony machine ASoC driver"); 393MODULE_DESCRIPTION("Tegra+WM8903 machine ASoC driver");
393MODULE_LICENSE("GPL"); 394MODULE_LICENSE("GPL");
394MODULE_ALIAS("platform:" DRV_NAME); 395MODULE_ALIAS("platform:" DRV_NAME);