]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - sound/hda/hdac_controller.c
Merge tag 'for-4.12/dm-fixes-5' of git://git.kernel.org/pub/scm/linux/kernel/git...
[karo-tx-linux.git] / sound / hda / hdac_controller.c
index ee08c389b4d68900c0065b346aeddb75a6e5eabc..978dc1801b3aceb8e2245b819097954c76595d77 100644 (file)
@@ -106,7 +106,11 @@ void snd_hdac_bus_stop_cmd_io(struct hdac_bus *bus)
        /* disable ringbuffer DMAs */
        snd_hdac_chip_writeb(bus, RIRBCTL, 0);
        snd_hdac_chip_writeb(bus, CORBCTL, 0);
+       spin_unlock_irq(&bus->reg_lock);
+
        hdac_wait_for_cmd_dmas(bus);
+
+       spin_lock_irq(&bus->reg_lock);
        /* disable unsolicited responses */
        snd_hdac_chip_updatel(bus, GCTL, AZX_GCTL_UNSOL, 0);
        spin_unlock_irq(&bus->reg_lock);