android_kernel_xiaomi_sm8350/sound
Jon Masters 962f831f67 [PATCH] sound: fix hang in mpu401_uart.c
This fixes a hang in mpu401_uart.c that can occur when the mpu401 interface
is non-existent or otherwise doesn't respond to commands but we issue IO
anyway.  snd_mpu401_uart_cmd now returns an error code that is passed up
the stack so that an open() will fail immediately in such cases.

Eventually discovered after wine/cxoffice would constantly cause hard
lockups on my desktop immediately after loading (emulating Windows too
well).  Turned out that I'd recently moved my sound cards around and using
/dev/sequencer now talks to a sound card with a broken MPU.

This second version changes -EFAULT to -EIO and frees open resources on
error too.  Test booted and seems to work ok.

Signed-off-by: Jon Masters <jcm@jonmasters.org>
Cc: Jaroslav Kysela <perex@suse.cz>
Acked-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2006-04-20 07:54:04 -07:00
..
arm [ALSA] semaphore -> mutex (Archs, misc buses) 2006-03-22 10:25:43 +01:00
core [ALSA] sound/core/pcm.c: make snd_pcm_format_name() static 2006-04-12 11:34:21 +02:00
drivers [PATCH] sound: fix hang in mpu401_uart.c 2006-04-20 07:54:04 -07:00
i2c [ALSA] ice1712 & cs8427 - fix problem for S/PDIF input setup 2006-03-22 10:28:15 +01:00
isa [ALSA] unregister platform device again if probe was unsuccessful 2006-04-12 11:55:32 +02:00
mips [ALSA] AMD Au1x00: AC'97 controller is memory mapped 2006-03-22 10:43:28 +01:00
oss [PATCH] Last DMA_xBIT_MASK cleanups 2006-04-11 06:18:44 -07:00
parisc
pci [ALSA] ac97 - Add entry for VIA VT1618 codec 2006-04-12 11:34:20 +02:00
pcmcia [PATCH] pcmcia: convert DEV_OK to pcmcia_dev_present 2006-03-31 17:26:57 +02:00
ppc [PATCH] powerpc: Kill _machine and hard-coded platform numbers 2006-03-28 23:15:54 +11:00
sparc BUG_ON() Conversion in sound/sparc/cs4231.c 2006-03-24 18:49:12 +01:00
synth [ALSA] semaphore -> mutex (driver part) 2006-03-22 10:24:57 +01:00
usb [ALSA] Test volume resolution of usb audio at initialization 2006-03-31 17:59:00 +02:00
Kconfig
last.c
Makefile
sound_core.c [PATCH] mark f_ops const in the inode 2006-03-28 09:16:05 -08:00
sound_firmware.c