• Home
  • Raw
  • Download

Lines Matching refs:channel

55 	unsigned int channel;  in rate_init()  local
58 for (channel = 0; channel < plugin->src_format.channels; channel++) { in rate_init()
59 data->channels[channel].last_S1 = 0; in rate_init()
60 data->channels[channel].last_S2 = 0; in rate_init()
73 unsigned int channel; in resample_expand() local
79 for (channel = 0; channel < plugin->src_format.channels; channel++) { in resample_expand()
83 if (!src_channels[channel].enabled) { in resample_expand()
84 if (dst_channels[channel].wanted) in resample_expand()
85 snd_pcm_area_silence(&dst_channels[channel].area, 0, dst_frames, plugin->dst_format.format); in resample_expand()
86 dst_channels[channel].enabled = 0; in resample_expand()
89 dst_channels[channel].enabled = 1; in resample_expand()
90 src = (signed short *)src_channels[channel].area.addr + in resample_expand()
91 src_channels[channel].area.first / 8 / 2; in resample_expand()
92 dst = (signed short *)dst_channels[channel].area.addr + in resample_expand()
93 dst_channels[channel].area.first / 8 / 2; in resample_expand()
94 src_step = src_channels[channel].area.step / 8 / 2; in resample_expand()
95 dst_step = dst_channels[channel].area.step / 8 / 2; in resample_expand()
132 unsigned int channel; in resample_shrink() local
138 for (channel = 0; channel < plugin->src_format.channels; ++channel) { in resample_shrink()
142 if (!src_channels[channel].enabled) { in resample_shrink()
143 if (dst_channels[channel].wanted) in resample_shrink()
144 snd_pcm_area_silence(&dst_channels[channel].area, 0, dst_frames, plugin->dst_format.format); in resample_shrink()
145 dst_channels[channel].enabled = 0; in resample_shrink()
148 dst_channels[channel].enabled = 1; in resample_shrink()
149 src = (signed short *)src_channels[channel].area.addr + in resample_shrink()
150 src_channels[channel].area.first / 8 / 2; in resample_shrink()
151 dst = (signed short *)dst_channels[channel].area.addr + in resample_shrink()
152 dst_channels[channel].area.first / 8 / 2; in resample_shrink()
153 src_step = src_channels[channel].area.step / 8 / 2; in resample_shrink()
154 dst_step = dst_channels[channel].area.step / 8 / 2; in resample_shrink()
263 unsigned int channel; in rate_transfer() local
264 for (channel = 0; channel < plugin->src_format.channels; channel++) { in rate_transfer()
265 if (snd_BUG_ON(src_channels[channel].area.first % 8 || in rate_transfer()
266 src_channels[channel].area.step % 8)) in rate_transfer()
268 if (snd_BUG_ON(dst_channels[channel].area.first % 8 || in rate_transfer()
269 dst_channels[channel].area.step % 8)) in rate_transfer()