Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 371862
b: refs/heads/master
c: 0a09dfa
h: refs/heads/master
v: v3
  • Loading branch information
Kuninori Morimoto authored and Mark Brown committed Mar 26, 2013
1 parent bc74fe8 commit 5139cf0
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 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: f53179c026b11bef674d75154f5ea47ca3248ca9
refs/heads/master: 0a09dfa04177df5a2e9eeeeaf527efd35c531d11
2 changes: 1 addition & 1 deletion trunk/sound/soc/sh/migor.c
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ static int migor_dai_init(struct snd_soc_pcm_runtime *rtd)
static struct snd_soc_dai_link migor_dai = {
.name = "wm8978",
.stream_name = "WM8978",
.cpu_dai_name = "siu-i2s-dai",
.cpu_dai_name = "siu-pcm-audio",
.codec_dai_name = "wm8978-hifi",
.platform_name = "siu-pcm-audio",
.codec_name = "wm8978.0-001a",
Expand Down
11 changes: 8 additions & 3 deletions trunk/sound/soc/sh/siu_dai.c
Original file line number Diff line number Diff line change
Expand Up @@ -726,6 +726,10 @@ static struct snd_soc_dai_driver siu_i2s_dai = {
.ops = &siu_dai_ops,
};

static const struct snd_soc_component_driver siu_i2s_component = {
.name = "siu-i2s",
};

static int siu_probe(struct platform_device *pdev)
{
const struct firmware *fw_entry;
Expand Down Expand Up @@ -783,7 +787,8 @@ static int siu_probe(struct platform_device *pdev)
dev_set_drvdata(&pdev->dev, info);

/* register using ARRAY version so we can keep dai name */
ret = snd_soc_register_dais(&pdev->dev, &siu_i2s_dai, 1);
ret = snd_soc_register_component(&pdev->dev, &siu_i2s_component,
&siu_i2s_dai, 1);
if (ret < 0)
goto edaiinit;

Expand All @@ -796,7 +801,7 @@ static int siu_probe(struct platform_device *pdev)
return ret;

esocregp:
snd_soc_unregister_dai(&pdev->dev);
snd_soc_unregister_component(&pdev->dev);
edaiinit:
iounmap(info->reg);
emapreg:
Expand All @@ -823,7 +828,7 @@ static int siu_remove(struct platform_device *pdev)
pm_runtime_disable(&pdev->dev);

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

iounmap(info->reg);
iounmap(info->yram);
Expand Down

0 comments on commit 5139cf0

Please sign in to comment.