Home
last modified time | relevance | path

Searched refs:dst_channels (Results 1 – 8 of 8) sorted by relevance

/openbmc/linux/sound/core/oss/
H A Dmulaw.c143 struct snd_pcm_plugin_channel *dst_channels,
182 if (dst_channels[channel].wanted) in mulaw_decode()
184 dst_channels[channel].enabled = 0; in mulaw_decode()
187 dst_channels[channel].enabled = 1; in mulaw_decode()
189 dst = dst_channels[channel].area.addr + dst_channels[channel].area.first / 8; in mulaw_decode()
228 if (dst_channels[channel].wanted) in mulaw_encode()
230 dst_channels[channel].enabled = 0; in mulaw_encode()
233 dst_channels[channel].enabled = 1; in mulaw_encode()
235 dst = dst_channels[channel].area.addr + dst_channels[channel].area.first / 8; in mulaw_encode()
272 if (frames > dst_channels[0].frames) in mulaw_transfer()
[all …]
H A Dcopy.c29 struct snd_pcm_plugin_channel *dst_channels, in copy_transfer() argument
35 if (snd_BUG_ON(!plugin || !src_channels || !dst_channels)) in copy_transfer()
44 if (snd_BUG_ON(dst_channels->area.first % 8 || in copy_transfer()
45 dst_channels->area.step % 8)) in copy_transfer()
48 if (dst_channels->wanted) in copy_transfer()
49 snd_pcm_area_silence(&dst_channels->area, 0, frames, plugin->dst_format.format); in copy_transfer()
50 dst_channels->enabled = 0; in copy_transfer()
53 dst_channels->enabled = 1; in copy_transfer()
54 …snd_pcm_area_copy(&src_channels->area, 0, &dst_channels->area, 0, frames, plugin->src_format.forma… in copy_transfer()
56 dst_channels++; in copy_transfer()
H A Drate.c66 struct snd_pcm_plugin_channel *dst_channels, in resample_expand() argument
84 if (dst_channels[channel].wanted) in resample_expand()
86 dst_channels[channel].enabled = 0; in resample_expand()
89 dst_channels[channel].enabled = 1; in resample_expand()
93 dst_channels[channel].area.first / 8 / 2; in resample_expand()
143 if (dst_channels[channel].wanted) in resample_shrink()
145 dst_channels[channel].enabled = 0; in resample_shrink()
148 dst_channels[channel].enabled = 1; in resample_shrink()
152 dst_channels[channel].area.first / 8 / 2; in resample_shrink()
276 if (dst_frames > dst_channels[0].frames) in rate_transfer()
[all …]
H A Dlinear.c57 struct snd_pcm_plugin_channel *dst_channels, in convert() argument
69 if (dst_channels[channel].wanted) in convert()
71 dst_channels[channel].enabled = 0; in convert()
74 dst_channels[channel].enabled = 1; in convert()
76 dst = dst_channels[channel].area.addr + dst_channels[channel].area.first / 8; in convert()
78 dst_step = dst_channels[channel].area.step / 8; in convert()
90 struct snd_pcm_plugin_channel *dst_channels, in linear_transfer() argument
105 dst_channels[channel].area.step % 8)) in linear_transfer()
110 if (frames > dst_channels[0].frames) in linear_transfer()
111 frames = dst_channels[0].frames; in linear_transfer()
[all …]
H A Droute.c49 struct snd_pcm_plugin_channel *dst_channels, in route_transfer() argument
56 if (snd_BUG_ON(!plugin || !src_channels || !dst_channels)) in route_transfer()
60 if (frames > dst_channels[0].frames) in route_transfer()
61 frames = dst_channels[0].frames; in route_transfer()
67 dvp = dst_channels; in route_transfer()
H A Dio.c39 struct snd_pcm_plugin_channel *dst_channels, in io_playback_transfer() argument
65 struct snd_pcm_plugin_channel *dst_channels, in io_capture_transfer() argument
70 if (snd_BUG_ON(!dst_channels)) in io_capture_transfer()
73 return pcm_read(plugin->plug, dst_channels->area.addr, frames); in io_capture_transfer()
80 if (dst_channels[channel].enabled) in io_capture_transfer()
81 bufs[channel] = dst_channels[channel].area.addr; in io_capture_transfer()
H A Dpcm_plugin.c600 struct snd_pcm_plugin_channel *dst_channels; in snd_pcm_plug_write_transfer() local
616 err = next->client_channels(next, frames1, &dst_channels); in snd_pcm_plug_write_transfer()
628 dst_channels = NULL; in snd_pcm_plug_write_transfer()
630 frames = plugin->transfer(plugin, src_channels, dst_channels, frames); in snd_pcm_plug_write_transfer()
633 src_channels = dst_channels; in snd_pcm_plug_write_transfer()
642 struct snd_pcm_plugin_channel *src_channels, *dst_channels; in snd_pcm_plug_read_transfer() local
655 err = plugin->client_channels(plugin, frames, &dst_channels); in snd_pcm_plug_read_transfer()
660 dst_channels = dst_channels_final; in snd_pcm_plug_read_transfer()
663 frames = plugin->transfer(plugin, src_channels, dst_channels, frames); in snd_pcm_plug_read_transfer()
667 src_channels = dst_channels; in snd_pcm_plug_read_transfer()
H A Dpcm_plugin.h54 struct snd_pcm_plugin_channel *dst_channels,