Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 371812
b: refs/heads/master
c: ee226ce
h: refs/heads/master
v: v3
  • Loading branch information
Kuninori Morimoto authored and Mark Brown committed Mar 26, 2013
1 parent 2e1715b commit 31e4da0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 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: bfcb921caf37ceccb4bb474d7f426f016bf81efa
refs/heads/master: ee226ce19557cd5dce12f818462c9c331570cac6
11 changes: 8 additions & 3 deletions trunk/sound/soc/davinci/davinci-vcif.c
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,10 @@ static struct snd_soc_dai_driver davinci_vcif_dai = {

};

static const struct snd_soc_component_driver davinci_vcif_component = {
.name = "davinci-vcif",
};

static int davinci_vcif_probe(struct platform_device *pdev)
{
struct davinci_vc *davinci_vc = pdev->dev.platform_data;
Expand Down Expand Up @@ -234,7 +238,8 @@ static int davinci_vcif_probe(struct platform_device *pdev)

dev_set_drvdata(&pdev->dev, davinci_vcif_dev);

ret = snd_soc_register_dai(&pdev->dev, &davinci_vcif_dai);
ret = snd_soc_register_component(&pdev->dev, &davinci_vcif_component,
&davinci_vcif_dai, 1);
if (ret != 0) {
dev_err(&pdev->dev, "could not register dai\n");
return ret;
Expand All @@ -243,7 +248,7 @@ static int davinci_vcif_probe(struct platform_device *pdev)
ret = davinci_soc_platform_register(&pdev->dev);
if (ret) {
dev_err(&pdev->dev, "register PCM failed: %d\n", ret);
snd_soc_unregister_dai(&pdev->dev);
snd_soc_unregister_component(&pdev->dev);
return ret;
}

Expand All @@ -252,7 +257,7 @@ static int davinci_vcif_probe(struct platform_device *pdev)

static int davinci_vcif_remove(struct platform_device *pdev)
{
snd_soc_unregister_dai(&pdev->dev);
snd_soc_unregister_component(&pdev->dev);
davinci_soc_platform_unregister(&pdev->dev);

return 0;
Expand Down

0 comments on commit 31e4da0

Please sign in to comment.