ALSA: pcm: trace XRUN event at injection, too
authorTakashi Iwai <tiwai@suse.de>
Wed, 4 Jul 2018 12:46:27 +0000 (14:46 +0200)
committerTakashi Iwai <tiwai@suse.de>
Wed, 4 Jul 2018 13:34:57 +0000 (15:34 +0200)
commit9cd641ed31f576d08f7b784850ba93eef050f32f
tree9253549477df2205bfe8c2be2cf004f710766ea4
parent51d7d35817aad6f4dd0f60b80063206f1761b69b
ALSA: pcm: trace XRUN event at injection, too

The PCM xrun injection triggers directly snd_pcm_stop() without the
standard xrun handler, hence it's not recorded on the event buffer.
Ditto for snd_pcm_stop_xrun() call and SNDRV_PCM_IOCTL_XRUN ioctl.
They are inconvenient from the debugging POV.

Let's make them to trigger XRUN via the standard helper more
consistently.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/pcm.c
sound/core/pcm_lib.c
sound/core/pcm_local.h
sound/core/pcm_native.c