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

Lines Matching defs:pcm

176 		} pcm;
241 static void pcm_shm_hw_ptr_changed(snd_pcm_t *pcm, snd_pcm_t *src ATTRIBUTE_UNUSED)
243 client_t *client = pcm->hw.private_data;
248 if (pcm->hw.fd >= 0) {
250 ctrl->hw.offset = pcm->hw.offset;
254 ctrl->hw.ptr = pcm->hw.ptr ? *pcm->hw.ptr : 0;
255 for (loop = pcm->hw.master; loop; loop = loop->hw.master)
257 pcm->hw.ptr = &ctrl->hw.ptr;
260 static void pcm_shm_appl_ptr_changed(snd_pcm_t *pcm, snd_pcm_t *src ATTRIBUTE_UNUSED)
262 client_t *client = pcm->appl.private_data;
267 if (pcm->appl.fd >= 0) {
269 ctrl->appl.offset = pcm->appl.offset;
273 ctrl->appl.ptr = pcm->appl.ptr ? *pcm->appl.ptr : 0;
274 for (loop = pcm->appl.master; loop; loop = loop->appl.master)
276 pcm->appl.ptr = &ctrl->appl.ptr;
282 snd_pcm_t *pcm;
285 err = snd_pcm_open(&pcm, client->name, client->stream, SND_PCM_NONBLOCK);
288 client->device.pcm.handle = pcm;
289 client->device.pcm.fd = _snd_pcm_poll_descriptor(pcm);
290 pcm->hw.private_data = client;
291 pcm->hw.changed = pcm_shm_hw_ptr_changed;
292 pcm->appl.private_data = client;
293 pcm->appl.changed = pcm_shm_appl_ptr_changed;
313 snd_pcm_close(pcm);
323 del_waiter(client->device.pcm.fd);
326 err = snd_pcm_close(client->device.pcm.handle);
393 snd_pcm_t *pcm;
399 pcm = client->device.pcm.handle;
402 ctrl->result = snd_pcm_async(pcm, ctrl->u.async.sig, ctrl->u.async.pid);
407 ctrl->result = snd_async_add_pcm_handler(&client->async_handler, pcm, async_handler, client);
418 ctrl->result = snd_pcm_info(pcm, (snd_pcm_info_t *) &ctrl->u.info);
421 ctrl->result = snd_pcm_hw_refine(pcm, (snd_pcm_hw_params_t *) &ctrl->u.hw_refine);
424 ctrl->result = snd_pcm_hw_params(pcm, (snd_pcm_hw_params_t *) &ctrl->u.hw_params);
427 ctrl->result = snd_pcm_hw_free(pcm);
430 ctrl->result = snd_pcm_sw_params(pcm, (snd_pcm_sw_params_t *) &ctrl->u.sw_params);
433 ctrl->result = snd_pcm_status(pcm, (snd_pcm_status_t *) &ctrl->u.status);
436 ctrl->result = snd_pcm_state(pcm);
439 ctrl->result = snd_pcm_hwsync(pcm);
442 ctrl->result = snd_pcm_delay(pcm, (snd_pcm_sframes_t *) &ctrl->u.delay.frames);
445 ctrl->result = snd_pcm_avail_update(pcm);
448 ctrl->result = snd_pcm_prepare(pcm);
451 ctrl->result = snd_pcm_reset(pcm);
454 ctrl->result = snd_pcm_start(pcm);
457 ctrl->result = snd_pcm_drain(pcm);
460 ctrl->result = snd_pcm_drop(pcm);
463 ctrl->result = snd_pcm_pause(pcm, ctrl->u.pause.enable);
466 ctrl->result = snd_pcm_channel_info(pcm, (snd_pcm_channel_info_t *) &ctrl->u.channel_info);
472 ctrl->result = snd_pcm_rewind(pcm, ctrl->u.rewind.frames);
475 ctrl->result = snd_pcm_forward(pcm, ctrl->u.forward.frames);
484 ctrl->result = snd_pcm_unlink(pcm);
487 ctrl->result = snd_pcm_resume(pcm);
491 ctrl->result = snd_pcm_mmap(pcm);
495 ctrl->result = snd_pcm_munmap(pcm);
499 ctrl->result = snd_pcm_mmap_commit(pcm,
505 return shm_ack_fd(client, _snd_pcm_poll_descriptor(pcm));
510 return shm_rbptr_fd(client, &pcm->hw);
512 return shm_rbptr_fd(client, &pcm->appl);