diff options
-rw-r--r-- | sound/pci/rme9652/hdspm.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sound/pci/rme9652/hdspm.c b/sound/pci/rme9652/hdspm.c index 949691a876d3..32d80af012cc 100644 --- a/sound/pci/rme9652/hdspm.c +++ b/sound/pci/rme9652/hdspm.c | |||
@@ -1639,12 +1639,14 @@ static int snd_hdspm_midi_input_read (struct hdspm_midi *hmidi) | |||
1639 | } | 1639 | } |
1640 | } | 1640 | } |
1641 | hmidi->pending = 0; | 1641 | hmidi->pending = 0; |
1642 | spin_unlock_irqrestore(&hmidi->lock, flags); | ||
1642 | 1643 | ||
1644 | spin_lock_irqsave(&hmidi->hdspm->lock, flags); | ||
1643 | hmidi->hdspm->control_register |= hmidi->ie; | 1645 | hmidi->hdspm->control_register |= hmidi->ie; |
1644 | hdspm_write(hmidi->hdspm, HDSPM_controlRegister, | 1646 | hdspm_write(hmidi->hdspm, HDSPM_controlRegister, |
1645 | hmidi->hdspm->control_register); | 1647 | hmidi->hdspm->control_register); |
1648 | spin_unlock_irqrestore(&hmidi->hdspm->lock, flags); | ||
1646 | 1649 | ||
1647 | spin_unlock_irqrestore (&hmidi->lock, flags); | ||
1648 | return snd_hdspm_midi_output_write (hmidi); | 1650 | return snd_hdspm_midi_output_write (hmidi); |
1649 | } | 1651 | } |
1650 | 1652 | ||