Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 148368
b: refs/heads/master
c: 6bc5874
h: refs/heads/master
v: v3
  • Loading branch information
Takashi Iwai committed Jun 5, 2009
1 parent f33df81 commit baedd85
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 42a0b31827e4c555efebda7d347cf4ea6b82913a
refs/heads/master: 6bc5874a1ddf98ac0fe6c4eab7d286c11cb1c748
9 changes: 4 additions & 5 deletions trunk/sound/pci/ctxfi/cthw20k1.c
Original file line number Diff line number Diff line change
Expand Up @@ -1883,18 +1883,17 @@ static int hw_card_start(struct hw *hw)
int err = 0;
struct pci_dev *pci = hw->pci;
u16 subsys_id = 0;
unsigned int dma_mask = 0;

err = pci_enable_device(pci);
if (err < 0)
return err;

/* Set DMA transfer mask */
dma_mask = CT_XFI_DMA_MASK;
if (pci_set_dma_mask(pci, dma_mask) < 0 ||
pci_set_consistent_dma_mask(pci, dma_mask) < 0) {
if (pci_set_dma_mask(pci, CT_XFI_DMA_MASK) < 0 ||
pci_set_consistent_dma_mask(pci, CT_XFI_DMA_MASK) < 0) {
printk(KERN_ERR "architecture does not support PCI "
"busmaster DMA with mask 0x%x\n", dma_mask);
"busmaster DMA with mask 0x%llx\n",
CT_XFI_DMA_MASK);
err = -ENXIO;
goto error1;
}
Expand Down

0 comments on commit baedd85

Please sign in to comment.