diff options
Diffstat (limited to 'sound/soc/nuc900/nuc900-audio.c')
-rw-r--r-- | sound/soc/nuc900/nuc900-audio.c | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/sound/soc/nuc900/nuc900-audio.c b/sound/soc/nuc900/nuc900-audio.c index 72e6f518f7b2..161f5b667d7b 100644 --- a/sound/soc/nuc900/nuc900-audio.c +++ b/sound/soc/nuc900/nuc900-audio.c | |||
@@ -20,26 +20,21 @@ | |||
20 | #include <sound/soc.h> | 20 | #include <sound/soc.h> |
21 | #include <sound/soc-dapm.h> | 21 | #include <sound/soc-dapm.h> |
22 | 22 | ||
23 | #include "../codecs/ac97.h" | ||
24 | #include "nuc900-audio.h" | 23 | #include "nuc900-audio.h" |
25 | 24 | ||
26 | static struct snd_soc_dai_link nuc900evb_ac97_dai = { | 25 | static struct snd_soc_dai_link nuc900evb_ac97_dai = { |
27 | .name = "AC97", | 26 | .name = "AC97", |
28 | .stream_name = "AC97 HiFi", | 27 | .stream_name = "AC97 HiFi", |
29 | .cpu_dai = &nuc900_ac97_dai, | 28 | .cpu_dai_name = "nuc900-ac97", |
30 | .codec_dai = &ac97_dai, | 29 | .codec_dai_name = "ac97-hifi", |
30 | .codec_name = "ac97-codec", | ||
31 | .platform_name = "nuc900-pcm-audio", | ||
31 | }; | 32 | }; |
32 | 33 | ||
33 | static struct snd_soc_card nuc900evb_audio_machine = { | 34 | static struct snd_soc_card nuc900evb_audio_machine = { |
34 | .name = "NUC900EVB_AC97", | 35 | .name = "NUC900EVB_AC97", |
35 | .dai_link = &nuc900evb_ac97_dai, | 36 | .dai_link = &nuc900evb_ac97_dai, |
36 | .num_links = 1, | 37 | .num_links = 1, |
37 | .platform = &nuc900_soc_platform, | ||
38 | }; | ||
39 | |||
40 | static struct snd_soc_device nuc900evb_ac97_devdata = { | ||
41 | .card = &nuc900evb_audio_machine, | ||
42 | .codec_dev = &soc_codec_dev_ac97, | ||
43 | }; | 38 | }; |
44 | 39 | ||
45 | static struct platform_device *nuc900evb_asoc_dev; | 40 | static struct platform_device *nuc900evb_asoc_dev; |
@@ -54,9 +49,8 @@ static int __init nuc900evb_audio_init(void) | |||
54 | goto out; | 49 | goto out; |
55 | 50 | ||
56 | /* nuc900 board audio device */ | 51 | /* nuc900 board audio device */ |
57 | platform_set_drvdata(nuc900evb_asoc_dev, &nuc900evb_ac97_devdata); | 52 | platform_set_drvdata(nuc900evb_asoc_dev, &nuc900evb_audio_machine); |
58 | 53 | ||
59 | nuc900evb_ac97_devdata.dev = &nuc900evb_asoc_dev->dev; | ||
60 | ret = platform_device_add(nuc900evb_asoc_dev); | 54 | ret = platform_device_add(nuc900evb_asoc_dev); |
61 | 55 | ||
62 | if (ret) { | 56 | if (ret) { |