ALSA: emu10k1: Emu10k2 32 bit DMA mode
authorPeter Zubaj <pzubaj@marticonet.sk>
Tue, 28 Apr 2015 19:57:29 +0000 (21:57 +0200)
committerTakashi Iwai <tiwai@suse.de>
Wed, 29 Apr 2015 05:27:30 +0000 (07:27 +0200)
commit7241ea558c6715501e777396b5fc312c372e11d9
treec42534e1c1f313b32c3f28a3bb324aa6be0a2be1
parent1c94e65c668f44d2c69ae7e7fc268ab3268fba3e
ALSA: emu10k1: Emu10k2 32 bit DMA mode

Looks like audigy emu10k2 (probably emu10k1 - sb live too) support two
modes for DMA. Second mode is useful for 64 bit os with more then 2 GB
of ram (fixes problems with big soundfont loading)

1) 32MB from 2 GB address space using 8192 pages (used now as default)
2) 16MB from 4 GB address space using 4096 pages

Mode is set using HCFG_EXPANDED_MEM flag in HCFG register.
Also format of emu10k2 page table is then different.

Signed-off-by: Peter Zubaj <pzubaj@marticonet.sk>
Tested-by: Takashi Iwai <tiwai@suse.de>
Cc: <stable@vger.kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
include/sound/emu10k1.h
sound/pci/emu10k1/emu10k1_callback.c
sound/pci/emu10k1/emu10k1_main.c
sound/pci/emu10k1/emupcm.c
sound/pci/emu10k1/memory.c