diff options
author | Glenn Elliott <gelliott@cs.unc.edu> | 2012-03-04 19:47:13 -0500 |
---|---|---|
committer | Glenn Elliott <gelliott@cs.unc.edu> | 2012-03-04 19:47:13 -0500 |
commit | c71c03bda1e86c9d5198c5d83f712e695c4f2a1e (patch) | |
tree | ecb166cb3e2b7e2adb3b5e292245fefd23381ac8 /sound/soc/s3c24xx/smdk_wm9713.c | |
parent | ea53c912f8a86a8567697115b6a0d8152beee5c8 (diff) | |
parent | 6a00f206debf8a5c8899055726ad127dbeeed098 (diff) |
Merge branch 'mpi-master' into wip-k-fmlpwip-k-fmlp
Conflicts:
litmus/sched_cedf.c
Diffstat (limited to 'sound/soc/s3c24xx/smdk_wm9713.c')
-rw-r--r-- | sound/soc/s3c24xx/smdk_wm9713.c | 97 |
1 files changed, 0 insertions, 97 deletions
diff --git a/sound/soc/s3c24xx/smdk_wm9713.c b/sound/soc/s3c24xx/smdk_wm9713.c deleted file mode 100644 index 5527b9e88c98..000000000000 --- a/sound/soc/s3c24xx/smdk_wm9713.c +++ /dev/null | |||
@@ -1,97 +0,0 @@ | |||
1 | /* | ||
2 | * smdk_wm9713.c -- SoC audio for SMDK | ||
3 | * | ||
4 | * Copyright 2010 Samsung Electronics Co. Ltd. | ||
5 | * Author: Jaswinder Singh Brar <jassi.brar@samsung.com> | ||
6 | * | ||
7 | * This program is free software; you can redistribute it and/or | ||
8 | * modify it under the terms of the GNU General Public License as | ||
9 | * published by the Free Software Foundation; either version 2 of the | ||
10 | * License, or (at your option) any later version. | ||
11 | * | ||
12 | */ | ||
13 | |||
14 | #include <linux/module.h> | ||
15 | #include <linux/device.h> | ||
16 | #include <sound/soc.h> | ||
17 | |||
18 | #include "../codecs/wm9713.h" | ||
19 | #include "s3c-dma.h" | ||
20 | #include "s3c-ac97.h" | ||
21 | |||
22 | static struct snd_soc_card smdk; | ||
23 | |||
24 | /* | ||
25 | * Default CFG switch settings to use this driver: | ||
26 | * | ||
27 | * SMDK6410: Set CFG1 1-3 On, CFG2 1-4 Off | ||
28 | * SMDKC100: Set CFG6 1-3 On, CFG7 1 On | ||
29 | * SMDKC110: Set CFGB10 1-2 Off, CFGB12 1-3 On | ||
30 | * SMDKV210: Set CFGB10 1-2 Off, CFGB12 1-3 On | ||
31 | */ | ||
32 | |||
33 | /* | ||
34 | Playback (HeadPhone):- | ||
35 | $ amixer sset 'Headphone' unmute | ||
36 | $ amixer sset 'Right Headphone Out Mux' 'Headphone' | ||
37 | $ amixer sset 'Left Headphone Out Mux' 'Headphone' | ||
38 | $ amixer sset 'Right HP Mixer PCM' unmute | ||
39 | $ amixer sset 'Left HP Mixer PCM' unmute | ||
40 | |||
41 | Capture (LineIn):- | ||
42 | $ amixer sset 'Right Capture Source' 'Line' | ||
43 | $ amixer sset 'Left Capture Source' 'Line' | ||
44 | */ | ||
45 | |||
46 | static struct snd_soc_dai_link smdk_dai = { | ||
47 | .name = "AC97", | ||
48 | .stream_name = "AC97 PCM", | ||
49 | .cpu_dai = &s3c_ac97_dai[S3C_AC97_DAI_PCM], | ||
50 | .codec_dai = &wm9713_dai[WM9713_DAI_AC97_HIFI], | ||
51 | }; | ||
52 | |||
53 | static struct snd_soc_card smdk = { | ||
54 | .name = "SMDK", | ||
55 | .platform = &s3c24xx_soc_platform, | ||
56 | .dai_link = &smdk_dai, | ||
57 | .num_links = 1, | ||
58 | }; | ||
59 | |||
60 | static struct snd_soc_device smdk_snd_ac97_devdata = { | ||
61 | .card = &smdk, | ||
62 | .codec_dev = &soc_codec_dev_wm9713, | ||
63 | }; | ||
64 | |||
65 | static struct platform_device *smdk_snd_ac97_device; | ||
66 | |||
67 | static int __init smdk_init(void) | ||
68 | { | ||
69 | int ret; | ||
70 | |||
71 | smdk_snd_ac97_device = platform_device_alloc("soc-audio", -1); | ||
72 | if (!smdk_snd_ac97_device) | ||
73 | return -ENOMEM; | ||
74 | |||
75 | platform_set_drvdata(smdk_snd_ac97_device, | ||
76 | &smdk_snd_ac97_devdata); | ||
77 | smdk_snd_ac97_devdata.dev = &smdk_snd_ac97_device->dev; | ||
78 | |||
79 | ret = platform_device_add(smdk_snd_ac97_device); | ||
80 | if (ret) | ||
81 | platform_device_put(smdk_snd_ac97_device); | ||
82 | |||
83 | return ret; | ||
84 | } | ||
85 | |||
86 | static void __exit smdk_exit(void) | ||
87 | { | ||
88 | platform_device_unregister(smdk_snd_ac97_device); | ||
89 | } | ||
90 | |||
91 | module_init(smdk_init); | ||
92 | module_exit(smdk_exit); | ||
93 | |||
94 | /* Module information */ | ||
95 | MODULE_AUTHOR("Jaswinder Singh Brar, jassi.brar@samsung.com"); | ||
96 | MODULE_DESCRIPTION("ALSA SoC SMDK+WM9713"); | ||
97 | MODULE_LICENSE("GPL"); | ||