Home
last modified time | relevance | path

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

/linux-6.14.4/sound/core/oss/
Dlinear.c62 int nchannels = plugin->src_format.channels; in convert()
100 for (channel = 0; channel < plugin->src_format.channels; channel++) { in linear_transfer()
117 snd_pcm_format_t src_format, snd_pcm_format_t dst_format) in init_data() argument
121 src_bytes = snd_pcm_format_width(src_format) / 8; in init_data()
123 src_le = snd_pcm_format_little_endian(src_format) > 0; in init_data()
133 data->src_ofs = snd_pcm_format_physical_width(src_format) / 8 - in init_data()
140 if (snd_pcm_format_signed(src_format) != in init_data()
150 struct snd_pcm_plugin_format *src_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()
[all …]
Dcopy.c39 nchannels = plugin->src_format.channels; in copy_transfer()
54 …snd_pcm_area_copy(&src_channels->area, 0, &dst_channels->area, 0, frames, plugin->src_format.forma… in copy_transfer()
62 struct snd_pcm_plugin_format *src_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()
81 width = snd_pcm_format_physical_width(src_format->format); in snd_pcm_plugin_build_copy()
85 err = snd_pcm_plugin_build(plug, "copy", src_format, dst_format, in snd_pcm_plugin_build_copy()
Drate.c58 for (channel = 0; channel < plugin->src_format.channels; channel++) { in rate_init()
79 for (channel = 0; channel < plugin->src_format.channels; channel++) { in resample_expand()
138 for (channel = 0; channel < plugin->src_format.channels; ++channel) { in resample_shrink()
193 if (plugin->src_format.rate < plugin->dst_format.rate) { in rate_src_frames()
226 if (plugin->src_format.rate < plugin->dst_format.rate) { in rate_dst_frames()
264 for (channel = 0; channel < plugin->src_format.channels; channel++) { in rate_transfer()
301 struct snd_pcm_plugin_format *src_format, in snd_pcm_plugin_build_rate() argument
313 if (snd_BUG_ON(src_format->channels != dst_format->channels)) in snd_pcm_plugin_build_rate()
315 if (snd_BUG_ON(src_format->channels <= 0)) in snd_pcm_plugin_build_rate()
317 if (snd_BUG_ON(src_format->format != SNDRV_PCM_FORMAT_S16)) in snd_pcm_plugin_build_rate()
[all …]
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,
Droute.c63 nsrcs = plugin->src_format.channels; in route_transfer()
88 struct snd_pcm_plugin_format *src_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()
Dmulaw.c175 int nchannels = plugin->src_format.channels; in mulaw_decode()
221 int nchannels = plugin->src_format.channels; in mulaw_encode()
262 for (channel = 0; channel < plugin->src_format.channels; channel++) { in mulaw_transfer()
301 struct snd_pcm_plugin_format *src_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()
321 format = src_format; in snd_pcm_plugin_build_mulaw()
324 else if (src_format->format == SNDRV_PCM_FORMAT_MU_LAW) { in snd_pcm_plugin_build_mulaw()
336 src_format, dst_format, in snd_pcm_plugin_build_mulaw()
Dpcm_plugin.c58 format = &plugin->src_format; in snd_pcm_plugin_alloc()
152 struct snd_pcm_plugin_format *src_format, in snd_pcm_plugin_build() argument
162 if (snd_BUG_ON(!src_format || !dst_format)) in snd_pcm_plugin_build()
171 plugin->src_format = *src_format; in snd_pcm_plugin_build()
172 plugin->src_width = snd_pcm_format_physical_width(src_format->format); in snd_pcm_plugin_build()
178 channels = src_format->channels; in snd_pcm_plugin_build()
572 format = &plugin->src_format; in snd_pcm_plug_client_channels_buf()
Dio.c102 for (channel = 0; channel < plugin->src_format.channels; ++channel, ++v) in io_src_channels()
Dpcm_oss.c1364 …ytes = (runtime->oss.plugin_first->src_width * runtime->oss.plugin_first->src_format.channels) / 8; in snd_pcm_oss_write2()
/linux-6.14.4/drivers/gpu/drm/imx/dcss/
Ddcss-scaler.c477 u32 src_format, u32 dst_format, in dcss_scaler_fractions_set() argument
493 if (src_format == BUF_FMT_YUV420) { in dcss_scaler_fractions_set()
529 if (src_format == BUF_FMT_YUV420) { in dcss_scaler_fractions_set()
532 } else if (src_format == BUF_FMT_YUV422) { in dcss_scaler_fractions_set()
645 enum buffer_format src_format, in dcss_scaler_yuv_coef_set() argument
654 src_format == BUF_FMT_ARGB8888_YUV444); in dcss_scaler_yuv_coef_set()
673 if (src_format != BUF_FMT_ARGB8888_YUV444) in dcss_scaler_yuv_coef_set()
675 if (src_format == BUF_FMT_YUV420) in dcss_scaler_yuv_coef_set()
777 enum buffer_format src_format = BUF_FMT_ARGB8888_YUV444; in dcss_scaler_setup() local
787 src_format = BUF_FMT_YUV420; in dcss_scaler_setup()
[all …]
/linux-6.14.4/drivers/gpu/drm/msm/disp/dpu1/
Ddpu_hw_sspp.c215 u32 chroma_samp, unpack, src_format; in dpu_hw_sspp_setup_format() local
252 src_format = (chroma_samp << 23) | (fmt->fetch_type << 19) | in dpu_hw_sspp_setup_format()
257 src_format |= BIT(11); /* ROT90 */ in dpu_hw_sspp_setup_format()
260 src_format |= BIT(8); /* SRCC3_EN */ in dpu_hw_sspp_setup_format()
263 src_format |= BIT(22); in dpu_hw_sspp_setup_format()
267 src_format |= ((fmt->unpack_count - 1) << 12) | in dpu_hw_sspp_setup_format()
275 src_format |= (fmt->fetch_mode & 3) << 30; /*FRAME_FORMAT */ in dpu_hw_sspp_setup_format()
309 src_format |= BIT(15); in dpu_hw_sspp_setup_format()
312 src_format |= BIT(14); in dpu_hw_sspp_setup_format()
323 DPU_REG_WRITE(c, format_off, src_format); in dpu_hw_sspp_setup_format()
/linux-6.14.4/drivers/media/platform/renesas/rzg2l-cru/
Drzg2l-ip.c151 struct v4l2_mbus_framefmt *src_format; in rzg2l_cru_ip_set_format() local
154 src_format = v4l2_subdev_state_get_format(state, RZG2L_CRU_IP_SOURCE); in rzg2l_cru_ip_set_format()
156 fmt->format = *src_format; in rzg2l_cru_ip_set_format()
180 *src_format = *sink_format; in rzg2l_cru_ip_set_format()
Drzg2l-csi2.c511 struct v4l2_mbus_framefmt *src_format; in rzg2l_csi2_set_format() local
514 src_format = v4l2_subdev_state_get_format(state, RZG2L_CSI2_SOURCE); in rzg2l_csi2_set_format()
516 fmt->format = *src_format; in rzg2l_csi2_set_format()
539 *src_format = *sink_format; in rzg2l_csi2_set_format()
/linux-6.14.4/drivers/media/platform/cadence/
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-6.14.4/drivers/media/platform/chips-media/wave5/
Dwave5-hw.c2217 switch (p_open_param->src_format) { in wave5_vpu_encode()
2228 src_stride_c = (p_open_param->src_format == FORMAT_422) ? src_stride_c * 2 : in wave5_vpu_encode()
2241 src_stride_c = (p_open_param->src_format == in wave5_vpu_encode()
2254 src_stride_c = (p_open_param->src_format == in wave5_vpu_encode()
2267 src_stride_c = (p_open_param->src_format == in wave5_vpu_encode()
2280 src_stride_c = (p_open_param->src_format == in wave5_vpu_encode()
Dwave5-vpuapi.h584 enum frame_buffer_format src_format; member
Dwave5-vpu-enc.c1153 open_param->src_format = FORMAT_422; in wave5_set_enc_openparam()
1155 open_param->src_format = FORMAT_420; in wave5_set_enc_openparam()