diff options
author | Takashi Iwai <tiwai@suse.de> | 2007-08-08 09:20:48 -0400 |
---|---|---|
committer | Jaroslav Kysela <perex@perex.cz> | 2007-10-16 09:58:30 -0400 |
commit | 887f9f0253ba4a52f38810f3056cdf040a6157b3 (patch) | |
tree | 279fa93ac9f0977e0f0aed5f331e155c51f59cff /sound/core | |
parent | a110133d4c56a56d927e4fba68317212969fddbd (diff) |
[ALSA] Remove ifdefs from OSS PCM emulation codes
Fix Makefile to compile files conditionally to CONFIG_SND_PCM_OSS_PLUGINS,
and remove unneeded ifdefs in these files.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
Diffstat (limited to 'sound/core')
-rw-r--r-- | sound/core/oss/Makefile | 5 | ||||
-rw-r--r-- | sound/core/oss/copy.c | 5 | ||||
-rw-r--r-- | sound/core/oss/io.c | 5 | ||||
-rw-r--r-- | sound/core/oss/linear.c | 5 | ||||
-rw-r--r-- | sound/core/oss/mulaw.c | 5 | ||||
-rw-r--r-- | sound/core/oss/pcm_plugin.c | 5 | ||||
-rw-r--r-- | sound/core/oss/rate.c | 5 | ||||
-rw-r--r-- | sound/core/oss/route.c | 5 |
8 files changed, 3 insertions, 37 deletions
diff --git a/sound/core/oss/Makefile b/sound/core/oss/Makefile index e6d5a045ba27..578052540455 100644 --- a/sound/core/oss/Makefile +++ b/sound/core/oss/Makefile | |||
@@ -5,8 +5,9 @@ | |||
5 | 5 | ||
6 | snd-mixer-oss-objs := mixer_oss.o | 6 | snd-mixer-oss-objs := mixer_oss.o |
7 | 7 | ||
8 | snd-pcm-oss-objs := pcm_oss.o pcm_plugin.o \ | 8 | snd-pcm-oss-y := pcm_oss.o |
9 | io.o copy.o linear.o mulaw.o route.o rate.o | 9 | snd-pcm-oss-$(CONFIG_SND_PCM_OSS_PLUGINS) += pcm_plugin.o \ |
10 | io.o copy.o linear.o mulaw.o route.o rate.o | ||
10 | 11 | ||
11 | obj-$(CONFIG_SND_MIXER_OSS) += snd-mixer-oss.o | 12 | obj-$(CONFIG_SND_MIXER_OSS) += snd-mixer-oss.o |
12 | obj-$(CONFIG_SND_PCM_OSS) += snd-pcm-oss.o | 13 | obj-$(CONFIG_SND_PCM_OSS) += snd-pcm-oss.o |
diff --git a/sound/core/oss/copy.c b/sound/core/oss/copy.c index 6658facc5cda..d6a04c2d5a75 100644 --- a/sound/core/oss/copy.c +++ b/sound/core/oss/copy.c | |||
@@ -20,9 +20,6 @@ | |||
20 | */ | 20 | */ |
21 | 21 | ||
22 | #include <sound/driver.h> | 22 | #include <sound/driver.h> |
23 | |||
24 | #ifdef CONFIG_SND_PCM_OSS_PLUGINS | ||
25 | |||
26 | #include <linux/time.h> | 23 | #include <linux/time.h> |
27 | #include <sound/core.h> | 24 | #include <sound/core.h> |
28 | #include <sound/pcm.h> | 25 | #include <sound/pcm.h> |
@@ -88,5 +85,3 @@ int snd_pcm_plugin_build_copy(struct snd_pcm_substream *plug, | |||
88 | *r_plugin = plugin; | 85 | *r_plugin = plugin; |
89 | return 0; | 86 | return 0; |
90 | } | 87 | } |
91 | |||
92 | #endif | ||
diff --git a/sound/core/oss/io.c b/sound/core/oss/io.c index b6e7ce30e5a3..322702e05f3e 100644 --- a/sound/core/oss/io.c +++ b/sound/core/oss/io.c | |||
@@ -20,9 +20,6 @@ | |||
20 | */ | 20 | */ |
21 | 21 | ||
22 | #include <sound/driver.h> | 22 | #include <sound/driver.h> |
23 | |||
24 | #ifdef CONFIG_SND_PCM_OSS_PLUGINS | ||
25 | |||
26 | #include <linux/time.h> | 23 | #include <linux/time.h> |
27 | #include <sound/core.h> | 24 | #include <sound/core.h> |
28 | #include <sound/pcm.h> | 25 | #include <sound/pcm.h> |
@@ -135,5 +132,3 @@ int snd_pcm_plugin_build_io(struct snd_pcm_substream *plug, | |||
135 | *r_plugin = plugin; | 132 | *r_plugin = plugin; |
136 | return 0; | 133 | return 0; |
137 | } | 134 | } |
138 | |||
139 | #endif | ||
diff --git a/sound/core/oss/linear.c b/sound/core/oss/linear.c index 5b1bcdc64779..a3cfe7cb5873 100644 --- a/sound/core/oss/linear.c +++ b/sound/core/oss/linear.c | |||
@@ -21,9 +21,6 @@ | |||
21 | */ | 21 | */ |
22 | 22 | ||
23 | #include <sound/driver.h> | 23 | #include <sound/driver.h> |
24 | |||
25 | #ifdef CONFIG_SND_PCM_OSS_PLUGINS | ||
26 | |||
27 | #include <linux/time.h> | 24 | #include <linux/time.h> |
28 | #include <sound/core.h> | 25 | #include <sound/core.h> |
29 | #include <sound/pcm.h> | 26 | #include <sound/pcm.h> |
@@ -159,5 +156,3 @@ int snd_pcm_plugin_build_linear(struct snd_pcm_substream *plug, | |||
159 | *r_plugin = plugin; | 156 | *r_plugin = plugin; |
160 | return 0; | 157 | return 0; |
161 | } | 158 | } |
162 | |||
163 | #endif | ||
diff --git a/sound/core/oss/mulaw.c b/sound/core/oss/mulaw.c index 2eb18807e6d0..91b62429b323 100644 --- a/sound/core/oss/mulaw.c +++ b/sound/core/oss/mulaw.c | |||
@@ -22,9 +22,6 @@ | |||
22 | */ | 22 | */ |
23 | 23 | ||
24 | #include <sound/driver.h> | 24 | #include <sound/driver.h> |
25 | |||
26 | #ifdef CONFIG_SND_PCM_OSS_PLUGINS | ||
27 | |||
28 | #include <linux/time.h> | 25 | #include <linux/time.h> |
29 | #include <sound/core.h> | 26 | #include <sound/core.h> |
30 | #include <sound/pcm.h> | 27 | #include <sound/pcm.h> |
@@ -328,5 +325,3 @@ int snd_pcm_plugin_build_mulaw(struct snd_pcm_substream *plug, | |||
328 | *r_plugin = plugin; | 325 | *r_plugin = plugin; |
329 | return 0; | 326 | return 0; |
330 | } | 327 | } |
331 | |||
332 | #endif | ||
diff --git a/sound/core/oss/pcm_plugin.c b/sound/core/oss/pcm_plugin.c index 0e67dd280a5d..c0afb92869d3 100644 --- a/sound/core/oss/pcm_plugin.c +++ b/sound/core/oss/pcm_plugin.c | |||
@@ -25,9 +25,6 @@ | |||
25 | #endif | 25 | #endif |
26 | 26 | ||
27 | #include <sound/driver.h> | 27 | #include <sound/driver.h> |
28 | |||
29 | #ifdef CONFIG_SND_PCM_OSS_PLUGINS | ||
30 | |||
31 | #include <linux/slab.h> | 28 | #include <linux/slab.h> |
32 | #include <linux/time.h> | 29 | #include <linux/time.h> |
33 | #include <linux/vmalloc.h> | 30 | #include <linux/vmalloc.h> |
@@ -740,5 +737,3 @@ int snd_pcm_area_copy(const struct snd_pcm_channel_area *src_area, size_t src_of | |||
740 | } | 737 | } |
741 | return 0; | 738 | return 0; |
742 | } | 739 | } |
743 | |||
744 | #endif | ||
diff --git a/sound/core/oss/rate.c b/sound/core/oss/rate.c index 18d8a0f4e816..66f1dbe492cf 100644 --- a/sound/core/oss/rate.c +++ b/sound/core/oss/rate.c | |||
@@ -20,9 +20,6 @@ | |||
20 | */ | 20 | */ |
21 | 21 | ||
22 | #include <sound/driver.h> | 22 | #include <sound/driver.h> |
23 | |||
24 | #ifdef CONFIG_SND_PCM_OSS_PLUGINS | ||
25 | |||
26 | #include <linux/time.h> | 23 | #include <linux/time.h> |
27 | #include <sound/core.h> | 24 | #include <sound/core.h> |
28 | #include <sound/pcm.h> | 25 | #include <sound/pcm.h> |
@@ -340,5 +337,3 @@ int snd_pcm_plugin_build_rate(struct snd_pcm_substream *plug, | |||
340 | *r_plugin = plugin; | 337 | *r_plugin = plugin; |
341 | return 0; | 338 | return 0; |
342 | } | 339 | } |
343 | |||
344 | #endif | ||
diff --git a/sound/core/oss/route.c b/sound/core/oss/route.c index 46917dc0196b..de3ffdeaf7e3 100644 --- a/sound/core/oss/route.c +++ b/sound/core/oss/route.c | |||
@@ -20,9 +20,6 @@ | |||
20 | */ | 20 | */ |
21 | 21 | ||
22 | #include <sound/driver.h> | 22 | #include <sound/driver.h> |
23 | |||
24 | #ifdef CONFIG_SND_PCM_OSS_PLUGINS | ||
25 | |||
26 | #include <linux/slab.h> | 23 | #include <linux/slab.h> |
27 | #include <linux/time.h> | 24 | #include <linux/time.h> |
28 | #include <sound/core.h> | 25 | #include <sound/core.h> |
@@ -108,5 +105,3 @@ int snd_pcm_plugin_build_route(struct snd_pcm_substream *plug, | |||
108 | *r_plugin = plugin; | 105 | *r_plugin = plugin; |
109 | return 0; | 106 | return 0; |
110 | } | 107 | } |
111 | |||
112 | #endif | ||