kernel-hacking-2024-linux-s.../sound
Takashi Iwai 635c265f32 ALSA: ctxfi - Replace atc lock to mutex
The spinlock in atc can cause a sleep in lock:

Kernel failure message 1:
BUG: sleeping function called from invalid context at mm/slub.c:1599
in_atomic(): 0, irqs_disabled(): 1, pid: 2537, name: gstreamer-prope
Pid: 2537, comm: gstreamer-prope Tainted: P
2.6.29.4-167.fc11.x86_64 #1
Call Trace:
  [<ffffffff8103ff0f>] __might_sleep+0x10b/0x110
  [<ffffffff810cd734>] __kmalloc+0x73/0x130
  [<ffffffffa0b4b142>] ? daio_rsc_init+0xaa/0x125 [snd_ctxfi]
  [<ffffffffa0b4b212>] dao_rsc_init+0x55/0x1c0 [snd_ctxfi]
  [<ffffffffa0b4b3d2>] dao_rsc_reinit+0x55/0x5d [snd_ctxfi]
  [<ffffffff813abd6c>] ? _spin_lock_irqsave+0x32/0x3b
  [<ffffffffa0b454fe>] atc_spdif_out_passthru+0x92/0x136 [snd_ctxfi]
  ...

Since the lock path is no critical path, it can be gracefully
replaced with a mutex.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
2009-06-13 10:12:59 +02:00
..
aoa ALSA: AOA: Convert onyx and tas codecs to new-style i2c drivers 2009-04-21 07:31:48 +02:00
arm [ARM] pxa: merge AC97 platform data structures 2009-04-15 10:54:06 +08:00
atmel ALSA: snd-atmel-abdac: increase periods_min to 6 instead of 4 2009-04-06 03:56:28 +02:00
core ALSA: pcm core - Avoid jiffies check for devices with BATCH flag 2009-04-28 15:10:16 +02:00
drivers Merge branch 'core/percpu' into percpu-cpumask-x86-for-linus-2 2009-03-27 17:28:43 +01:00
i2c V4L/DVB (10771): tea575x-tuner: convert it to V4L2 API 2009-03-30 12:43:02 -03:00
isa ALSA: Add missing SNDRV_PCM_INFO_BATCH flag to some drivers 2009-04-28 15:06:44 +02:00
mips Merge branch 'topic/misc' into for-linus 2009-03-24 00:35:50 +01:00
oss trivial: Fix misspelling of firmware 2009-03-30 15:21:59 +02:00
parisc
pci ALSA: ctxfi - Replace atc lock to mutex 2009-06-13 10:12:59 +02:00
pcmcia ALSA: Add missing SNDRV_PCM_INFO_BATCH flag to some drivers 2009-04-28 15:06:44 +02:00
ppc ALSA: keywest: Convert to new-style i2c driver 2009-04-21 07:32:04 +02:00
sh trivial: Fix misspelling of firmware 2009-03-30 15:21:59 +02:00
soc ASoC: Remove BROKEN from mpc5200 kconfig 2009-05-04 16:03:21 +02:00
sparc ALSA: Add missing SNDRV_PCM_INFO_BATCH flag to some drivers 2009-04-28 15:06:44 +02:00
spi
synth Merge branch 'topic/misc' into for-linus 2009-03-24 00:35:50 +01:00
usb ALSA: Add missing SNDRV_PCM_INFO_BATCH flag to some drivers 2009-04-28 15:06:44 +02:00
ac97_bus.c
Kconfig ALSA: Add Atmel ALSA drivers directory 2009-02-05 15:08:53 +01:00
last.c
Makefile ALSA: Add Atmel ALSA drivers directory 2009-02-05 15:08:53 +01:00
sound_core.c
sound_firmware.c