From: Jeff Garzik <jgarzik@mandrakesoft.com>
To: perex@suse.cz
Cc: Linux-Kernel list <linux-kernel@vger.kernel.org>
Subject: ALSA locking bug...
Date: Sat, 16 Feb 2002 03:48:46 -0500 [thread overview]
Message-ID: <3C6E1CEE.261E1B06@mandrakesoft.com> (raw)
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"
reply other threads:[~2002-02-16 8:49 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3C6E1CEE.261E1B06@mandrakesoft.com \
--to=jgarzik@mandrakesoft.com \
--cc=linux-kernel@vger.kernel.org \
--cc=perex@suse.cz \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox