diff options
Diffstat (limited to 'sound/core/oss/pcm_plugin.h')
-rw-r--r-- | sound/core/oss/pcm_plugin.h | 28 |
1 files changed, 6 insertions, 22 deletions
diff --git a/sound/core/oss/pcm_plugin.h b/sound/core/oss/pcm_plugin.h index 29198da615cd..3be91b3d5377 100644 --- a/sound/core/oss/pcm_plugin.h +++ b/sound/core/oss/pcm_plugin.h | |||
@@ -22,12 +22,7 @@ | |||
22 | * | 22 | * |
23 | */ | 23 | */ |
24 | 24 | ||
25 | #include <linux/bitmap.h> | 25 | #ifdef CONFIG_SND_PCM_OSS_PLUGINS |
26 | |||
27 | static inline unsigned long *bitmap_alloc(unsigned int nbits) | ||
28 | { | ||
29 | return kmalloc(BITS_TO_LONGS(nbits), GFP_KERNEL); | ||
30 | } | ||
31 | 26 | ||
32 | #define snd_pcm_plug_stream(plug) ((plug)->stream) | 27 | #define snd_pcm_plug_stream(plug) ((plug)->stream) |
33 | 28 | ||
@@ -69,12 +64,6 @@ struct snd_pcm_plugin { | |||
69 | snd_pcm_sframes_t (*client_channels)(struct snd_pcm_plugin *plugin, | 64 | snd_pcm_sframes_t (*client_channels)(struct snd_pcm_plugin *plugin, |
70 | snd_pcm_uframes_t frames, | 65 | snd_pcm_uframes_t frames, |
71 | struct snd_pcm_plugin_channel **channels); | 66 | struct snd_pcm_plugin_channel **channels); |
72 | int (*src_channels_mask)(struct snd_pcm_plugin *plugin, | ||
73 | unsigned long *dst_vmask, | ||
74 | unsigned long **src_vmask); | ||
75 | int (*dst_channels_mask)(struct snd_pcm_plugin *plugin, | ||
76 | unsigned long *src_vmask, | ||
77 | unsigned long **dst_vmask); | ||
78 | snd_pcm_sframes_t (*transfer)(struct snd_pcm_plugin *plugin, | 67 | snd_pcm_sframes_t (*transfer)(struct snd_pcm_plugin *plugin, |
79 | const struct snd_pcm_plugin_channel *src_channels, | 68 | const struct snd_pcm_plugin_channel *src_channels, |
80 | struct snd_pcm_plugin_channel *dst_channels, | 69 | struct snd_pcm_plugin_channel *dst_channels, |
@@ -90,8 +79,6 @@ struct snd_pcm_plugin { | |||
90 | char *buf; | 79 | char *buf; |
91 | snd_pcm_uframes_t buf_frames; | 80 | snd_pcm_uframes_t buf_frames; |
92 | struct snd_pcm_plugin_channel *buf_channels; | 81 | struct snd_pcm_plugin_channel *buf_channels; |
93 | unsigned long *src_vmask; | ||
94 | unsigned long *dst_vmask; | ||
95 | char extra_data[0]; | 82 | char extra_data[0]; |
96 | }; | 83 | }; |
97 | 84 | ||
@@ -128,7 +115,6 @@ int snd_pcm_plugin_build_rate(struct snd_pcm_substream *handle, | |||
128 | int snd_pcm_plugin_build_route(struct snd_pcm_substream *handle, | 115 | int snd_pcm_plugin_build_route(struct snd_pcm_substream *handle, |
129 | struct snd_pcm_plugin_format *src_format, | 116 | struct snd_pcm_plugin_format *src_format, |
130 | struct snd_pcm_plugin_format *dst_format, | 117 | struct snd_pcm_plugin_format *dst_format, |
131 | int *ttable, | ||
132 | struct snd_pcm_plugin **r_plugin); | 118 | struct snd_pcm_plugin **r_plugin); |
133 | int snd_pcm_plugin_build_copy(struct snd_pcm_substream *handle, | 119 | int snd_pcm_plugin_build_copy(struct snd_pcm_substream *handle, |
134 | struct snd_pcm_plugin_format *src_format, | 120 | struct snd_pcm_plugin_format *src_format, |
@@ -181,15 +167,13 @@ snd_pcm_sframes_t snd_pcm_oss_readv3(struct snd_pcm_substream *substream, | |||
181 | void **bufs, snd_pcm_uframes_t frames, | 167 | void **bufs, snd_pcm_uframes_t frames, |
182 | int in_kernel); | 168 | int in_kernel); |
183 | 169 | ||
184 | #define ROUTE_PLUGIN_RESOLUTION 16 | 170 | #else |
185 | 171 | ||
186 | int getput_index(int format); | 172 | static inline snd_pcm_sframes_t snd_pcm_plug_client_size(struct snd_pcm_substream *handle, snd_pcm_uframes_t drv_size) { return drv_size; } |
187 | int copy_index(int format); | 173 | static inline snd_pcm_sframes_t snd_pcm_plug_slave_size(struct snd_pcm_substream *handle, snd_pcm_uframes_t clt_size) { return clt_size; } |
188 | int conv_index(int src_format, int dst_format); | 174 | static inline int snd_pcm_plug_slave_format(int format, struct snd_mask *format_mask) { return format; } |
189 | 175 | ||
190 | void zero_channel(struct snd_pcm_plugin *plugin, | 176 | #endif |
191 | const struct snd_pcm_plugin_channel *dst_channel, | ||
192 | size_t samples); | ||
193 | 177 | ||
194 | #ifdef PLUGIN_DEBUG | 178 | #ifdef PLUGIN_DEBUG |
195 | #define pdprintf( fmt, args... ) printk( "plugin: " fmt, ##args) | 179 | #define pdprintf( fmt, args... ) printk( "plugin: " fmt, ##args) |