.. | .. |
---|
141 | 141 | |
---|
142 | 142 | void *snd_pcm_plug_buf_alloc(struct snd_pcm_substream *plug, snd_pcm_uframes_t size); |
---|
143 | 143 | void snd_pcm_plug_buf_unlock(struct snd_pcm_substream *plug, void *ptr); |
---|
| 144 | +#else |
---|
| 145 | + |
---|
| 146 | +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; } |
---|
| 147 | +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; } |
---|
| 148 | +static inline int snd_pcm_plug_slave_format(int format, const struct snd_mask *format_mask) { return format; } |
---|
| 149 | + |
---|
| 150 | +#endif |
---|
| 151 | + |
---|
144 | 152 | snd_pcm_sframes_t snd_pcm_oss_write3(struct snd_pcm_substream *substream, |
---|
145 | 153 | const char *ptr, snd_pcm_uframes_t size, |
---|
146 | 154 | int in_kernel); |
---|
.. | .. |
---|
150 | 158 | void **bufs, snd_pcm_uframes_t frames); |
---|
151 | 159 | snd_pcm_sframes_t snd_pcm_oss_readv3(struct snd_pcm_substream *substream, |
---|
152 | 160 | void **bufs, snd_pcm_uframes_t frames); |
---|
153 | | - |
---|
154 | | -#else |
---|
155 | | - |
---|
156 | | -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; } |
---|
157 | | -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; } |
---|
158 | | -static inline int snd_pcm_plug_slave_format(int format, const struct snd_mask *format_mask) { return format; } |
---|
159 | | - |
---|
160 | | -#endif |
---|
161 | 161 | |
---|
162 | 162 | #ifdef PLUGIN_DEBUG |
---|
163 | 163 | #define pdprintf(fmt, args...) printk(KERN_DEBUG "plugin: " fmt, ##args) |
---|