All of lore.kernel.org
 help / color / mirror / Atom feed
* echoaudio.c, Revision 1.6
@ 2005-03-12 11:32 Giuliano Pochini
  2005-03-14  8:19 ` Clemens Ladisch
  0 siblings, 1 reply; 7+ messages in thread
From: Giuliano Pochini @ 2005-03-12 11:32 UTC (permalink / raw)
  To: Clemens Ladisch; +Cc: Alsa-devel


I'm a bit confused about the latest changes to pci/echoaudio/echoaudio.c

The CVS interface says: "Use spin_lock_irqsave() instead of spin_lock() in
places where we could be interrupted by another hardware interrupt that
could call the rawmidi trigger callback that could try to take the same
lock."

But in snd_echo_interrupt() we are running in hard irq context, so we know
irqs are already disabled. We should change midi.c:snd_echo_midi_*_trigger()
instead, or am I missing something ?


Then: "Additionally, remove locking code that is no longer needed now that
the trigger callback is no longer called recursively from the rawmidi
"event" handler."

Your patch does not remove anything. It only replaces spin_lock() in
pcm_trigger() which is a stupid bug of mine, sorry.



--
Giuliano.


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2005-03-21  8:33 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-03-12 11:32 echoaudio.c, Revision 1.6 Giuliano Pochini
2005-03-14  8:19 ` Clemens Ladisch
2005-03-14 17:30   ` Takashi Iwai
2005-03-15 21:33   ` Giuliano Pochini
2005-03-16  8:20     ` Clemens Ladisch
2005-03-19 18:31       ` Giuliano Pochini
2005-03-21  8:33         ` Clemens Ladisch

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.