aboutsummaryrefslogtreecommitdiffstats
path: root/sound/core/oss/pcm_plugin.h
diff options
context:
space:
mode:
Diffstat (limited to 'sound/core/oss/pcm_plugin.h')
-rw-r--r--sound/core/oss/pcm_plugin.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/sound/core/oss/pcm_plugin.h b/sound/core/oss/pcm_plugin.h
index b9afab603711..a5035c2369a6 100644
--- a/sound/core/oss/pcm_plugin.h
+++ b/sound/core/oss/pcm_plugin.h
@@ -46,7 +46,7 @@ struct snd_pcm_plugin_channel {
46}; 46};
47 47
48struct snd_pcm_plugin_format { 48struct snd_pcm_plugin_format {
49 int format; 49 snd_pcm_format_t format;
50 unsigned int rate; 50 unsigned int rate;
51 unsigned int channels; 51 unsigned int channels;
52}; 52};
@@ -58,7 +58,7 @@ struct snd_pcm_plugin {
58 struct snd_pcm_plugin_format dst_format; /* destination format */ 58 struct snd_pcm_plugin_format dst_format; /* destination format */
59 int src_width; /* sample width in bits */ 59 int src_width; /* sample width in bits */
60 int dst_width; /* sample width in bits */ 60 int dst_width; /* sample width in bits */
61 int access; 61 snd_pcm_access_t access;
62 snd_pcm_sframes_t (*src_frames)(struct snd_pcm_plugin *plugin, snd_pcm_uframes_t dst_frames); 62 snd_pcm_sframes_t (*src_frames)(struct snd_pcm_plugin *plugin, snd_pcm_uframes_t dst_frames);
63 snd_pcm_sframes_t (*dst_frames)(struct snd_pcm_plugin *plugin, snd_pcm_uframes_t src_frames); 63 snd_pcm_sframes_t (*dst_frames)(struct snd_pcm_plugin *plugin, snd_pcm_uframes_t src_frames);
64 snd_pcm_sframes_t (*client_channels)(struct snd_pcm_plugin *plugin, 64 snd_pcm_sframes_t (*client_channels)(struct snd_pcm_plugin *plugin,
@@ -125,7 +125,8 @@ int snd_pcm_plug_format_plugins(struct snd_pcm_substream *substream,
125 struct snd_pcm_hw_params *params, 125 struct snd_pcm_hw_params *params,
126 struct snd_pcm_hw_params *slave_params); 126 struct snd_pcm_hw_params *slave_params);
127 127
128int snd_pcm_plug_slave_format(int format, struct snd_mask *format_mask); 128snd_pcm_format_t snd_pcm_plug_slave_format(snd_pcm_format_t format,
129 struct snd_mask *format_mask);
129 130
130int snd_pcm_plugin_append(struct snd_pcm_plugin *plugin); 131int snd_pcm_plugin_append(struct snd_pcm_plugin *plugin);
131 132
@@ -146,12 +147,12 @@ snd_pcm_sframes_t snd_pcm_plugin_client_channels(struct snd_pcm_plugin *plugin,
146 147
147int snd_pcm_area_silence(const struct snd_pcm_channel_area *dst_channel, 148int snd_pcm_area_silence(const struct snd_pcm_channel_area *dst_channel,
148 size_t dst_offset, 149 size_t dst_offset,
149 size_t samples, int format); 150 size_t samples, snd_pcm_format_t format);
150int snd_pcm_area_copy(const struct snd_pcm_channel_area *src_channel, 151int snd_pcm_area_copy(const struct snd_pcm_channel_area *src_channel,
151 size_t src_offset, 152 size_t src_offset,
152 const struct snd_pcm_channel_area *dst_channel, 153 const struct snd_pcm_channel_area *dst_channel,
153 size_t dst_offset, 154 size_t dst_offset,
154 size_t samples, int format); 155 size_t samples, snd_pcm_format_t format);
155 156
156void *snd_pcm_plug_buf_alloc(struct snd_pcm_substream *plug, snd_pcm_uframes_t size); 157void *snd_pcm_plug_buf_alloc(struct snd_pcm_substream *plug, snd_pcm_uframes_t size);
157void snd_pcm_plug_buf_unlock(struct snd_pcm_substream *plug, void *ptr); 158void snd_pcm_plug_buf_unlock(struct snd_pcm_substream *plug, void *ptr);