1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-11-25 00:56:15 +02:00

fix the jz4740_pcm_mmap function

now Ben can play online Radio
This commit is contained in:
Xiangfu Liu 2009-10-15 17:50:52 +08:00
parent 96b315a920
commit 8319e34599

View File

@ -567,14 +567,13 @@ static int jz4740_pcm_close(struct snd_pcm_substream *substream)
}
static int jz4740_pcm_mmap(struct snd_pcm_substream *substream,
struct vm_area_struct *vma)//include/linux/mm.h
struct vm_area_struct *vma)
{
struct snd_pcm_runtime *runtime = substream->runtime;
unsigned long start;
unsigned long off;
u32 len;
printk("%s:%s[%d]\n", __FILE__, __func__, __LINE__);
return 0;
return remap_pfn_range(vma, vma->vm_start,
substream->dma_buffer.addr >> PAGE_SHIFT,
vma->vm_end - vma->vm_start, vma->vm_page_prot);
}
struct snd_pcm_ops jz4740_pcm_ops = {