]> asedeno.scripts.mit.edu Git - linux.git/commit
ALSA: emu10k1: make sure synth DMA pages are allocated with DMA functions
authorMaciej S. Szmigiero <mail@maciej.szmigiero.name>
Tue, 13 Feb 2018 23:06:34 +0000 (00:06 +0100)
committerTakashi Iwai <tiwai@suse.de>
Wed, 14 Feb 2018 06:46:54 +0000 (07:46 +0100)
commit055e0ae10f509482ca5b140e8e5f4a77e31efdd5
tree2383050dcaac552407cbe0787443d1b3bca26409
parent541b9bad169d2422c7c7e3905b105930a1b6eb32
ALSA: emu10k1: make sure synth DMA pages are allocated with DMA functions

Commit a5003fc04113 ("[ALSA] emu10k1 - simplify page allocation for synth")
switched from using the DMA allocator for synth DMA pages to manually
calling alloc_page().
However, this usage has an implicit assumption that the DMA address space
for the emu10k1-family chip is the same as the CPU physical address space
which is not true for a system with a IOMMU.

Since this made the synth part of the driver non-functional on such systems
let's effectively revert that commit (while keeping the
__synth_free_pages() simplification).

Signed-off-by: Maciej S. Szmigiero <mail@maciej.szmigiero.name>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/emu10k1/memory.c