]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: usb-audio: Trigger PCM XRUN at XRUN
authorTakashi Iwai <tiwai@suse.de>
Thu, 6 Nov 2014 12:04:49 +0000 (13:04 +0100)
committerTakashi Iwai <tiwai@suse.de>
Thu, 6 Nov 2014 12:04:49 +0000 (13:04 +0100)
commite8f7f047d045182272695b211057f02ead01f6ba
treea92fd6b4d300b3ec750df1503bfe3af61cb19aac
parent6a7d58857b2c658ccaba92596e197f33ef7e563c
ALSA: usb-audio: Trigger PCM XRUN at XRUN

The usb-audio driver detects XRUN at its complete callback, but the
actual code to trigger PCM XRUN is commented out because it caused
deadlock in the past.  This patch revives the PCM trigger properly.
It resulted in more than just enabling snd_pcm_stop(), but it had to
deduce the PCM substream with proper NULL checks and holds the stream
lock around the call.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/endpoint.c