ALSA: ctxfi - Support SG-buffers
[linux-2.6.git] / sound / pci / ctxfi / ctatc.c
index 268ecc4c285607c1cceea9b544058944a9000a2f..684947546d8188e28f3152ea34fa8360bce3a755 100644 (file)
@@ -128,7 +128,7 @@ static int ct_map_audio_buffer(struct ct_atc *atc, struct ct_atc_pcm *apcm)
        runtime = apcm->substream->runtime;
        vm = atc->vm;
 
        runtime = apcm->substream->runtime;
        vm = atc->vm;
 
-       apcm->vm_block = vm->map(vm, runtime->dma_area, runtime->dma_bytes);
+       apcm->vm_block = vm->map(vm, apcm->substream, runtime->dma_bytes);
 
        if (NULL == apcm->vm_block)
                return -ENOENT;
 
        if (NULL == apcm->vm_block)
                return -ENOENT;