ALSA: pcm: Allow drivers to set R/W wait time.
authorLiam Girdwood <liam.r.girdwood@linux.intel.com>
Fri, 6 Jul 2018 12:50:36 +0000 (13:50 +0100)
committerTakashi Iwai <tiwai@suse.de>
Fri, 6 Jul 2018 13:00:25 +0000 (15:00 +0200)
commitd64c5cf8e89d124355924c513a42b16f0d7d3a03
tree2d75c2a4644e0492a1434e0b999ab1d5a5a31de0
parente647f5a5c5d165c87750e8c0dcbe341b5a378ffd
ALSA: pcm: Allow drivers to set R/W wait time.

Currently ALSA core blocks userspace for about 10 seconds for PCM R/W IO.
This needs to be configurable for modern hardware like DSPs where no
pointer update in milliseconds can indicate terminal DSP errors.

Add a substream variable to set the wait time in ms. This allows userspace
and drivers to recover more quickly from terminal DSP errors.

Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
include/sound/pcm.h
sound/core/pcm_lib.c