Home
last modified time | relevance | path

Searched refs:src_format (Results 1 – 13 of 13) sorted by relevance

/linux/sound/core/oss/
H A Dlinear.c47 int nchannels = plugin->src_format.channels; in convert()
85 for (channel = 0; channel < plugin->src_format.channels; channel++) { in linear_transfer()
102 snd_pcm_format_t src_format, snd_pcm_format_t dst_format) in init_data() argument
106 src_bytes = snd_pcm_format_width(src_format) / 8; in init_data()
108 src_le = snd_pcm_format_little_endian(src_format) > 0; in init_data()
118 data->src_ofs = snd_pcm_format_physical_width(src_format) / 8 - in init_data()
125 if (snd_pcm_format_signed(src_format) != in init_data()
135 struct snd_pcm_plugin_format *src_format, in snd_pcm_plugin_build_linear() argument
147 if (snd_BUG_ON(src_format->rate != dst_format->rate)) in snd_pcm_plugin_build_linear()
149 if (snd_BUG_ON(src_format->channels != dst_format->channels)) in snd_pcm_plugin_build_linear()
[all …]
H A Dcopy.c24 nchannels = plugin->src_format.channels; in copy_transfer()
39 …snd_pcm_area_copy(&src_channels->area, 0, &dst_channels->area, 0, frames, plugin->src_format.forma… in copy_transfer()
47 struct snd_pcm_plugin_format *src_format, in snd_pcm_plugin_build_copy() argument
59 if (snd_BUG_ON(src_format->format != dst_format->format)) in snd_pcm_plugin_build_copy()
61 if (snd_BUG_ON(src_format->rate != dst_format->rate)) in snd_pcm_plugin_build_copy()
63 if (snd_BUG_ON(src_format->channels != dst_format->channels)) in snd_pcm_plugin_build_copy()
66 width = snd_pcm_format_physical_width(src_format->format); in snd_pcm_plugin_build_copy()
70 err = snd_pcm_plugin_build(plug, "copy", src_format, dst_format, in snd_pcm_plugin_build_copy()
H A Drate.c43 for (channel = 0; channel < plugin->src_format.channels; channel++) { in rate_init()
64 for (channel = 0; channel < plugin->src_format.channels; channel++) { in resample_expand()
123 for (channel = 0; channel < plugin->src_format.channels; ++channel) { in resample_shrink()
178 if (plugin->src_format.rate < plugin->dst_format.rate) { in rate_src_frames()
211 if (plugin->src_format.rate < plugin->dst_format.rate) { in rate_dst_frames()
249 for (channel = 0; channel < plugin->src_format.channels; channel++) { in rate_transfer()
286 struct snd_pcm_plugin_format *src_format, in snd_pcm_plugin_build_rate() argument
298 if (snd_BUG_ON(src_format->channels != dst_format->channels)) in snd_pcm_plugin_build_rate()
300 if (snd_BUG_ON(src_format->channels <= 0)) in snd_pcm_plugin_build_rate()
302 if (snd_BUG_ON(src_format->format != SNDRV_PCM_FORMAT_S16)) in snd_pcm_plugin_build_rate()
[all …]
H A Dpcm_plugin.h42 struct snd_pcm_plugin_format src_format; /* source format */ member
72 struct snd_pcm_plugin_format *src_format,
88 struct snd_pcm_plugin_format *src_format,
92 struct snd_pcm_plugin_format *src_format,
96 struct snd_pcm_plugin_format *src_format,
100 struct snd_pcm_plugin_format *src_format,
104 struct snd_pcm_plugin_format *src_format,
H A Droute.c48 nsrcs = plugin->src_format.channels; in route_transfer()
73 struct snd_pcm_plugin_format *src_format, in snd_pcm_plugin_build_route() argument
83 if (snd_BUG_ON(src_format->rate != dst_format->rate)) in snd_pcm_plugin_build_route()
85 if (snd_BUG_ON(src_format->format != dst_format->format)) in snd_pcm_plugin_build_route()
89 src_format, dst_format, 0, &plugin); in snd_pcm_plugin_build_route()
H A Dmulaw.c161 int nchannels = plugin->src_format.channels; in mulaw_decode()
207 int nchannels = plugin->src_format.channels; in mulaw_encode()
248 for (channel = 0; channel < plugin->src_format.channels; channel++) { in mulaw_transfer()
287 struct snd_pcm_plugin_format *src_format, in snd_pcm_plugin_build_mulaw() argument
301 if (snd_BUG_ON(src_format->rate != dst_format->rate)) in snd_pcm_plugin_build_mulaw()
303 if (snd_BUG_ON(src_format->channels != dst_format->channels)) in snd_pcm_plugin_build_mulaw()
307 format = src_format; in snd_pcm_plugin_build_mulaw()
310 else if (src_format->format == SNDRV_PCM_FORMAT_MU_LAW) { in snd_pcm_plugin_build_mulaw()
322 src_format, dst_format, in snd_pcm_plugin_build_mulaw()
H A Dpcm_plugin.c43 format = &plugin->src_format; in snd_pcm_plugin_alloc()
137 struct snd_pcm_plugin_format *src_format, in snd_pcm_plugin_build() argument
147 if (snd_BUG_ON(!src_format || !dst_format)) in snd_pcm_plugin_build()
156 plugin->src_format = *src_format; in snd_pcm_plugin_build()
157 plugin->src_width = snd_pcm_format_physical_width(src_format->format); in snd_pcm_plugin_build()
163 channels = src_format->channels; in snd_pcm_plugin_build()
557 format = &plugin->src_format; in snd_pcm_plug_client_channels_buf()
H A Dio.c87 for (channel = 0; channel < plugin->src_format.channels; ++channel, ++v) in io_src_channels()
H A Dpcm_oss.c1367 …ytes = (runtime->oss.plugin_first->src_width * runtime->oss.plugin_first->src_format.channels) / 8; in snd_pcm_oss_write2()
/linux/drivers/gpu/drm/sysfb/
H A Ddrm_sysfb_modeset.c201 static drm_sysfb_blit_func drm_sysfb_get_blit_func(u32 dst_format, u32 src_format) in drm_sysfb_get_blit_func() argument
203 if (src_format == dst_format) { in drm_sysfb_get_blit_func()
205 } else if (src_format == DRM_FORMAT_XRGB8888) { in drm_sysfb_get_blit_func()
/linux/drivers/media/platform/cadence/
H A Dcdns-csi2tx.c207 const struct v4l2_mbus_framefmt *src_format = &fmt->format; in csi2tx_set_pad_format() local
215 src_format = &fmt_default; in csi2tx_set_pad_format()
221 *dst_format = *src_format; in csi2tx_set_pad_format()
/linux/drivers/media/platform/renesas/rzg2l-cru/
H A Drzg2l-csi2.c640 struct v4l2_mbus_framefmt *src_format; in rzg2l_csi2_set_format() local
643 src_format = v4l2_subdev_state_get_format(state, RZG2L_CSI2_SOURCE); in rzg2l_csi2_set_format()
645 fmt->format = *src_format; in rzg2l_csi2_set_format()
670 *src_format = *sink_format; in rzg2l_csi2_set_format()
/linux/drivers/media/platform/chips-media/wave5/
H A Dwave5-vpu-enc.c1155 open_param->src_format = FORMAT_422; in wave5_set_enc_openparam()
1157 open_param->src_format = FORMAT_420; in wave5_set_enc_openparam()