aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/pxa/em-x270.c
diff options
context:
space:
mode:
Diffstat (limited to 'sound/soc/pxa/em-x270.c')
-rw-r--r--sound/soc/pxa/em-x270.c22
1 files changed, 9 insertions, 13 deletions
diff --git a/sound/soc/pxa/em-x270.c b/sound/soc/pxa/em-x270.c
index f4756e4025fd..eadf9d351a04 100644
--- a/sound/soc/pxa/em-x270.c
+++ b/sound/soc/pxa/em-x270.c
@@ -32,36 +32,33 @@
32#include <mach/audio.h> 32#include <mach/audio.h>
33 33
34#include "../codecs/wm9712.h" 34#include "../codecs/wm9712.h"
35#include "pxa2xx-pcm.h"
36#include "pxa2xx-ac97.h" 35#include "pxa2xx-ac97.h"
37 36
38static struct snd_soc_dai_link em_x270_dai[] = { 37static struct snd_soc_dai_link em_x270_dai[] = {
39 { 38 {
40 .name = "AC97", 39 .name = "AC97",
41 .stream_name = "AC97 HiFi", 40 .stream_name = "AC97 HiFi",
42 .cpu_dai = &pxa_ac97_dai[PXA2XX_DAI_AC97_HIFI], 41 .cpu_dai_name = "pxa-ac97.0",
43 .codec_dai = &wm9712_dai[WM9712_DAI_AC97_HIFI], 42 .codec_dai_name = "wm9712-hifi",
43 .platform_name = "pxa-pcm-audio",
44 .codec_name = "wm9712-codec",
44 }, 45 },
45 { 46 {
46 .name = "AC97 Aux", 47 .name = "AC97 Aux",
47 .stream_name = "AC97 Aux", 48 .stream_name = "AC97 Aux",
48 .cpu_dai = &pxa_ac97_dai[PXA2XX_DAI_AC97_AUX], 49 .cpu_dai_name = "pxa-ac97.1",
49 .codec_dai = &wm9712_dai[WM9712_DAI_AC97_AUX], 50 .codec_dai_name ="wm9712-aux",
51 .platform_name = "pxa-pcm-audio",
52 .codec_name = "wm9712-codec",
50 }, 53 },
51}; 54};
52 55
53static struct snd_soc_card em_x270 = { 56static struct snd_soc_card em_x270 = {
54 .name = "EM-X270", 57 .name = "EM-X270",
55 .platform = &pxa2xx_soc_platform,
56 .dai_link = em_x270_dai, 58 .dai_link = em_x270_dai,
57 .num_links = ARRAY_SIZE(em_x270_dai), 59 .num_links = ARRAY_SIZE(em_x270_dai),
58}; 60};
59 61
60static struct snd_soc_device em_x270_snd_devdata = {
61 .card = &em_x270,
62 .codec_dev = &soc_codec_dev_wm9712,
63};
64
65static struct platform_device *em_x270_snd_device; 62static struct platform_device *em_x270_snd_device;
66 63
67static int __init em_x270_init(void) 64static int __init em_x270_init(void)
@@ -76,8 +73,7 @@ static int __init em_x270_init(void)
76 if (!em_x270_snd_device) 73 if (!em_x270_snd_device)
77 return -ENOMEM; 74 return -ENOMEM;
78 75
79 platform_set_drvdata(em_x270_snd_device, &em_x270_snd_devdata); 76 platform_set_drvdata(em_x270_snd_device, &em_x270);
80 em_x270_snd_devdata.dev = &em_x270_snd_device->dev;
81 ret = platform_device_add(em_x270_snd_device); 77 ret = platform_device_add(em_x270_snd_device);
82 78
83 if (ret) 79 if (ret)