Lines Matching refs:width
52 ssize_t width; in snd_pcm_plugin_alloc() local
62 width = snd_pcm_format_physical_width(format->format); in snd_pcm_plugin_alloc()
63 if (width < 0) in snd_pcm_plugin_alloc()
64 return width; in snd_pcm_plugin_alloc()
65 size = array3_size(frames, format->channels, width); in snd_pcm_plugin_alloc()
88 c->area.first = channel * width; in snd_pcm_plugin_alloc()
89 c->area.step = format->channels * width; in snd_pcm_plugin_alloc()
101 c->area.step = width; in snd_pcm_plugin_alloc()
330 unsigned int width = snd_pcm_format_width(format); in snd_pcm_plug_slave_format() local
341 if (w >= width) in snd_pcm_plug_slave_format()
342 badness = w - width; in snd_pcm_plug_slave_format()
344 badness = width - w + 32; in snd_pcm_plug_slave_format()
565 int width, nchannels, channel; in snd_pcm_plug_client_channels_buf() local
579 width = snd_pcm_format_physical_width(format->format); in snd_pcm_plug_client_channels_buf()
580 if (width < 0) in snd_pcm_plug_client_channels_buf()
581 return width; in snd_pcm_plug_client_channels_buf()
591 v->area.first = channel * width; in snd_pcm_plug_client_channels_buf()
592 v->area.step = nchannels * width; in snd_pcm_plug_client_channels_buf()
678 int width; in snd_pcm_area_silence() local
683 width = snd_pcm_format_physical_width(format); in snd_pcm_area_silence()
684 if (width <= 0) in snd_pcm_area_silence()
686 if (dst_area->step == (unsigned int) width && width >= 8) in snd_pcm_area_silence()
692 if (width == 4) { in snd_pcm_area_silence()
709 width /= 8; in snd_pcm_area_silence()
711 memcpy(dst, silence, width); in snd_pcm_area_silence()
724 int width; in snd_pcm_area_copy() local
732 width = snd_pcm_format_physical_width(format); in snd_pcm_area_copy()
733 if (width <= 0) in snd_pcm_area_copy()
735 if (src_area->step == (unsigned int) width && in snd_pcm_area_copy()
736 dst_area->step == (unsigned int) width && width >= 8) { in snd_pcm_area_copy()
737 size_t bytes = samples * width / 8; in snd_pcm_area_copy()
743 if (width == 4) { in snd_pcm_area_copy()
773 width /= 8; in snd_pcm_area_copy()
775 memcpy(dst, src, width); in snd_pcm_area_copy()