Home
last modified time | relevance | path

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

/linux-2.6.39/sound/core/oss/
Dlinear.c62 int nchannels = plugin->src_format.channels; in convert()
103 for (channel = 0; channel < plugin->src_format.channels; channel++) { in linear_transfer()
118 snd_pcm_format_t src_format, snd_pcm_format_t dst_format) in init_data() argument
122 src_bytes = snd_pcm_format_width(src_format) / 8; in init_data()
124 src_le = snd_pcm_format_little_endian(src_format) > 0; in init_data()
134 data->src_ofs = snd_pcm_format_physical_width(src_format) / 8 - in init_data()
141 if (snd_pcm_format_signed(src_format) != in init_data()
151 struct snd_pcm_plugin_format *src_format, in snd_pcm_plugin_build_linear() argument
163 if (snd_BUG_ON(src_format->rate != dst_format->rate)) in snd_pcm_plugin_build_linear()
165 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 …]
Droute.c61 nsrcs = plugin->src_format.channels; in route_transfer()
86 struct snd_pcm_plugin_format *src_format, in snd_pcm_plugin_build_route() argument
96 if (snd_BUG_ON(src_format->rate != dst_format->rate)) in snd_pcm_plugin_build_route()
98 if (snd_BUG_ON(src_format->format != dst_format->format)) in snd_pcm_plugin_build_route()
102 src_format, dst_format, 0, &plugin); in snd_pcm_plugin_build_route()
Dpcm_plugin.h57 struct snd_pcm_plugin_format src_format; /* source format */ member
87 struct snd_pcm_plugin_format *src_format,
104 struct snd_pcm_plugin_format *src_format,
108 struct snd_pcm_plugin_format *src_format,
112 struct snd_pcm_plugin_format *src_format,
116 struct snd_pcm_plugin_format *src_format,
120 struct snd_pcm_plugin_format *src_format,
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()
299 struct snd_pcm_plugin_format *src_format, in snd_pcm_plugin_build_mulaw() argument
313 if (snd_BUG_ON(src_format->rate != dst_format->rate)) in snd_pcm_plugin_build_mulaw()
315 if (snd_BUG_ON(src_format->channels != dst_format->channels)) 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()
334 src_format, dst_format, in snd_pcm_plugin_build_mulaw()
Dpcm_plugin.c58 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()
560 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.c1338 …ytes = (runtime->oss.plugin_first->src_width * runtime->oss.plugin_first->src_format.channels) / 8; in snd_pcm_oss_write2()
/linux-2.6.39/drivers/staging/gma500/
Dpsb_2d.c233 uint32_t src_format, uint32_t dst_offset, in psb_accel_2d_copy() argument
273 PSB_2D_SRC_SURF_BH | src_format | (src_stride << in psb_accel_2d_copy()
301 uint32_t src_format; in psbfb_copyarea_accel() local
312 src_format = PSB_2D_SRC_332RGB; in psbfb_copyarea_accel()
316 src_format = PSB_2D_SRC_555RGB; in psbfb_copyarea_accel()
320 src_format = PSB_2D_SRC_565RGB; in psbfb_copyarea_accel()
326 src_format = PSB_2D_SRC_8888ARGB; in psbfb_copyarea_accel()
336 offset, stride, src_format, in psbfb_copyarea_accel()
/linux-2.6.39/drivers/staging/msm/
Dmdp4_overlay.c295 switch (pipe->src_format) { in mdp4_overlay_format2pipe()
429 if (pipe->src_format == MDP_Y_CRCB_H2V1) { in mdp4_overlay_format2pipe()
433 } else if (pipe->src_format == MDP_Y_CBCR_H2V1) { in mdp4_overlay_format2pipe()
437 } else if (pipe->src_format == MDP_Y_CRCB_H2V2) { in mdp4_overlay_format2pipe()
441 } else if (pipe->src_format == MDP_Y_CBCR_H2V2) { in mdp4_overlay_format2pipe()
462 if (pipe->src_format == MDP_Y_CRCB_H2V2_TILE) { in mdp4_overlay_format2pipe()
466 } else if (pipe->src_format == MDP_Y_CBCR_H2V2_TILE) { in mdp4_overlay_format2pipe()
761 transp_color_key(pipe->src_format, pipe->transp, &c0, &c1, &c2); in mdp4_mixer_blend_setup()
963 pipe->src_format = req->src.format; in mdp4_overlay_req2pipe()
Dmdp4_overlay_mddi.c80 pipe->src_format = format; in mdp4_overlay_update_lcd()
Dmdp4.h207 uint32 src_format; member
Dmdp4_overlay_lcdc.c127 pipe->src_format = format; in mdp_lcdc_on()