Skip to content

Commit

Permalink
ALSA: ctxfi - Allow 64bit DMA
Browse files Browse the repository at this point in the history
emu20kx chips support 64bit address PTE.  Allow the DMA bit mask to
accept 64bit address, too.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
  • Loading branch information
Takashi Iwai committed Jun 5, 2009
1 parent bd05dbd commit 6d74b86
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions sound/pci/ctxfi/cthw20k1.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@
*
*/

#include "cthw20k1.h"
#include "ct20k1reg.h"
#include <linux/types.h>
#include <linux/slab.h>
#include <linux/pci.h>
Expand All @@ -26,8 +24,14 @@
#include <linux/kernel.h>
#include <linux/interrupt.h>
#include <linux/delay.h>
#include "cthw20k1.h"
#include "ct20k1reg.h"

#define CT_XFI_DMA_MASK DMA_BIT_MASK(32) /* 32 bits */
#if BITS_PER_LONG == 32
#define CT_XFI_DMA_MASK DMA_BIT_MASK(32) /* 32 bit PTE */
#else
#define CT_XFI_DMA_MASK DMA_BIT_MASK(64) /* 64 bit PTE */
#endif

struct hw20k1 {
struct hw hw;
Expand Down

0 comments on commit 6d74b86

Please sign in to comment.