[ALSA] Changed Jaroslav Kysela's e-mail from perex@suse.cz to perex@perex.cz
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / sound / core / oss / pcm_plugin.h
index a8a4f958043565dfbda0a93f196daf6d8c7e5c87..ca2f4c39be46e43e3dbb104b5ea1f0e3cc6684b3 100644 (file)
@@ -3,7 +3,7 @@
 
 /*
  *  Digital Audio (Plugin interface) abstract layer
- *  Copyright (c) by Jaroslav Kysela <perex@suse.cz>
+ *  Copyright (c) by Jaroslav Kysela <perex@perex.cz>
  *
  *
  *   This program is free software; you can redistribute it and/or modify
 
 #ifdef CONFIG_SND_PCM_OSS_PLUGINS
 
-#include <linux/bitmap.h>
-
-static inline unsigned long *bitmap_alloc(unsigned int nbits)
-{
-       return kmalloc(BITS_TO_LONGS(nbits), GFP_KERNEL);
-}
-
 #define snd_pcm_plug_stream(plug) ((plug)->stream)
 
 enum snd_pcm_plugin_action {
@@ -71,12 +64,6 @@ struct snd_pcm_plugin {
        snd_pcm_sframes_t (*client_channels)(struct snd_pcm_plugin *plugin,
                                             snd_pcm_uframes_t frames,
                                             struct snd_pcm_plugin_channel **channels);
-       int (*src_channels_mask)(struct snd_pcm_plugin *plugin,
-                                unsigned long *dst_vmask,
-                                unsigned long **src_vmask);
-       int (*dst_channels_mask)(struct snd_pcm_plugin *plugin,
-                                unsigned long *src_vmask,
-                                unsigned long **dst_vmask);
        snd_pcm_sframes_t (*transfer)(struct snd_pcm_plugin *plugin,
                                      const struct snd_pcm_plugin_channel *src_channels,
                                      struct snd_pcm_plugin_channel *dst_channels,
@@ -92,8 +79,6 @@ struct snd_pcm_plugin {
        char *buf;
        snd_pcm_uframes_t buf_frames;
        struct snd_pcm_plugin_channel *buf_channels;
-       unsigned long *src_vmask;
-       unsigned long *dst_vmask;
        char extra_data[0];
 };
 
@@ -130,7 +115,6 @@ int snd_pcm_plugin_build_rate(struct snd_pcm_substream *handle,
 int snd_pcm_plugin_build_route(struct snd_pcm_substream *handle,
                               struct snd_pcm_plugin_format *src_format,
                               struct snd_pcm_plugin_format *dst_format,
-                              int *ttable,
                               struct snd_pcm_plugin **r_plugin);
 int snd_pcm_plugin_build_copy(struct snd_pcm_substream *handle,
                              struct snd_pcm_plugin_format *src_format,
@@ -183,16 +167,6 @@ snd_pcm_sframes_t snd_pcm_oss_readv3(struct snd_pcm_substream *substream,
                                     void **bufs, snd_pcm_uframes_t frames,
                                     int in_kernel);
 
-#define ROUTE_PLUGIN_RESOLUTION 16
-
-int getput_index(int format);
-int copy_index(int format);
-int conv_index(int src_format, int dst_format);
-
-void zero_channel(struct snd_pcm_plugin *plugin,
-                 const struct snd_pcm_plugin_channel *dst_channel,
-                 size_t samples);
-
 #else
 
 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; }