Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 371832
b: refs/heads/master
c: b1c3686
h: refs/heads/master
v: v3
  • Loading branch information
Kuninori Morimoto authored and Mark Brown committed Mar 26, 2013
1 parent 5b1f8df commit 66d7fd2
Show file tree
Hide file tree
Showing 2 changed files with 7 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: 83d85f53adf38f5021afd921a84efd53c44aff56
refs/heads/master: b1c36861315ce37c2fee8c1c90433068866a8871
8 changes: 6 additions & 2 deletions trunk/sound/soc/mid-x86/sst_platform.c
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,10 @@ static struct snd_soc_dai_driver sst_platform_dai[] = {
},
};

static const struct snd_soc_component_driver sst_component = {
.name = "sst",
};

/* helper functions */
static inline void sst_set_stream_status(struct sst_runtime_stream *stream,
int state)
Expand Down Expand Up @@ -683,7 +687,7 @@ static int sst_platform_probe(struct platform_device *pdev)
return ret;
}

ret = snd_soc_register_dais(&pdev->dev,
ret = snd_soc_register_component(&pdev->dev, &sst_component,
sst_platform_dai, ARRAY_SIZE(sst_platform_dai));
if (ret) {
pr_err("registering cpu dais failed\n");
Expand All @@ -695,7 +699,7 @@ static int sst_platform_probe(struct platform_device *pdev)
static int sst_platform_remove(struct platform_device *pdev)
{

snd_soc_unregister_dais(&pdev->dev, ARRAY_SIZE(sst_platform_dai));
snd_soc_unregister_component(&pdev->dev);
snd_soc_unregister_platform(&pdev->dev);
pr_debug("sst_platform_remove success\n");
return 0;
Expand Down

0 comments on commit 66d7fd2

Please sign in to comment.