summaryrefslogtreecommitdiff
path: root/sound/usb/helper.h
diff options
context:
space:
mode:
authorHenry Lin <henryl@nvidia.com>2019-11-13 10:14:19 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-11-20 17:59:28 +0100
commita7a3b07ecaad0acbf56d0da67ae2bd0394657c0f (patch)
tree02a67b81d58b3da03a946936da8e7180f03570be /sound/usb/helper.h
parent524c3eacd7bbc92f255c98e1b0a8b824b0ebb5d0 (diff)
ALSA: usb-audio: not submit urb for stopped endpoint
commit 528699317dd6dc722dccc11b68800cf945109390 upstream. While output urb's snd_complete_urb() is executing, calling prepare_outbound_urb() may cause endpoint stopped before prepare_outbound_urb() returns and result in next urb submitted to stopped endpoint. usb-audio driver cannot re-use it afterwards as the urb is still hold by usb stack. This change checks EP_FLAG_RUNNING flag after prepare_outbound_urb() again to let snd_complete_urb() know the endpoint already stopped and does not submit next urb. Below kind of error will be fixed: [ 213.153103] usb 1-2: timeout: still 1 active urbs on EP #1 [ 213.164121] usb 1-2: cannot submit urb 0, error -16: unknown error Signed-off-by: Henry Lin <henryl@nvidia.com> Cc: <stable@vger.kernel.org> Link: https://lore.kernel.org/r/20191113021420.13377-1-henryl@nvidia.com Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'sound/usb/helper.h')
0 files changed, 0 insertions, 0 deletions