* ALSA locking bug...
@ 2002-02-16 8:48 Jeff Garzik
0 siblings, 0 replies; only message in thread
From: Jeff Garzik @ 2002-02-16 8:48 UTC (permalink / raw)
To: perex; +Cc: Linux-Kernel list
Andrew spotted this one... ALSA needs to be using a standard kernel
primitive... semaphore maybe? :)
include/sound/core.h:
> static inline void snd_power_lock(snd_card_t *card, int can_schedule)
> {
> while (test_and_set_bit(0, &card->power_lock)) {
> if (can_schedule) {
> set_current_state(TASK_INTERRUPTIBLE);
> schedule_timeout(1);
> }
> }
> }
Thanks much for all the ALSA work, as a [former] audio driver hacker, it
is a relief in many ways :)
Jeff
--
Jeff Garzik | "Why is it that attractive girls like you
Building 1024 | always seem to have a boyfriend?"
MandrakeSoft | "Because I'm a nympho that owns a brewery?"
| - BBC TV show "Coupling"
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2002-02-16 8:49 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-02-16 8:48 ALSA locking bug Jeff Garzik
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox