|
@@ -3359,7 +3359,7 @@ static int snd_trident_tlb_alloc(struct snd_trident *trident)
|
|
dev_err(trident->card->dev, "unable to allocate TLB buffer\n");
|
|
dev_err(trident->card->dev, "unable to allocate TLB buffer\n");
|
|
return -ENOMEM;
|
|
return -ENOMEM;
|
|
}
|
|
}
|
|
- trident->tlb.entries = (unsigned int*)ALIGN((unsigned long)trident->tlb.buffer.area, SNDRV_TRIDENT_MAX_PAGES * 4);
|
|
|
|
|
|
+ trident->tlb.entries = (__le32 *)ALIGN((unsigned long)trident->tlb.buffer.area, SNDRV_TRIDENT_MAX_PAGES * 4);
|
|
trident->tlb.entries_dmaaddr = ALIGN(trident->tlb.buffer.addr, SNDRV_TRIDENT_MAX_PAGES * 4);
|
|
trident->tlb.entries_dmaaddr = ALIGN(trident->tlb.buffer.addr, SNDRV_TRIDENT_MAX_PAGES * 4);
|
|
/* allocate shadow TLB page table (virtual addresses) */
|
|
/* allocate shadow TLB page table (virtual addresses) */
|
|
trident->tlb.shadow_entries =
|
|
trident->tlb.shadow_entries =
|