/hardware/qcom/audio/legacy/libalsa-intf/ |
alsa_pcm.c | 399 struct snd_pcm_sync_ptr *sync_ptr = pcm->sync_ptr; local 402 sync_ptr->s.status.hw_ptr, 404 sync_ptr->c.control.appl_ptr); 407 long avail = sync_ptr->s.status.hw_ptr - sync_ptr->c.control.appl_ptr; 412 long avail = sync_ptr->s.status.hw_ptr - sync_ptr->c.control.appl_ptr + ((pcm->flags & PCM_MONO) ? pcm->buffer_size/2 : pcm->buffer_size/4); 421 int sync_ptr(struct pcm *pcm) function 424 err = ioctl(pcm->fd, SNDRV_PCM_IOCTL_SYNC_PTR, pcm->sync_ptr); 462 struct snd_pcm_sync_ptr *sync_ptr = pcm->sync_ptr; local 474 struct snd_pcm_sync_ptr *sync_ptr = pcm->sync_ptr; local 495 struct snd_pcm_sync_ptr *sync_ptr = pcm->sync_ptr; local [all...] |
aplay.c | 262 struct snd_pcm_sync_ptr *sync_ptr1 = pcm->sync_ptr; 293 pcm->sync_ptr->flags = SNDRV_PCM_SYNC_PTR_APPL | SNDRV_PCM_SYNC_PTR_AVAIL_MIN;//SNDRV_PCM_SYNC_PTR_HWSYNC; 294 err = sync_ptr(pcm); 296 fprintf(stderr, "Aplay:Failed in sync_ptr \n"); 326 fprintf(stderr, "Aplay:sync_ptr->s.status.hw_ptr %ld pcm->buffer_size %d sync_ptr->c.control.appl_ptr %ld\n", 327 pcm->sync_ptr->s.status.hw_ptr, 329 pcm->sync_ptr->c.control.appl_ptr); 361 pcm->sync_ptr->c.control.appl_ptr += frames; 362 pcm->sync_ptr->flags = 0 [all...] |
arec.c | 233 struct snd_pcm_sync_ptr *sync_ptr1 = pcm->sync_ptr; 285 pcm->sync_ptr->flags = SNDRV_PCM_SYNC_PTR_APPL | SNDRV_PCM_SYNC_PTR_AVAIL_MIN;//SNDRV_PCM_SYNC_PTR_HWSYNC; 286 err = sync_ptr(pcm); 288 fprintf(stderr, "Arec:Failed in sync_ptr \n"); 325 pcm->sync_ptr->c.control.appl_ptr += frames; 326 pcm->sync_ptr->flags = 0; 327 err = sync_ptr(pcm); 329 fprintf(stderr, "Arec:Failed in sync_ptr \n");
|
alsa_audio.h | 39 struct snd_pcm_sync_ptr *sync_ptr; member in struct:pcm 142 int sync_ptr(struct pcm *pcm);
|
/hardware/qcom/audio/legacy/alsa_sound/ |
AudioUsbALSA.cpp | 471 musbRecordingHandle->sync_ptr->flags = SNDRV_PCM_SYNC_PTR_APPL | 508 mproxyRecordingHandle->sync_ptr->flags = SNDRV_PCM_SYNC_PTR_APPL | 537 musbRecordingHandle->sync_ptr->c.control.appl_ptr += frames; 538 musbRecordingHandle->sync_ptr->flags = 0; 549 mproxyRecordingHandle->sync_ptr->c.control.appl_ptr += frames; 550 mproxyRecordingHandle->sync_ptr->flags = 0; 559 bytes_written = mproxyRecordingHandle->sync_ptr->c.control.appl_ptr - mproxyRecordingHandle->sync_ptr->s.status.hw_ptr; 668 err = sync_ptr(handle); 670 ALOGE("ERROR: Failed in sync_ptr \n") [all...] |
/external/tinyalsa/ |
pcm.c | 255 struct snd_pcm_sync_ptr *sync_ptr; member in struct:pcm 331 if (pcm->sync_ptr) { 332 pcm->sync_ptr->flags = flags; 333 if (ioctl(pcm->fd, SNDRV_PCM_IOCTL_SYNC_PTR, pcm->sync_ptr) < 0) 341 if (pcm->sync_ptr) 370 pcm->sync_ptr = calloc(1, sizeof(*pcm->sync_ptr)); 371 if (!pcm->sync_ptr) 373 pcm->mmap_status = &pcm->sync_ptr->s.status; 374 pcm->mmap_control = &pcm->sync_ptr->c.control [all...] |