Home
last modified time | relevance | path

Searched refs:sync_ptr (Results 1 – 5 of 5) sorted by relevance

/hardware/qcom/audio/legacy/libalsa-intf/
Dalsa_pcm.c395 struct snd_pcm_sync_ptr *sync_ptr = pcm->sync_ptr; in pcm_avail() local
398 sync_ptr->s.status.hw_ptr, in pcm_avail()
400 sync_ptr->c.control.appl_ptr); in pcm_avail()
403 long avail = sync_ptr->s.status.hw_ptr - sync_ptr->c.control.appl_ptr; in pcm_avail()
408 …long avail = sync_ptr->s.status.hw_ptr - sync_ptr->c.control.appl_ptr + ((pcm->flags & PCM_MONO) ?… in pcm_avail()
417 int sync_ptr(struct pcm *pcm) in sync_ptr() function
420 err = ioctl(pcm->fd, SNDRV_PCM_IOCTL_SYNC_PTR, pcm->sync_ptr); in sync_ptr()
458 struct snd_pcm_sync_ptr *sync_ptr = pcm->sync_ptr; in dst_address() local
461 …appl_ptr = (pcm->flags & PCM_MONO) ? sync_ptr->c.control.appl_ptr*2 : sync_ptr->c.control.appl_ptr… in dst_address()
470 struct snd_pcm_sync_ptr *sync_ptr = pcm->sync_ptr; in mmap_transfer() local
[all …]
Daplay.c262 struct snd_pcm_sync_ptr *sync_ptr1 = pcm->sync_ptr; in play_file()
293 …pcm->sync_ptr->flags = SNDRV_PCM_SYNC_PTR_APPL | SNDRV_PCM_SYNC_PTR_AVAIL_MIN;//SNDRV_PCM_SYNC_PTR… in play_file()
294 err = sync_ptr(pcm); in play_file()
327 pcm->sync_ptr->s.status.hw_ptr, in play_file()
329 pcm->sync_ptr->c.control.appl_ptr); in play_file()
361 pcm->sync_ptr->c.control.appl_ptr += frames; in play_file()
362 pcm->sync_ptr->flags = 0; in play_file()
364 err = sync_ptr(pcm); in play_file()
375 pcm->sync_ptr->s.status.hw_ptr, in play_file()
376 pcm->sync_ptr->c.control.appl_ptr); in play_file()
[all …]
Darec.c233 struct snd_pcm_sync_ptr *sync_ptr1 = pcm->sync_ptr; in record_file()
285 …pcm->sync_ptr->flags = SNDRV_PCM_SYNC_PTR_APPL | SNDRV_PCM_SYNC_PTR_AVAIL_MIN;//SNDRV_PCM_SYNC_PTR… in record_file()
286 err = sync_ptr(pcm); in record_file()
325 pcm->sync_ptr->c.control.appl_ptr += frames; in record_file()
326 pcm->sync_ptr->flags = 0; in record_file()
327 err = sync_ptr(pcm); in record_file()
Dalsa_audio.h39 struct snd_pcm_sync_ptr *sync_ptr; member
142 int sync_ptr(struct pcm *pcm);
/hardware/qcom/audio/legacy/alsa_sound/
DAudioUsbALSA.cpp471 musbRecordingHandle->sync_ptr->flags = SNDRV_PCM_SYNC_PTR_APPL | in RecordingThreadEntry()
508 mproxyRecordingHandle->sync_ptr->flags = SNDRV_PCM_SYNC_PTR_APPL | in RecordingThreadEntry()
537 musbRecordingHandle->sync_ptr->c.control.appl_ptr += frames; in RecordingThreadEntry()
538 musbRecordingHandle->sync_ptr->flags = 0; in RecordingThreadEntry()
549 mproxyRecordingHandle->sync_ptr->c.control.appl_ptr += frames; in RecordingThreadEntry()
550 mproxyRecordingHandle->sync_ptr->flags = 0; in RecordingThreadEntry()
559 …bytes_written = mproxyRecordingHandle->sync_ptr->c.control.appl_ptr - mproxyRecordingHandle->sync_… in RecordingThreadEntry()
668 err = sync_ptr(handle); in syncPtr()
886 mproxyPlaybackHandle->sync_ptr->flags = SNDRV_PCM_SYNC_PTR_APPL | in PlaybackThreadEntry()
922 mproxyPlaybackHandle->sync_ptr->c.control.appl_ptr += frames; in PlaybackThreadEntry()
[all …]