Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 371813
b: refs/heads/master
c: eeef0ed
h: refs/heads/master
i:
  371811: 2e1715b
v: v3
  • Loading branch information
Kuninori Morimoto authored and Mark Brown committed Mar 26, 2013
1 parent 31e4da0 commit 0b82546
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ee226ce19557cd5dce12f818462c9c331570cac6
refs/heads/master: eeef0eda7ac42b19a17cc3de8f826a160f1f102e
15 changes: 10 additions & 5 deletions trunk/sound/soc/davinci/davinci-mcasp.c
Original file line number Diff line number Diff line change
Expand Up @@ -962,6 +962,10 @@ static struct snd_soc_dai_driver davinci_mcasp_dai[] = {

};

static const struct snd_soc_component_driver davinci_mcasp_component = {
.name = "davinci-mcasp",
};

static const struct of_device_id mcasp_dt_ids[] = {
{
.compatible = "ti,dm646x-mcasp-audio",
Expand Down Expand Up @@ -1170,21 +1174,22 @@ static int davinci_mcasp_probe(struct platform_device *pdev)

dma_data->channel = res->start;
dev_set_drvdata(&pdev->dev, dev);
ret = snd_soc_register_dai(&pdev->dev, &davinci_mcasp_dai[pdata->op_mode]);
ret = snd_soc_register_component(&pdev->dev, &davinci_mcasp_component,
&davinci_mcasp_dai[pdata->op_mode], 1);

if (ret != 0)
goto err_release_clk;

ret = davinci_soc_platform_register(&pdev->dev);
if (ret) {
dev_err(&pdev->dev, "register PCM failed: %d\n", ret);
goto err_unregister_dai;
goto err_unregister_component;
}

return 0;

err_unregister_dai:
snd_soc_unregister_dai(&pdev->dev);
err_unregister_component:
snd_soc_unregister_component(&pdev->dev);
err_release_clk:
pm_runtime_put_sync(&pdev->dev);
pm_runtime_disable(&pdev->dev);
Expand All @@ -1194,7 +1199,7 @@ static int davinci_mcasp_probe(struct platform_device *pdev)
static int davinci_mcasp_remove(struct platform_device *pdev)
{

snd_soc_unregister_dai(&pdev->dev);
snd_soc_unregister_component(&pdev->dev);
davinci_soc_platform_unregister(&pdev->dev);

pm_runtime_put_sync(&pdev->dev);
Expand Down

0 comments on commit 0b82546

Please sign in to comment.