Lines Matching refs:format

51 	struct snd_pcm_plugin_format *format;  in snd_pcm_plugin_alloc()  local
58 format = &plugin->src_format; in snd_pcm_plugin_alloc()
60 format = &plugin->dst_format; in snd_pcm_plugin_alloc()
62 width = snd_pcm_format_physical_width(format->format); in snd_pcm_plugin_alloc()
65 size = array3_size(frames, format->channels, width); in snd_pcm_plugin_alloc()
83 for (channel = 0; channel < format->channels; channel++, c++) { in snd_pcm_plugin_alloc()
89 c->area.step = format->channels * width; in snd_pcm_plugin_alloc()
92 if (snd_BUG_ON(size % format->channels)) in snd_pcm_plugin_alloc()
94 size /= format->channels; in snd_pcm_plugin_alloc()
95 for (channel = 0; channel < format->channels; channel++, c++) { in snd_pcm_plugin_alloc()
172 plugin->src_width = snd_pcm_format_physical_width(src_format->format); in snd_pcm_plugin_build()
175 plugin->dst_width = snd_pcm_format_physical_width(dst_format->format); in snd_pcm_plugin_build()
278 snd_pcm_format_t format) in snd_pcm_plug_formats() argument
296 return snd_mask_test(&formats, (__force int)format); in snd_pcm_plug_formats()
320 snd_pcm_format_t snd_pcm_plug_slave_format(snd_pcm_format_t format, in snd_pcm_plug_slave_format() argument
325 if (snd_mask_test(format_mask, (__force int)format)) in snd_pcm_plug_slave_format()
326 return format; in snd_pcm_plug_slave_format()
327 if (!snd_pcm_plug_formats(format_mask, format)) in snd_pcm_plug_slave_format()
329 if (snd_pcm_format_linear(format)) { in snd_pcm_plug_slave_format()
330 unsigned int width = snd_pcm_format_width(format); in snd_pcm_plug_slave_format()
331 int unsignd = snd_pcm_format_unsigned(format) > 0; in snd_pcm_plug_slave_format()
332 int big = snd_pcm_format_big_endian(format) > 0; in snd_pcm_plug_slave_format()
357 switch (format) { in snd_pcm_plug_slave_format()
387 dstformat.format = params_format(slave_params); in snd_pcm_plug_format_plugins()
390 srcformat.format = params_format(params); in snd_pcm_plug_format_plugins()
398 dstformat.format = params_format(params); in snd_pcm_plug_format_plugins()
401 srcformat.format = params_format(slave_params); in snd_pcm_plug_format_plugins()
415 srcformat.format, in snd_pcm_plug_format_plugins()
419 dstformat.format, in snd_pcm_plug_format_plugins()
425 ! snd_pcm_format_linear(srcformat.format)) { in snd_pcm_plug_format_plugins()
426 if (srcformat.format != SNDRV_PCM_FORMAT_MU_LAW) in snd_pcm_plug_format_plugins()
428 tmpformat.format = SNDRV_PCM_FORMAT_S16; in snd_pcm_plug_format_plugins()
461 if (srcformat.format != SNDRV_PCM_FORMAT_S16) { in snd_pcm_plug_format_plugins()
463 tmpformat.format = SNDRV_PCM_FORMAT_S16; in snd_pcm_plug_format_plugins()
494 if (srcformat.format != dstformat.format) { in snd_pcm_plug_format_plugins()
495 tmpformat.format = dstformat.format; in snd_pcm_plug_format_plugins()
496 if (srcformat.format == SNDRV_PCM_FORMAT_MU_LAW || in snd_pcm_plug_format_plugins()
497 tmpformat.format == SNDRV_PCM_FORMAT_MU_LAW) { in snd_pcm_plug_format_plugins()
502 else if (snd_pcm_format_linear(srcformat.format) && in snd_pcm_plug_format_plugins()
503 snd_pcm_format_linear(tmpformat.format)) { in snd_pcm_plug_format_plugins()
510 pdprintf("format change: src=%i, dst=%i returns %i\n", srcformat.format, tmpformat.format, err); in snd_pcm_plug_format_plugins()
564 struct snd_pcm_plugin_format *format; in snd_pcm_plug_client_channels_buf() local
572 format = &plugin->src_format; in snd_pcm_plug_client_channels_buf()
575 format = &plugin->dst_format; in snd_pcm_plug_client_channels_buf()
579 width = snd_pcm_format_physical_width(format->format); in snd_pcm_plug_client_channels_buf()
582 nchannels = format->channels; in snd_pcm_plug_client_channels_buf()
584 format->channels > 1)) in snd_pcm_plug_client_channels_buf()
673 size_t samples, snd_pcm_format_t format) in snd_pcm_area_silence() argument
683 width = snd_pcm_format_physical_width(format); in snd_pcm_area_silence()
687 return snd_pcm_format_set_silence(format, dst, samples); in snd_pcm_area_silence()
688 silence = snd_pcm_format_silence_64(format); in snd_pcm_area_silence()
720 size_t samples, snd_pcm_format_t format) in snd_pcm_area_copy() argument
728 return snd_pcm_area_silence(dst_area, dst_offset, samples, format); in snd_pcm_area_copy()
732 width = snd_pcm_format_physical_width(format); in snd_pcm_area_copy()