diff options
author | dvdli <dvdli@google.com> | 2021-03-11 18:01:56 +0800 |
---|---|---|
committer | dvdli <dvdli@google.com> | 2021-03-11 18:05:59 +0800 |
commit | a36d521c328b16b53360a016aa543491d0aad05e (patch) | |
tree | d696685895605c6752e4363dd00c21b205d22194 /src | |
parent | 411a7d88e4121e04da1f63fa9072fd6444f753a2 (diff) |
add floating-point PCM supoort to tinyplay
This change also fixes overwriting the appl_ptr and avail_min when calling
the pcm_state function.
Diffstat (limited to 'src')
-rw-r--r-- | src/pcm.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1411,7 +1411,8 @@ again: int pcm_state(struct pcm *pcm) { - int err = pcm_sync_ptr(pcm, 0); + // Update the state only. Do not sync HW sync. + int err = pcm_sync_ptr(pcm, SNDRV_PCM_SYNC_PTR_APPL | SNDRV_PCM_SYNC_PTR_AVAIL_MIN); if (err < 0) return err; |