diff options
author | Ricardo Biehl Pasquali <pasqualirb@gmail.com> | 2019-01-02 17:27:52 -0200 |
---|---|---|
committer | Ricardo Biehl Pasquali <pasqualirb@gmail.com> | 2019-01-08 13:06:19 -0200 |
commit | 7a512de1fb2c43212b368ad85b4d1388e38639b9 (patch) | |
tree | 7f79febe7c9c0c441d67d286c6e5e5e3307ee355 | |
parent | 535a6bac9a576b4d8553a295669a07c5609d4ab3 (diff) |
pcm: Do not set values after control/status mmap
It's not necessary to send appl_ptr or avail_min to the
kernel here.
In prepare action, called later in pcm_open(), appl_ptr
becomes zero.
avail_min is already defined in software parameters.
Signed-off-by: Ricardo Biehl Pasquali <pasqualirb@gmail.com>
-rw-r--r-- | src/pcm.c | 3 |
1 files changed, 0 insertions, 3 deletions
@@ -549,7 +549,6 @@ static int pcm_hw_mmap_status(struct pcm *pcm) pcm->mmap_status = NULL; goto mmap_error; } - pcm->mmap_control->avail_min = 1; return 0; @@ -560,8 +559,6 @@ mmap_error: return -ENOMEM; pcm->mmap_status = &pcm->sync_ptr->s.status; pcm->mmap_control = &pcm->sync_ptr->c.control; - pcm->mmap_control->avail_min = 1; - pcm_sync_ptr(pcm, 0); return 0; } |