diff options
Diffstat (limited to 'sound/soc/s3c24xx/ln2440sbc_alc650.c')
-rw-r--r-- | sound/soc/s3c24xx/ln2440sbc_alc650.c | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/sound/soc/s3c24xx/ln2440sbc_alc650.c b/sound/soc/s3c24xx/ln2440sbc_alc650.c index ffa954fe6931..abe64abe8c84 100644 --- a/sound/soc/s3c24xx/ln2440sbc_alc650.c +++ b/sound/soc/s3c24xx/ln2440sbc_alc650.c | |||
@@ -23,7 +23,6 @@ | |||
23 | #include <sound/soc.h> | 23 | #include <sound/soc.h> |
24 | #include <sound/soc-dapm.h> | 24 | #include <sound/soc-dapm.h> |
25 | 25 | ||
26 | #include "../codecs/ac97.h" | ||
27 | #include "s3c-dma.h" | 26 | #include "s3c-dma.h" |
28 | #include "s3c-ac97.h" | 27 | #include "s3c-ac97.h" |
29 | 28 | ||
@@ -33,23 +32,19 @@ static struct snd_soc_dai_link ln2440sbc_dai[] = { | |||
33 | { | 32 | { |
34 | .name = "AC97", | 33 | .name = "AC97", |
35 | .stream_name = "AC97 HiFi", | 34 | .stream_name = "AC97 HiFi", |
36 | .cpu_dai = &s3c_ac97_dai[S3C_AC97_DAI_PCM], | 35 | .cpu_dai_name = "s3c-ac97", |
37 | .codec_dai = &ac97_dai, | 36 | .codec_dai_name = "ac97-hifi", |
37 | .codec_name = "ac97-codec", | ||
38 | .platform_name = "s3c24xx-pcm-audio", | ||
38 | }, | 39 | }, |
39 | }; | 40 | }; |
40 | 41 | ||
41 | static struct snd_soc_card ln2440sbc = { | 42 | static struct snd_soc_card ln2440sbc = { |
42 | .name = "LN2440SBC", | 43 | .name = "LN2440SBC", |
43 | .platform = &s3c24xx_soc_platform, | ||
44 | .dai_link = ln2440sbc_dai, | 44 | .dai_link = ln2440sbc_dai, |
45 | .num_links = ARRAY_SIZE(ln2440sbc_dai), | 45 | .num_links = ARRAY_SIZE(ln2440sbc_dai), |
46 | }; | 46 | }; |
47 | 47 | ||
48 | static struct snd_soc_device ln2440sbc_snd_ac97_devdata = { | ||
49 | .card = &ln2440sbc, | ||
50 | .codec_dev = &soc_codec_dev_ac97, | ||
51 | }; | ||
52 | |||
53 | static struct platform_device *ln2440sbc_snd_ac97_device; | 48 | static struct platform_device *ln2440sbc_snd_ac97_device; |
54 | 49 | ||
55 | static int __init ln2440sbc_init(void) | 50 | static int __init ln2440sbc_init(void) |
@@ -60,9 +55,7 @@ static int __init ln2440sbc_init(void) | |||
60 | if (!ln2440sbc_snd_ac97_device) | 55 | if (!ln2440sbc_snd_ac97_device) |
61 | return -ENOMEM; | 56 | return -ENOMEM; |
62 | 57 | ||
63 | platform_set_drvdata(ln2440sbc_snd_ac97_device, | 58 | platform_set_drvdata(ln2440sbc_snd_ac97_device, &ln2440sbc); |
64 | &ln2440sbc_snd_ac97_devdata); | ||
65 | ln2440sbc_snd_ac97_devdata.dev = &ln2440sbc_snd_ac97_device->dev; | ||
66 | ret = platform_device_add(ln2440sbc_snd_ac97_device); | 59 | ret = platform_device_add(ln2440sbc_snd_ac97_device); |
67 | 60 | ||
68 | if (ret) | 61 | if (ret) |