aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/au1x/psc-ac97.c
diff options
context:
space:
mode:
Diffstat (limited to 'sound/soc/au1x/psc-ac97.c')
-rw-r--r--sound/soc/au1x/psc-ac97.c20
1 files changed, 6 insertions, 14 deletions
diff --git a/sound/soc/au1x/psc-ac97.c b/sound/soc/au1x/psc-ac97.c
index d14a5a91a465..6a9516cbe424 100644
--- a/sound/soc/au1x/psc-ac97.c
+++ b/sound/soc/au1x/psc-ac97.c
@@ -315,27 +315,19 @@ static int au1xpsc_ac97_trigger(struct snd_pcm_substream *substream,
315 return ret; 315 return ret;
316} 316}
317 317
318static int au1xpsc_ac97_probe(struct platform_device *pdev, 318static int au1xpsc_ac97_probe(struct snd_soc_dai *dai)
319 struct snd_soc_dai *dai)
320{ 319{
321 return au1xpsc_ac97_workdata ? 0 : -ENODEV; 320 return au1xpsc_ac97_workdata ? 0 : -ENODEV;
322} 321}
323 322
324static void au1xpsc_ac97_remove(struct platform_device *pdev,
325 struct snd_soc_dai *dai)
326{
327}
328
329static struct snd_soc_dai_ops au1xpsc_ac97_dai_ops = { 323static struct snd_soc_dai_ops au1xpsc_ac97_dai_ops = {
330 .trigger = au1xpsc_ac97_trigger, 324 .trigger = au1xpsc_ac97_trigger,
331 .hw_params = au1xpsc_ac97_hw_params, 325 .hw_params = au1xpsc_ac97_hw_params,
332}; 326};
333 327
334struct snd_soc_dai au1xpsc_ac97_dai = { 328struct snd_soc_dai_driver au1xpsc_ac97_dai = {
335 .name = "au1xpsc_ac97",
336 .ac97_control = 1, 329 .ac97_control = 1,
337 .probe = au1xpsc_ac97_probe, 330 .probe = au1xpsc_ac97_probe,
338 .remove = au1xpsc_ac97_remove,
339 .playback = { 331 .playback = {
340 .rates = AC97_RATES, 332 .rates = AC97_RATES,
341 .formats = AC97_FMTS, 333 .formats = AC97_FMTS,
@@ -395,7 +387,7 @@ static int __devinit au1xpsc_ac97_drvprobe(struct platform_device *pdev)
395 au_writel(PSC_SEL_PS_AC97MODE | sel, PSC_SEL(wd)); 387 au_writel(PSC_SEL_PS_AC97MODE | sel, PSC_SEL(wd));
396 au_sync(); 388 au_sync();
397 389
398 ret = snd_soc_register_dai(&au1xpsc_ac97_dai); 390 ret = snd_soc_register_dai(&pdev->dev, &au1xpsc_ac97_dai);
399 if (ret) 391 if (ret)
400 goto out1; 392 goto out1;
401 393
@@ -406,7 +398,7 @@ static int __devinit au1xpsc_ac97_drvprobe(struct platform_device *pdev)
406 return 0; 398 return 0;
407 } 399 }
408 400
409 snd_soc_unregister_dai(&au1xpsc_ac97_dai); 401 snd_soc_unregister_dai(&pdev->dev);
410out1: 402out1:
411 release_mem_region(r->start, resource_size(r)); 403 release_mem_region(r->start, resource_size(r));
412out0: 404out0:
@@ -422,7 +414,7 @@ static int __devexit au1xpsc_ac97_drvremove(struct platform_device *pdev)
422 if (wd->dmapd) 414 if (wd->dmapd)
423 au1xpsc_pcm_destroy(wd->dmapd); 415 au1xpsc_pcm_destroy(wd->dmapd);
424 416
425 snd_soc_unregister_dai(&au1xpsc_ac97_dai); 417 snd_soc_unregister_dai(&pdev->dev);
426 418
427 /* disable PSC completely */ 419 /* disable PSC completely */
428 au_writel(0, AC97_CFG(wd)); 420 au_writel(0, AC97_CFG(wd));
@@ -485,7 +477,7 @@ static struct dev_pm_ops au1xpscac97_pmops = {
485 477
486static struct platform_driver au1xpsc_ac97_driver = { 478static struct platform_driver au1xpsc_ac97_driver = {
487 .driver = { 479 .driver = {
488 .name = "au1xpsc_ac97", 480 .name = "au1xpsc-ac97",
489 .owner = THIS_MODULE, 481 .owner = THIS_MODULE,
490 .pm = AU1XPSCAC97_PMOPS, 482 .pm = AU1XPSCAC97_PMOPS,
491 }, 483 },