]> git.alsa-project.org Git - alsa-lib.git/commit
pcm: hw: allocate fallback buffer in advance of trials of mapping
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Sun, 25 Jun 2017 04:41:22 +0000 (13:41 +0900)
committerTakashi Iwai <tiwai@suse.de>
Tue, 27 Jun 2017 09:11:31 +0000 (11:11 +0200)
commitafadf61e44706880c32a854648645409c82dc0a2
treee238a59b5ec5fa817047c03e3d248c25656fbaf8
parentcb7503eba15714c40630d9e26bf7e5905ee3da50
pcm: hw: allocate fallback buffer in advance of trials of mapping

When allowing failure of map operation for both of status/control data
for runtime of PCM substream, applications need to use fallback buffer
for an alternative ioctl. However, in current implementation, status
mapping is dominant to the allocation.

This commit moves code for the allocation outside of the mapping
operation for status data.

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
src/pcm/pcm_hw.c