]> git.alsa-project.org Git - alsa-lib.git/commit
pcm_plugin: fix appl pointer not correct when mmap_commit() return error
authorShengjiu Wang <shengjiu.wang@freescale.com>
Wed, 6 Apr 2016 11:02:12 +0000 (19:02 +0800)
committerTakashi Iwai <tiwai@suse.de>
Thu, 7 Apr 2016 14:19:01 +0000 (16:19 +0200)
commit7c424edd116e76eee6218a1e9a6ff6c4daaf2a4d
treecc82a64586b362347de61e6dbca826db11683526
parent6a610e56aeef5048136336f7f54db05f061ee4d4
pcm_plugin: fix appl pointer not correct when mmap_commit() return error

When snd_pcm_mmap_commit() return error, the appl pointer is also updated.
which cause the avail_update()'s result wrong.
This patch move the snd_pcm_mmap_appl_forward() to the place when
snd_pcm_mmap_commit() is successfully returned.

Signed-off-by: Shengjiu Wang <shengjiu.wang@freescale.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
src/pcm/pcm_plugin.c