/sound/core/oss/ |
D | pcm_plugin.c | 49 static int snd_pcm_plugin_alloc(struct snd_pcm_plugin *plugin, snd_pcm_uframes_t frames) in snd_pcm_plugin_alloc() argument 57 if (plugin->stream == SNDRV_PCM_STREAM_PLAYBACK) { in snd_pcm_plugin_alloc() 58 format = &plugin->src_format; in snd_pcm_plugin_alloc() 60 format = &plugin->dst_format; in snd_pcm_plugin_alloc() 68 if (plugin->buf_frames < frames) { in snd_pcm_plugin_alloc() 69 vfree(plugin->buf); in snd_pcm_plugin_alloc() 70 plugin->buf = vmalloc(size); in snd_pcm_plugin_alloc() 71 plugin->buf_frames = frames; in snd_pcm_plugin_alloc() 73 if (!plugin->buf) { in snd_pcm_plugin_alloc() 74 plugin->buf_frames = 0; in snd_pcm_plugin_alloc() [all …]
|
D | io.c | 37 static snd_pcm_sframes_t io_playback_transfer(struct snd_pcm_plugin *plugin, in io_playback_transfer() argument 42 if (snd_BUG_ON(!plugin)) in io_playback_transfer() 46 if (plugin->access == SNDRV_PCM_ACCESS_RW_INTERLEAVED) { in io_playback_transfer() 47 return pcm_write(plugin->plug, src_channels->area.addr, frames); in io_playback_transfer() 49 int channel, channels = plugin->dst_format.channels; in io_playback_transfer() 50 void **bufs = (void**)plugin->extra_data; in io_playback_transfer() 59 return pcm_writev(plugin->plug, bufs, frames); in io_playback_transfer() 63 static snd_pcm_sframes_t io_capture_transfer(struct snd_pcm_plugin *plugin, in io_capture_transfer() argument 68 if (snd_BUG_ON(!plugin)) in io_capture_transfer() 72 if (plugin->access == SNDRV_PCM_ACCESS_RW_INTERLEAVED) { in io_capture_transfer() [all …]
|
D | rate.c | 40 typedef void (*rate_f)(struct snd_pcm_plugin *plugin, 53 static void rate_init(struct snd_pcm_plugin *plugin) in rate_init() argument 56 struct rate_priv *data = (struct rate_priv *)plugin->extra_data; in rate_init() 58 for (channel = 0; channel < plugin->src_format.channels; channel++) { in rate_init() 64 static void resample_expand(struct snd_pcm_plugin *plugin, in resample_expand() argument 76 struct rate_priv *data = (struct rate_priv *)plugin->extra_data; in resample_expand() 79 for (channel = 0; channel < plugin->src_format.channels; channel++) { in resample_expand() 85 snd_pcm_area_silence(&dst_channels[channel].area, 0, dst_frames, plugin->dst_format.format); in resample_expand() 123 static void resample_shrink(struct snd_pcm_plugin *plugin, in resample_shrink() argument 135 struct rate_priv *data = (struct rate_priv *)plugin->extra_data; in resample_shrink() [all …]
|
D | mulaw.c | 141 typedef void (*mulaw_f)(struct snd_pcm_plugin *plugin, 168 static void mulaw_decode(struct snd_pcm_plugin *plugin, in mulaw_decode() argument 173 struct mulaw_priv *data = (struct mulaw_priv *)plugin->extra_data; in mulaw_decode() 175 int nchannels = plugin->src_format.channels; in mulaw_decode() 183 snd_pcm_area_silence(&dst_channels[channel].area, 0, frames, plugin->dst_format.format); in mulaw_decode() 214 static void mulaw_encode(struct snd_pcm_plugin *plugin, in mulaw_encode() argument 219 struct mulaw_priv *data = (struct mulaw_priv *)plugin->extra_data; in mulaw_encode() 221 int nchannels = plugin->src_format.channels; in mulaw_encode() 229 snd_pcm_area_silence(&dst_channels[channel].area, 0, frames, plugin->dst_format.format); in mulaw_encode() 248 static snd_pcm_sframes_t mulaw_transfer(struct snd_pcm_plugin *plugin, in mulaw_transfer() argument [all …]
|
D | copy.c | 27 static snd_pcm_sframes_t copy_transfer(struct snd_pcm_plugin *plugin, in copy_transfer() argument 35 if (snd_BUG_ON(!plugin || !src_channels || !dst_channels)) in copy_transfer() 39 nchannels = plugin->src_format.channels; in copy_transfer() 49 snd_pcm_area_silence(&dst_channels->area, 0, frames, plugin->dst_format.format); in copy_transfer() 54 …snd_pcm_area_copy(&src_channels->area, 0, &dst_channels->area, 0, frames, plugin->src_format.forma… in copy_transfer() 67 struct snd_pcm_plugin *plugin; in snd_pcm_plugin_build_copy() local 86 0, &plugin); in snd_pcm_plugin_build_copy() 89 plugin->transfer = copy_transfer; in snd_pcm_plugin_build_copy() 90 *r_plugin = plugin; in snd_pcm_plugin_build_copy()
|
D | linear.c | 55 static void convert(struct snd_pcm_plugin *plugin, in convert() argument 60 struct linear_priv *data = (struct linear_priv *)plugin->extra_data; in convert() 62 int nchannels = plugin->src_format.channels; in convert() 70 snd_pcm_area_silence(&dst_channels[channel].area, 0, frames, plugin->dst_format.format); in convert() 88 static snd_pcm_sframes_t linear_transfer(struct snd_pcm_plugin *plugin, in linear_transfer() argument 93 if (snd_BUG_ON(!plugin || !src_channels || !dst_channels)) in linear_transfer() 100 for (channel = 0; channel < plugin->src_format.channels; channel++) { in linear_transfer() 110 convert(plugin, src_channels, dst_channels, frames); in linear_transfer() 154 struct snd_pcm_plugin *plugin; in snd_pcm_plugin_build_linear() local 170 sizeof(struct linear_priv), &plugin); in snd_pcm_plugin_build_linear() [all …]
|
D | route.c | 47 static snd_pcm_sframes_t route_transfer(struct snd_pcm_plugin *plugin, in route_transfer() argument 56 if (snd_BUG_ON(!plugin || !src_channels || !dst_channels)) in route_transfer() 61 nsrcs = plugin->src_format.channels; in route_transfer() 62 ndsts = plugin->dst_format.channels; in route_transfer() 64 format = plugin->dst_format.format; in route_transfer() 90 struct snd_pcm_plugin *plugin; in snd_pcm_plugin_build_route() local 102 src_format, dst_format, 0, &plugin); in snd_pcm_plugin_build_route() 106 plugin->transfer = route_transfer; in snd_pcm_plugin_build_route() 107 *r_plugin = plugin; in snd_pcm_plugin_build_route()
|
D | pcm_plugin.h | 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); 64 snd_pcm_sframes_t (*client_channels)(struct snd_pcm_plugin *plugin, 67 snd_pcm_sframes_t (*transfer)(struct snd_pcm_plugin *plugin, 71 int (*action)(struct snd_pcm_plugin *plugin, 78 void (*private_free)(struct snd_pcm_plugin *plugin); 91 int snd_pcm_plugin_free(struct snd_pcm_plugin *plugin); 131 int snd_pcm_plugin_append(struct snd_pcm_plugin *plugin); 144 snd_pcm_sframes_t snd_pcm_plugin_client_channels(struct snd_pcm_plugin *plugin,
|
D | pcm_oss.c | 568 struct snd_pcm_plugin *plugin, *next; in snd_pcm_oss_plugin_clear() local 570 plugin = runtime->oss.plugin_first; in snd_pcm_oss_plugin_clear() 571 while (plugin) { in snd_pcm_oss_plugin_clear() 572 next = plugin->next; in snd_pcm_oss_plugin_clear() 573 snd_pcm_plugin_free(plugin); in snd_pcm_oss_plugin_clear() 574 plugin = next; in snd_pcm_oss_plugin_clear() 580 static int snd_pcm_plugin_insert(struct snd_pcm_plugin *plugin) in snd_pcm_plugin_insert() argument 582 struct snd_pcm_runtime *runtime = plugin->plug->runtime; in snd_pcm_plugin_insert() 583 plugin->next = runtime->oss.plugin_first; in snd_pcm_plugin_insert() 584 plugin->prev = NULL; in snd_pcm_plugin_insert() [all …]
|
/sound/core/ |
D | Kconfig | 79 bool "OSS PCM (digital audio) API - Include plugin system"
|