diff options
author | Taylor Holberton <tay10r@protonmail.com> | 2020-02-06 15:44:13 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-06 15:44:13 -0500 |
commit | 80beaac3f4962f528abaa08f067c58183011c93b (patch) | |
tree | b6f0d01d2e3c8a5952de42a55de46640d118806d | |
parent | ea9da6e1b16c14408b3bc5323cdc7560366bb943 (diff) | |
parent | 05c64c3d64b497ffaba5a78c12e8d0d33320b368 (diff) |
Merge pull request #144 from mgaio/fix/mmap/pcm_wait
pcm: Set SW params.avail_min to period size
-rw-r--r-- | src/pcm.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -409,7 +409,7 @@ int pcm_set_config(struct pcm *pcm, const struct pcm_config *config) memset(&sparams, 0, sizeof(sparams)); sparams.tstamp_mode = SNDRV_PCM_TSTAMP_ENABLE; sparams.period_step = 1; - sparams.avail_min = 1; + sparams.avail_min = config->period_size; if (!config->start_threshold) { if (pcm->flags & PCM_IN) |