mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-04-21 12:27:27 +03:00
fix the jz4740_pcm_mmap function
now Ben can play online Radio
This commit is contained in:
@@ -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 = {
|
||||||
|
|||||||
Reference in New Issue
Block a user