Home
last modified time | relevance | path

Searched refs:dst_format (Results 1 – 9 of 9) sorted by relevance

/linux/sound/core/oss/
H A Dlinear.c70 snd_pcm_area_silence(&dst_channels[channel].area, 0, frames, plugin->dst_format.format); in convert()
117 snd_pcm_format_t src_format, snd_pcm_format_t dst_format) in init_data() argument
122 dst_bytes = snd_pcm_format_width(dst_format) / 8; in init_data()
124 dst_le = snd_pcm_format_little_endian(dst_format) > 0; in init_data()
138 data->dst_ofs = snd_pcm_format_physical_width(dst_format) / 8 - in init_data()
141 snd_pcm_format_signed(dst_format)) { in init_data()
151 struct snd_pcm_plugin_format *dst_format, in snd_pcm_plugin_build_linear() argument
162 if (snd_BUG_ON(src_format->rate != dst_format->rate)) in snd_pcm_plugin_build_linear()
164 if (snd_BUG_ON(src_format->channels != dst_format->channels)) in snd_pcm_plugin_build_linear()
167 !snd_pcm_format_linear(dst_format->format))) in snd_pcm_plugin_build_linear()
[all …]
H A Dcopy.c49 snd_pcm_area_silence(&dst_channels->area, 0, frames, plugin->dst_format.format); in copy_transfer()
63 struct snd_pcm_plugin_format *dst_format, in snd_pcm_plugin_build_copy() argument
74 if (snd_BUG_ON(src_format->format != dst_format->format)) in snd_pcm_plugin_build_copy()
76 if (snd_BUG_ON(src_format->rate != dst_format->rate)) in snd_pcm_plugin_build_copy()
78 if (snd_BUG_ON(src_format->channels != dst_format->channels)) in snd_pcm_plugin_build_copy()
85 err = snd_pcm_plugin_build(plug, "copy", src_format, dst_format, in snd_pcm_plugin_build_copy()
H A Droute.c64 ndsts = plugin->dst_format.channels; in route_transfer()
66 format = plugin->dst_format.format; in route_transfer()
89 struct snd_pcm_plugin_format *dst_format, in snd_pcm_plugin_build_route() argument
98 if (snd_BUG_ON(src_format->rate != dst_format->rate)) in snd_pcm_plugin_build_route()
100 if (snd_BUG_ON(src_format->format != dst_format->format)) in snd_pcm_plugin_build_route()
104 src_format, dst_format, 0, &plugin); in snd_pcm_plugin_build_route()
H A Dpcm_plugin.h43 struct snd_pcm_plugin_format dst_format; /* destination format */ member
73 struct snd_pcm_plugin_format *dst_format,
89 struct snd_pcm_plugin_format *dst_format,
93 struct snd_pcm_plugin_format *dst_format,
97 struct snd_pcm_plugin_format *dst_format,
101 struct snd_pcm_plugin_format *dst_format,
105 struct snd_pcm_plugin_format *dst_format,
H A Dmulaw.c183 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()
302 struct snd_pcm_plugin_format *dst_format, in snd_pcm_plugin_build_mulaw() argument
315 if (snd_BUG_ON(src_format->rate != dst_format->rate)) in snd_pcm_plugin_build_mulaw()
317 if (snd_BUG_ON(src_format->channels != dst_format->channels)) in snd_pcm_plugin_build_mulaw()
320 if (dst_format->format == SNDRV_PCM_FORMAT_MU_LAW) { in snd_pcm_plugin_build_mulaw()
325 format = dst_format; in snd_pcm_plugin_build_mulaw()
336 src_format, dst_format, in snd_pcm_plugin_build_mulaw()
H A Dpcm_plugin.c60 format = &plugin->dst_format; in snd_pcm_plugin_alloc()
153 struct snd_pcm_plugin_format *dst_format, in snd_pcm_plugin_build() argument
162 if (snd_BUG_ON(!src_format || !dst_format)) in snd_pcm_plugin_build()
174 plugin->dst_format = *dst_format; in snd_pcm_plugin_build()
175 plugin->dst_width = snd_pcm_format_physical_width(dst_format->format); in snd_pcm_plugin_build()
180 channels = dst_format->channels; in snd_pcm_plugin_build()
575 format = &plugin->dst_format; in snd_pcm_plug_client_channels_buf()
H A Dio.c49 int channel, channels = plugin->dst_format.channels; in io_playback_transfer()
75 int channel, channels = plugin->dst_format.channels; in io_capture_transfer()
H A Dpcm_oss.c1476 …_bytes = (runtime->oss.plugin_last->dst_width * runtime->oss.plugin_last->dst_format.channels) / 8; in snd_pcm_oss_read2()
/linux/drivers/gpu/drm/tests/
H A Ddrm_format_helper_test.c574 static size_t conversion_buf_size(u32 dst_format, unsigned int dst_pitch, in conversion_buf_size() argument
577 const struct drm_format_info *dst_fi = drm_format_info(dst_format); in conversion_buf_size()