• Jaroslav Kysela's avatar
    [ALSA] fix locking for rawmidi trigger callbacks · 9024d50a
    Jaroslav Kysela authored
    Generic drivers,MPU401 UART,SB8 driver,Wavefront drivers,CS4281 driver
    ENS1370/1+ driver,CS46xx driver,EMU10K1/EMU10K2 driver,RME HDSP driver
    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.
    
    Additionally, remove locking code that is no longer needed now that
    the trigger callback is no longer called recursively from the rawmidi
    'event' handler.
    Signed-off-by: default avatarClemens Ladisch <clemens@ladisch.de>
    9024d50a
hdsp.c 143 KB