228 |
snd_pcm_uframes_t current_ptr = 0; |
snd_pcm_uframes_t current_ptr = 0; |
229 |
dma_t *dma = (dma_t*)substream->runtime->private_data; |
dma_t *dma = (dma_t*)substream->runtime->private_data; |
230 |
|
|
231 |
spin_lock(chip->lock); |
spin_lock(&chip->lock); |
232 |
if (substream->pcm == chip->pcm_adb) |
if (substream->pcm == chip->pcm_adb) |
233 |
current_ptr = vortex_adbdma_getlinearpos(chip, dma->dma); |
current_ptr = vortex_adbdma_getlinearpos(chip, dma->dma); |
234 |
else |
else |
235 |
current_ptr = vortex_wtdma_getlinearpos(chip, dma->dma); |
current_ptr = vortex_wtdma_getlinearpos(chip, dma->dma); |
236 |
//printk(KERN_INFO "vortex: pointer = 0x%x\n", current_ptr); |
//printk(KERN_INFO "vortex: pointer = 0x%x\n", current_ptr); |
237 |
spin_unlock(chip->lock); |
spin_unlock(&chip->lock); |
238 |
return (bytes_to_frames(substream->runtime, current_ptr)); |
return (bytes_to_frames(substream->runtime, current_ptr)); |
239 |
} |
} |
240 |
|
|