Lines Matching refs:format
183 snd_pcm_area_silence(&dst_channels[channel].area, 0, frames, plugin->dst_format.format); in mulaw_decode()
229 snd_pcm_area_silence(&dst_channels[channel].area, 0, frames, plugin->dst_format.format); in mulaw_encode()
277 static void init_data(struct mulaw_priv *data, snd_pcm_format_t format) in init_data() argument
280 data->cvt_endian = snd_pcm_format_big_endian(format) > 0; in init_data()
282 data->cvt_endian = snd_pcm_format_little_endian(format) > 0; in init_data()
284 if (!snd_pcm_format_signed(format)) in init_data()
286 data->native_bytes = snd_pcm_format_physical_width(format) / 8; in init_data()
288 if (snd_pcm_format_little_endian(format)) { in init_data()
294 snd_pcm_format_width(format) / 8; in init_data()
306 struct snd_pcm_plugin_format *format; in snd_pcm_plugin_build_mulaw() local
318 if (dst_format->format == SNDRV_PCM_FORMAT_MU_LAW) { in snd_pcm_plugin_build_mulaw()
319 format = src_format; in snd_pcm_plugin_build_mulaw()
322 else if (src_format->format == SNDRV_PCM_FORMAT_MU_LAW) { in snd_pcm_plugin_build_mulaw()
323 format = dst_format; in snd_pcm_plugin_build_mulaw()
330 if (snd_BUG_ON(!snd_pcm_format_linear(format->format))) in snd_pcm_plugin_build_mulaw()
340 init_data(data, format->format); in snd_pcm_plugin_build_mulaw()