Lines Matching full:if
18 * License along with this library; if not, write to the Free Software
23 #if 0
57 if (plugin->stream == SNDRV_PCM_STREAM_PLAYBACK) { in snd_pcm_plugin_alloc()
62 if ((width = snd_pcm_format_physical_width(format->format)) < 0) in snd_pcm_plugin_alloc()
65 if (snd_BUG_ON(size % 8)) in snd_pcm_plugin_alloc()
68 if (plugin->buf_frames < frames) { in snd_pcm_plugin_alloc()
73 if (!plugin->buf) { in snd_pcm_plugin_alloc()
78 if (plugin->access == SNDRV_PCM_ACCESS_RW_INTERLEAVED) { in snd_pcm_plugin_alloc()
87 } else if (plugin->access == SNDRV_PCM_ACCESS_RW_NONINTERLEAVED) { in snd_pcm_plugin_alloc()
88 if (snd_BUG_ON(size % format->channels)) in snd_pcm_plugin_alloc()
107 if (snd_BUG_ON(!snd_pcm_plug_first(plug))) in snd_pcm_plug_alloc()
109 if (snd_pcm_plug_stream(plug) == SNDRV_PCM_STREAM_PLAYBACK) { in snd_pcm_plug_alloc()
112 if (plugin->dst_frames) in snd_pcm_plug_alloc()
114 if (snd_BUG_ON(frames <= 0)) in snd_pcm_plug_alloc()
118 if (err < 0) in snd_pcm_plug_alloc()
124 if (plugin->src_frames) in snd_pcm_plug_alloc()
126 if (snd_BUG_ON(frames <= 0)) in snd_pcm_plug_alloc()
130 if (err < 0) in snd_pcm_plug_alloc()
156 if (snd_BUG_ON(!plug)) in snd_pcm_plugin_build()
158 if (snd_BUG_ON(!src_format || !dst_format)) in snd_pcm_plugin_build()
161 if (plugin == NULL) in snd_pcm_plugin_build()
173 if (plugin->stream == SNDRV_PCM_STREAM_PLAYBACK) in snd_pcm_plugin_build()
178 if (plugin->buf_channels == NULL) { in snd_pcm_plugin_build()
189 if (! plugin) in snd_pcm_plugin_free()
191 if (plugin->private_free) in snd_pcm_plugin_free()
204 if (snd_BUG_ON(!plug)) in snd_pcm_plug_client_size()
206 if (drv_frames == 0) in snd_pcm_plug_client_size()
208 if (stream == SNDRV_PCM_STREAM_PLAYBACK) { in snd_pcm_plug_client_size()
212 if (plugin->src_frames) in snd_pcm_plug_client_size()
216 } else if (stream == SNDRV_PCM_STREAM_CAPTURE) { in snd_pcm_plug_client_size()
220 if (plugin->dst_frames) in snd_pcm_plug_client_size()
235 if (snd_BUG_ON(!plug)) in snd_pcm_plug_slave_size()
237 if (clt_frames == 0) in snd_pcm_plug_slave_size()
240 if (stream == SNDRV_PCM_STREAM_PLAYBACK) { in snd_pcm_plug_slave_size()
244 if (plugin->dst_frames) { in snd_pcm_plug_slave_size()
246 if (frames < 0) in snd_pcm_plug_slave_size()
251 } else if (stream == SNDRV_PCM_STREAM_CAPTURE) { in snd_pcm_plug_slave_size()
255 if (plugin->src_frames) { in snd_pcm_plug_slave_size()
257 if (frames < 0) in snd_pcm_plug_slave_size()
281 if (formats.bits[0] & (u32)linfmts) in snd_pcm_plug_formats()
283 if (formats.bits[1] & (u32)(linfmts >> 32)) in snd_pcm_plug_formats()
314 if (snd_mask_test(format_mask, (__force int)format)) in snd_pcm_plug_slave_format()
316 if (!snd_pcm_plug_formats(format_mask, format)) in snd_pcm_plug_slave_format()
318 if (snd_pcm_format_linear(format)) { in snd_pcm_plug_slave_format()
327 if (!snd_mask_test(format_mask, (__force int)f)) in snd_pcm_plug_slave_format()
330 if (w >= width) in snd_pcm_plug_slave_format()
336 if (badness < best) { in snd_pcm_plug_slave_format()
341 if ((__force int)best_format >= 0) in snd_pcm_plug_slave_format()
350 if (snd_mask_test(format_mask, (__force int)format1)) in snd_pcm_plug_slave_format()
412 if (! rate_match(srcformat.rate, dstformat.rate) && in snd_pcm_plug_format_plugins()
414 if (srcformat.format != SNDRV_PCM_FORMAT_MU_LAW) in snd_pcm_plug_format_plugins()
420 if (err < 0) in snd_pcm_plug_format_plugins()
423 if (err < 0) { in snd_pcm_plug_format_plugins()
432 if (srcformat.channels > dstformat.channels) { in snd_pcm_plug_format_plugins()
436 if (err < 0) in snd_pcm_plug_format_plugins()
439 if (err < 0) { in snd_pcm_plug_format_plugins()
448 if (!rate_match(srcformat.rate, dstformat.rate)) { in snd_pcm_plug_format_plugins()
449 if (srcformat.format != SNDRV_PCM_FORMAT_S16) { in snd_pcm_plug_format_plugins()
455 if (err < 0) in snd_pcm_plug_format_plugins()
458 if (err < 0) { in snd_pcm_plug_format_plugins()
470 if (err < 0) in snd_pcm_plug_format_plugins()
473 if (err < 0) { in snd_pcm_plug_format_plugins()
482 if (srcformat.format != dstformat.format) { in snd_pcm_plug_format_plugins()
484 if (srcformat.format == SNDRV_PCM_FORMAT_MU_LAW || in snd_pcm_plug_format_plugins()
490 else if (snd_pcm_format_linear(srcformat.format) && in snd_pcm_plug_format_plugins()
499 if (err < 0) in snd_pcm_plug_format_plugins()
502 if (err < 0) { in snd_pcm_plug_format_plugins()
511 if (srcformat.channels < dstformat.channels) { in snd_pcm_plug_format_plugins()
515 if (err < 0) in snd_pcm_plug_format_plugins()
518 if (err < 0) { in snd_pcm_plug_format_plugins()
527 if (src_access != dst_access) { in snd_pcm_plug_format_plugins()
533 if (err < 0) in snd_pcm_plug_format_plugins()
536 if (err < 0) { in snd_pcm_plug_format_plugins()
556 if (snd_BUG_ON(!buf)) in snd_pcm_plug_client_channels_buf()
558 if (stream == SNDRV_PCM_STREAM_PLAYBACK) { in snd_pcm_plug_client_channels_buf()
567 if ((width = snd_pcm_format_physical_width(format->format)) < 0) in snd_pcm_plug_client_channels_buf()
570 if (snd_BUG_ON(plugin->access != SNDRV_PCM_ACCESS_RW_INTERLEAVED && in snd_pcm_plug_client_channels_buf()
593 if ((next = plugin->next) != NULL) { in snd_pcm_plug_write_transfer()
595 if (plugin->dst_frames) in snd_pcm_plug_write_transfer()
597 if ((err = next->client_channels(next, frames1, &dst_channels)) < 0) { in snd_pcm_plug_write_transfer()
600 if (err != frames1) { in snd_pcm_plug_write_transfer()
602 if (plugin->src_frames) in snd_pcm_plug_write_transfer()
608 if ((frames = plugin->transfer(plugin, src_channels, dst_channels, frames)) < 0) in snd_pcm_plug_write_transfer()
624 if (frames < 0) in snd_pcm_plug_read_transfer()
630 if ((next = plugin->next) != NULL) { in snd_pcm_plug_read_transfer()
631 if ((err = plugin->client_channels(plugin, frames, &dst_channels)) < 0) { in snd_pcm_plug_read_transfer()
639 if ((frames = plugin->transfer(plugin, src_channels, dst_channels, frames)) < 0) in snd_pcm_plug_read_transfer()
655 if (!dst_area->addr) in snd_pcm_area_silence()
659 if (width <= 0) in snd_pcm_area_silence()
661 if (dst_area->step == (unsigned int) width && width >= 8) in snd_pcm_area_silence()
664 if (! silence) in snd_pcm_area_silence()
667 if (width == 4) { in snd_pcm_area_silence()
672 if (dstbit) in snd_pcm_area_silence()
678 if (dstbit == 8) { in snd_pcm_area_silence()
702 if (!src_area->addr) in snd_pcm_area_copy()
705 if (!dst_area->addr) in snd_pcm_area_copy()
708 if (width <= 0) in snd_pcm_area_copy()
710 if (src_area->step == (unsigned int) width && in snd_pcm_area_copy()
718 if (width == 4) { in snd_pcm_area_copy()
726 if (srcbit) in snd_pcm_area_copy()
730 if (dstbit) in snd_pcm_area_copy()
736 if (srcbit == 8) { in snd_pcm_area_copy()
742 if (dstbit == 8) { in snd_pcm_area_copy()