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