From: Adam Goode Date: Wed, 4 Jun 2014 05:02:51 +0000 (-0400) Subject: ALSA: seq: correctly detect input buffer overflow X-Git-Tag: omap-for-v3.16/fixes-against-rc1~21^2~22 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=21fd3e956ee8a307a06bc6e095f5767a00eb2a7e;p=pandora-kernel.git ALSA: seq: correctly detect input buffer overflow snd_seq_event_dup returns -ENOMEM in some buffer-full conditions, but usually returns -EAGAIN. Make -EAGAIN trigger the overflow condition in snd_seq_fifo_event_in so that the fifo is cleared and -ENOSPC is returned to userspace as stated in the alsa-lib docs. Signed-off-by: Adam Goode Signed-off-by: Takashi Iwai --- Reading git-diff-tree failed