]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ALSA: ctxfi - fix PTP address initialization
authorJaroslav Kysela <perex@perex.cz>
Tue, 2 Feb 2010 18:58:25 +0000 (19:58 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 23 Feb 2010 15:37:46 +0000 (07:37 -0800)
commitc58b0c5ba927f27a610bb6b0b08b2d6288d5da17
tree3a7a2b2aff96e82696b8f09d38d698a63b414c8d
parentea5d622831d40005e9219658d4987b1efd2350ab
ALSA: ctxfi - fix PTP address initialization

commit 21956b61f594f7924d98240da74bc81c28601fa9 upstream.

After hours of debugging, I finally found the reason why some source
and runtime combination does not work. The PTP (page table pages)
address must be aligned. I am not sure how much, but alignment to
PAGE_SIZE is sufficient. Also, use ALSA's page allocation routines
to ensure proper virtual -> physical address translation.

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
sound/pci/ctxfi/ctatc.c
sound/pci/ctxfi/ctvmem.c
sound/pci/ctxfi/ctvmem.h