Lines Matching refs:fmt

31   struct cras_audio_format fmt;
34 fmt.num_channels = 2;
35 fmt.format = SND_PCM_FORMAT_S16_LE;
37 fmt.channel_layout[i] = stereo[i];
41 cras_audio_area_config_channels(a1, &fmt);
42 cras_audio_area_config_channels(a2, &fmt);
43 cras_audio_area_config_buf_pointers(a1, &fmt, (uint8_t *)buf1);
44 cras_audio_area_config_buf_pointers(a2, &fmt, (uint8_t *)buf2);
51 cras_audio_area_copy(a1, 0, &fmt, a2, 0, 1.0);
60 struct cras_audio_format fmt;
65 fmt.num_channels = 2;
66 fmt.format = SND_PCM_FORMAT_S16_LE;
68 fmt.channel_layout[i] = stereo[i];
72 cras_audio_area_config_channels(a1, &fmt);
73 cras_audio_area_config_channels(a2, &fmt);
74 cras_audio_area_config_buf_pointers(a1, &fmt, (uint8_t *)buf1);
75 cras_audio_area_config_buf_pointers(a2, &fmt, (uint8_t *)buf2);
86 cras_audio_area_copy(a1, 0, &fmt, a2, 0, gain_scaler);
98 struct cras_audio_format fmt;
101 fmt.num_channels = 2;
102 fmt.format = SND_PCM_FORMAT_S16_LE;
104 fmt.channel_layout[i] = stereo[i];
108 cras_audio_area_config_channels(a1, &fmt);
109 cras_audio_area_config_channels(a2, &fmt);
110 cras_audio_area_config_buf_pointers(a1, &fmt, (uint8_t *)buf1);
111 cras_audio_area_config_buf_pointers(a2, &fmt, (uint8_t *)buf2);
118 cras_audio_area_copy(a1, 2, &fmt, a2, 0, 1.0);
131 struct cras_audio_format fmt;
134 fmt.num_channels = 2;
135 fmt.format = SND_PCM_FORMAT_S16_LE;
137 fmt.channel_layout[i] = stereo[i];
141 cras_audio_area_config_channels(a1, &fmt);
142 cras_audio_area_config_channels(a2, &fmt);
143 cras_audio_area_config_buf_pointers(a1, &fmt, (uint8_t *)buf1);
144 cras_audio_area_config_buf_pointers(a2, &fmt, (uint8_t *)buf2);
151 cras_audio_area_copy(a1, 2, &fmt, a2, 0, 1.0);
204 struct cras_audio_format fmt;
207 fmt.num_channels = 1;
208 fmt.format = SND_PCM_FORMAT_S16_LE;
210 fmt.channel_layout[i] = mono[i];
213 cras_audio_area_config_channels(a1, &fmt);
214 cras_audio_area_config_buf_pointers(a1, &fmt, (uint8_t *)buf1);
216 fmt.num_channels = 2;
218 fmt.channel_layout[i] = stereo[i];
221 cras_audio_area_config_channels(a2, &fmt);
222 cras_audio_area_config_buf_pointers(a2, &fmt, (uint8_t *)buf2);
227 cras_audio_area_copy(a1, 0, &fmt, a2, 0, 1.0);
236 struct cras_audio_format fmt;
239 fmt.num_channels = 3;
240 fmt.format = SND_PCM_FORMAT_S16_LE;
242 fmt.channel_layout[i] = kb_mic[i];
245 cras_audio_area_config_channels(a1, &fmt);
246 cras_audio_area_config_buf_pointers(a1, &fmt, (uint8_t *)buf1);
248 fmt.num_channels = 2;
250 fmt.channel_layout[i] = stereo[i];
253 cras_audio_area_config_channels(a2, &fmt);
254 cras_audio_area_config_buf_pointers(a2, &fmt, (uint8_t *)buf2);
259 cras_audio_area_copy(a1, 0, &fmt, a2, 0, 1.0);
313 void cras_mix_add_scale_stride(snd_pcm_format_t fmt, uint8_t *dst, uint8_t *src,