]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: pcm: Add xrun_injection proc entry
authorTakashi Iwai <tiwai@suse.de>
Tue, 4 Nov 2014 13:02:40 +0000 (14:02 +0100)
committerTakashi Iwai <tiwai@suse.de>
Tue, 4 Nov 2014 13:09:16 +0000 (14:09 +0100)
commite60dd5a45a55b27a52ee4b804186c7db7b4b3c75
tree02f9efaa6a39b5579eb3f708435ef743b2ab4d09
parent23b4ab6eb92a93367b9212ac2cacb1b6ca739b0d
ALSA: pcm: Add xrun_injection proc entry

This patch adds a new proc entry for PCM substreams to inject an
XRUN.  When a PCM substream is running and any value is written to its
xrun_injection proc file, the driver triggers XRUN.  This is a useful
feature for debugging XRUN and error handling code paths.

Note that this entry is enabled only when CONFIG_SND_PCM_XRUN_DEBUG is
set.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Documentation/sound/alsa/Procfile.txt
include/sound/pcm.h
sound/core/pcm.c