diff options
author | Vinod Koul <vinod.koul@intel.com> | 2013-10-24 11:07:31 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-11-29 19:27:58 (GMT) |
commit | 7c276704b729d8d063620c836762f204e191aaf0 (patch) | |
tree | 2d69a14a054af5aaadc092b9754ec4da110c5b45 /include/uapi/linux/x25.h | |
parent | baf1abbaada81be48054b523f9c5286b9f4ae865 (diff) | |
download | linux-fsl-qoriq-7c276704b729d8d063620c836762f204e191aaf0.tar.xz |
ALSA: compress: fix drain calls blocking other compress functions
commit 917f4b5cba78980a527098a910d94139d3e82c8d upstream.
The drain and drain_notify callback were blocked by low level driver untill the
draining was complete. Due to this being invoked with big fat mutex held, others
ops like reading timestamp, calling pause, drop were blocked.
So to fix this we add a new snd_compr_drain_notify() API. This would be required
to be invoked by low level driver when drain or partial drain has been completed
by the DSP. Thus we make the drain and partial_drain callback as non blocking
and driver returns immediately after notifying DSP.
The waiting is done while relasing the lock so that other ops can go ahead.
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/uapi/linux/x25.h')
0 files changed, 0 insertions, 0 deletions