Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 371814
b: refs/heads/master
c: 92eaa32
h: refs/heads/master
v: v3
  • Loading branch information
Kuninori Morimoto authored and Mark Brown committed Mar 26, 2013
1 parent 0b82546 commit 68a8d43
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: eeef0eda7ac42b19a17cc3de8f826a160f1f102e
refs/heads/master: 92eaa328f2789c65441a85d50b5acea1375cb692
9 changes: 7 additions & 2 deletions trunk/sound/soc/dwc/designware_i2s.c
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,10 @@ static struct snd_soc_dai_ops dw_i2s_dai_ops = {
.trigger = dw_i2s_trigger,
};

static const struct snd_soc_component_driver dw_i2s_component = {
.name = "dw-i2s",
};

#ifdef CONFIG_PM

static int dw_i2s_suspend(struct snd_soc_dai *dai)
Expand Down Expand Up @@ -413,7 +417,8 @@ static int dw_i2s_probe(struct platform_device *pdev)

dev->dev = &pdev->dev;
dev_set_drvdata(&pdev->dev, dev);
ret = snd_soc_register_dai(&pdev->dev, dw_i2s_dai);
ret = snd_soc_register_component(&pdev->dev, &dw_i2s_component,
dw_i2s_dai, 1);
if (ret != 0) {
dev_err(&pdev->dev, "not able to register dai\n");
goto err_set_drvdata;
Expand All @@ -434,7 +439,7 @@ static int dw_i2s_remove(struct platform_device *pdev)
{
struct dw_i2s_dev *dev = dev_get_drvdata(&pdev->dev);

snd_soc_unregister_dai(&pdev->dev);
snd_soc_unregister_component(&pdev->dev);
dev_set_drvdata(&pdev->dev, NULL);

clk_put(dev->clk);
Expand Down

0 comments on commit 68a8d43

Please sign in to comment.