Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 371837
b: refs/heads/master
c: ed22853
h: refs/heads/master
i:
  371835: 91c2e95
v: v3
  • Loading branch information
Kuninori Morimoto authored and Mark Brown committed Mar 26, 2013
1 parent 2a205ff commit 3f75863
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 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: 58709a329eaf4b61bc348305ec387b7964bb0320
refs/heads/master: ed22853a5bf51736e5f7e42fddacd053e38ddf01
9 changes: 7 additions & 2 deletions trunk/sound/soc/omap/omap-dmic.c
Original file line number Diff line number Diff line change
Expand Up @@ -448,6 +448,10 @@ static struct snd_soc_dai_driver omap_dmic_dai = {
.ops = &omap_dmic_dai_ops,
};

static const struct snd_soc_component_driver omap_dmic_component = {
.name = "omap-dmic",
};

static int asoc_dmic_probe(struct platform_device *pdev)
{
struct omap_dmic *dmic;
Expand Down Expand Up @@ -507,7 +511,8 @@ static int asoc_dmic_probe(struct platform_device *pdev)
goto err_put_clk;
}

ret = snd_soc_register_dai(&pdev->dev, &omap_dmic_dai);
ret = snd_soc_register_component(&pdev->dev, &omap_dmic_component,
&omap_dmic_dai, 1);
if (ret)
goto err_put_clk;

Expand All @@ -522,7 +527,7 @@ static int asoc_dmic_remove(struct platform_device *pdev)
{
struct omap_dmic *dmic = platform_get_drvdata(pdev);

snd_soc_unregister_dai(&pdev->dev);
snd_soc_unregister_component(&pdev->dev);
clk_put(dmic->fclk);

return 0;
Expand Down

0 comments on commit 3f75863

Please sign in to comment.