• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/iserver/alsa-lib-1.0.26/src/pcm/

Lines Matching refs:alaw

223 	snd_pcm_alaw_t *alaw = pcm->private_data;
230 if (alaw->sformat == SND_PCM_FORMAT_A_LAW) {
249 snd_pcm_alaw_t *alaw = pcm->private_data;
254 _snd_pcm_hw_params_set_format(sparams, alaw->sformat);
307 snd_pcm_alaw_t *alaw = pcm->private_data;
322 if (alaw->sformat == SND_PCM_FORMAT_A_LAW) {
323 alaw->getput_idx = snd_pcm_linear_get_index(format, SND_PCM_FORMAT_S16);
324 alaw->func = snd_pcm_alaw_encode;
326 alaw->getput_idx = snd_pcm_linear_put_index(SND_PCM_FORMAT_S16, alaw->sformat);
327 alaw->func = snd_pcm_alaw_decode;
330 if (alaw->sformat == SND_PCM_FORMAT_A_LAW) {
331 alaw->getput_idx = snd_pcm_linear_put_index(SND_PCM_FORMAT_S16, format);
332 alaw->func = snd_pcm_alaw_decode;
334 alaw->getput_idx = snd_pcm_linear_get_index(alaw->sformat, SND_PCM_FORMAT_S16);
335 alaw->func = snd_pcm_alaw_encode;
350 snd_pcm_alaw_t *alaw = pcm->private_data;
353 alaw->func(slave_areas, slave_offset,
356 alaw->getput_idx);
370 snd_pcm_alaw_t *alaw = pcm->private_data;
373 alaw->func(areas, offset,
376 alaw->getput_idx);
383 snd_pcm_alaw_t *alaw = pcm->private_data;
385 snd_pcm_format_name(alaw->sformat));
391 snd_pcm_dump(alaw->plug.gen.slave, out);
424 snd_pcm_alaw_t *alaw;
430 alaw = calloc(1, sizeof(snd_pcm_alaw_t));
431 if (!alaw) {
434 snd_pcm_plugin_init(&alaw->plug);
435 alaw->sformat = sformat;
436 alaw->plug.read = snd_pcm_alaw_read_areas;
437 alaw->plug.write = snd_pcm_alaw_write_areas;
438 alaw->plug.undo_read = snd_pcm_plugin_undo_read_generic;
439 alaw->plug.undo_write = snd_pcm_plugin_undo_write_generic;
440 alaw->plug.gen.slave = slave;
441 alaw->plug.gen.close_slave = close_slave;
445 free(alaw);
450 pcm->private_data = alaw;
454 snd_pcm_set_hw_ptr(pcm, &alaw->plug.hw_ptr, -1, 0);
455 snd_pcm_set_appl_ptr(pcm, &alaw->plug.appl_ptr, -1, 0);
471 type alaw # A-Law conversion PCM