summaryrefslogtreecommitdiff
path: root/packages/linux/linux-gumstix-2.6.15/bugfix-pxa-audio.patch
diff options
context:
space:
mode:
authorMarcin Juszkiewicz <hrw@openembedded.org>2006-04-28 19:06:59 +0000
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>2006-04-28 19:06:59 +0000
commit989a3c578011cad60fc167cdb1b9a0e603f43072 (patch)
treeaef515b13e77cda22b30d75295f3aaef16d6c470 /packages/linux/linux-gumstix-2.6.15/bugfix-pxa-audio.patch
parentd775757b77aba05c2766546682db2915b5cc12e1 (diff)
* add initial support for gumstix (xscale pxa255) platform (gumstix.com)
* add GMUstix distro for gumstix (GMU = George Mason University) * add linux-gumstix-2.6.15 with gumstix patchset * close bug #861
Diffstat (limited to 'packages/linux/linux-gumstix-2.6.15/bugfix-pxa-audio.patch')
-rw-r--r--packages/linux/linux-gumstix-2.6.15/bugfix-pxa-audio.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/packages/linux/linux-gumstix-2.6.15/bugfix-pxa-audio.patch b/packages/linux/linux-gumstix-2.6.15/bugfix-pxa-audio.patch
new file mode 100644
index 0000000000..a8d04f0e20
--- /dev/null
+++ b/packages/linux/linux-gumstix-2.6.15/bugfix-pxa-audio.patch
@@ -0,0 +1,25 @@
+Index: linux-2.6.15gum/sound/oss/pxa-audio.c
+===================================================================
+--- linux-2.6.15gum.orig/sound/oss/pxa-audio.c
++++ linux-2.6.15gum/sound/oss/pxa-audio.c
+@@ -731,7 +731,7 @@ static int audio_mmap(struct file *file,
+ audio_buf_t *buf = &s->buffers[i];
+ if (!buf->master)
+ continue;
+- ret = remap_page_range(vma, vma->vm_start, buf->dma_desc->dsadr,
++ ret = io_remap_page_range(vma, vma_addr, buf->dma_desc->dsadr,
+ buf->master, vma->vm_page_prot);
+ if (ret)
+ return ret;
+Index: linux-2.6.15gum/sound/oss/pxa-audio.h
+===================================================================
+--- linux-2.6.15gum.orig/sound/oss/pxa-audio.h
++++ linux-2.6.15gum/sound/oss/pxa-audio.h
+@@ -52,3 +52,7 @@ typedef struct {
+ extern int pxa_audio_attach(struct inode *inode, struct file *file,
+ audio_state_t *state);
+ extern void pxa_audio_clear_buf(audio_stream_t *s);
++
++#define DCMD_TXPCDR (DCMD_INCSRCADDR|DCMD_FLOWSRC|DCMD_BURST32|DCMD_WIDTH4)
++#define DCMD_RXMCDR (DCMD_INCTRGADDR|DCMD_FLOWSRC|DCMD_BURST32|DCMD_WIDTH4)
++#define DCMD_RXPCDR (DCMD_INCTRGADDR|DCMD_FLOWSRC|DCMD_BURST32|DCMD_WIDTH4)