/Linux-v5.10/sound/core/oss/ |
D | linear.c | 62 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 …]
|
D | copy.c | 39 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()
|
D | rate.c | 58 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 …]
|
D | route.c | 63 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()
|
D | pcm_plugin.h | 42 struct snd_pcm_plugin_format src_format; /* source format */ member 72 struct snd_pcm_plugin_format *src_format, 89 struct snd_pcm_plugin_format *src_format, 93 struct snd_pcm_plugin_format *src_format, 97 struct snd_pcm_plugin_format *src_format, 101 struct snd_pcm_plugin_format *src_format, 105 struct snd_pcm_plugin_format *src_format,
|
D | mulaw.c | 175 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()
|
D | pcm_plugin.c | 58 format = &plugin->src_format; in snd_pcm_plugin_alloc() 148 struct snd_pcm_plugin_format *src_format, in snd_pcm_plugin_build() argument 158 if (snd_BUG_ON(!src_format || !dst_format)) in snd_pcm_plugin_build() 167 plugin->src_format = *src_format; in snd_pcm_plugin_build() 168 plugin->src_width = snd_pcm_format_physical_width(src_format->format); in snd_pcm_plugin_build() 174 channels = src_format->channels; in snd_pcm_plugin_build() 568 format = &plugin->src_format; in snd_pcm_plug_client_channels_buf()
|
D | io.c | 102 for (channel = 0; channel < plugin->src_format.channels; ++channel, ++v) in io_src_channels()
|
D | pcm_oss.c | 1343 …ytes = (runtime->oss.plugin_first->src_width * runtime->oss.plugin_first->src_format.channels) / 8; in snd_pcm_oss_write2()
|
/Linux-v5.10/drivers/gpu/drm/gma500/ |
D | accel_2d.c | 161 uint32_t src_format, uint32_t dst_offset, in psb_accel_2d_copy() argument 201 PSB_2D_SRC_SURF_BH | src_format | (src_stride << in psb_accel_2d_copy() 235 uint32_t src_format; in psbfb_copyarea_accel() local 248 src_format = PSB_2D_SRC_332RGB; in psbfb_copyarea_accel() 252 src_format = PSB_2D_SRC_555RGB; in psbfb_copyarea_accel() 256 src_format = PSB_2D_SRC_565RGB; in psbfb_copyarea_accel() 262 src_format = PSB_2D_SRC_8888ARGB; in psbfb_copyarea_accel() 276 offset, stride, src_format, in psbfb_copyarea_accel()
|
/Linux-v5.10/drivers/gpu/drm/imx/dcss/ |
D | dcss-scaler.c | 475 u32 src_format, u32 dst_format, in dcss_scaler_fractions_set() argument 491 if (src_format == BUF_FMT_YUV420) { in dcss_scaler_fractions_set() 527 if (src_format == BUF_FMT_YUV420) { in dcss_scaler_fractions_set() 530 } else if (src_format == BUF_FMT_YUV422) { in dcss_scaler_fractions_set() 643 enum buffer_format src_format, in dcss_scaler_yuv_coef_set() argument 652 src_format == BUF_FMT_ARGB8888_YUV444); in dcss_scaler_yuv_coef_set() 669 if (src_format != BUF_FMT_ARGB8888_YUV444) in dcss_scaler_yuv_coef_set() 671 if (src_format == BUF_FMT_YUV420) in dcss_scaler_yuv_coef_set() 763 enum buffer_format src_format = BUF_FMT_ARGB8888_YUV444; in dcss_scaler_setup() local 773 src_format = BUF_FMT_YUV420; in dcss_scaler_setup() [all …]
|
/Linux-v5.10/drivers/gpu/drm/msm/disp/dpu1/ |
D | dpu_hw_sspp.c | 242 u32 chroma_samp, unpack, src_format; in dpu_hw_sspp_setup_format() local 279 src_format = (chroma_samp << 23) | (fmt->fetch_planes << 19) | in dpu_hw_sspp_setup_format() 284 src_format |= BIT(11); /* ROT90 */ in dpu_hw_sspp_setup_format() 287 src_format |= BIT(8); /* SRCC3_EN */ in dpu_hw_sspp_setup_format() 290 src_format |= BIT(22); in dpu_hw_sspp_setup_format() 294 src_format |= ((fmt->unpack_count - 1) << 12) | in dpu_hw_sspp_setup_format() 302 src_format |= (fmt->fetch_mode & 3) << 30; /*FRAME_FORMAT */ in dpu_hw_sspp_setup_format() 332 src_format |= BIT(15); in dpu_hw_sspp_setup_format() 335 src_format |= BIT(14); in dpu_hw_sspp_setup_format() 346 DPU_REG_WRITE(c, format_off + idx, src_format); in dpu_hw_sspp_setup_format()
|
/Linux-v5.10/drivers/media/platform/cadence/ |
D | cdns-csi2tx.c | 207 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()
|