1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-11-28 19:53:09 +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, 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; struct snd_pcm_runtime *runtime = substream->runtime;
unsigned long start;
unsigned long off; return remap_pfn_range(vma, vma->vm_start,
u32 len; substream->dma_buffer.addr >> PAGE_SHIFT,
printk("%s:%s[%d]\n", __FILE__, __func__, __LINE__); vma->vm_end - vma->vm_start, vma->vm_page_prot);
return 0;
} }
struct snd_pcm_ops jz4740_pcm_ops = { struct snd_pcm_ops jz4740_pcm_ops = {