/[openvortex]/alsa/pci/au88x0/au88x0_pcm.c
ViewVC logotype

Diff of /alsa/pci/au88x0/au88x0_pcm.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.5 by mjander, Thu Jul 3 04:40:02 2003 UTC revision 1.6 by vizard, Mon Jul 28 23:09:37 2003 UTC
# Line 228  static snd_pcm_uframes_t snd_vortex_pcm_ Line 228  static snd_pcm_uframes_t snd_vortex_pcm_
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    

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26