aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/linux/linux-2.6.21/pcm-gcc-411-bugfix.patch
diff options
context:
space:
mode:
authorDenys Dmytriyenko <denis@denix.org>2009-03-17 14:32:59 -0400
committerDenys Dmytriyenko <denis@denix.org>2009-03-17 14:32:59 -0400
commit709c4d66e0b107ca606941b988bad717c0b45d9b (patch)
tree37ee08b1eb308f3b2b6426d5793545c38396b838 /recipes/linux/linux-2.6.21/pcm-gcc-411-bugfix.patch
parentfa6cd5a3b993f16c27de4ff82b42684516d433ba (diff)
downloadopenembedded-709c4d66e0b107ca606941b988bad717c0b45d9b.tar.gz
rename packages/ to recipes/ per earlier agreement
See links below for more details: http://thread.gmane.org/gmane.comp.handhelds.openembedded/21326 http://thread.gmane.org/gmane.comp.handhelds.openembedded/21816 Signed-off-by: Denys Dmytriyenko <denis@denix.org> Acked-by: Mike Westerhof <mwester@dls.net> Acked-by: Philip Balister <philip@balister.org> Acked-by: Khem Raj <raj.khem@gmail.com> Acked-by: Marcin Juszkiewicz <hrw@openembedded.org> Acked-by: Koen Kooi <koen@openembedded.org> Acked-by: Frans Meulenbroeks <fransmeulenbroeks@gmail.com>
Diffstat (limited to 'recipes/linux/linux-2.6.21/pcm-gcc-411-bugfix.patch')
-rw-r--r--recipes/linux/linux-2.6.21/pcm-gcc-411-bugfix.patch60
1 files changed, 60 insertions, 0 deletions
diff --git a/recipes/linux/linux-2.6.21/pcm-gcc-411-bugfix.patch b/recipes/linux/linux-2.6.21/pcm-gcc-411-bugfix.patch
new file mode 100644
index 0000000000..50a26cbdf5
--- /dev/null
+++ b/recipes/linux/linux-2.6.21/pcm-gcc-411-bugfix.patch
@@ -0,0 +1,60 @@
+Index: linux-2.6.21gum/include/sound/pcm_params.h
+===================================================================
+--- linux-2.6.21gum.orig/include/sound/pcm_params.h
++++ linux-2.6.21gum/include/sound/pcm_params.h
+@@ -179,16 +179,8 @@ static inline int snd_mask_single(const
+ return 1;
+ }
+
+-static inline int snd_mask_refine(struct snd_mask *mask,
+- const struct snd_mask *v)
+-{
+- struct snd_mask old;
+- snd_mask_copy(&old, mask);
+- snd_mask_intersect(mask, v);
+- if (snd_mask_empty(mask))
+- return -EINVAL;
+- return !snd_mask_eq(mask, &old);
+-}
++void snd_mask_print( const struct snd_mask *m1, const struct snd_mask *m2 );
++int snd_mask_refine(struct snd_mask *mask, const struct snd_mask *v);
+
+ static inline int snd_mask_refine_first(struct snd_mask *mask)
+ {
+Index: linux-2.6.21gum/sound/core/pcm_lib.c
+===================================================================
+--- linux-2.6.21gum.orig/sound/core/pcm_lib.c
++++ linux-2.6.21gum/sound/core/pcm_lib.c
+@@ -2128,3 +2128,18 @@ snd_pcm_sframes_t snd_pcm_lib_readv(stru
+ }
+
+ EXPORT_SYMBOL(snd_pcm_lib_readv);
++
++int snd_mask_refine(struct snd_mask *mask,
++ const struct snd_mask *v)
++{
++ struct snd_mask old;
++ snd_mask_copy(&old, mask);
++ snd_mask_print(mask, v);
++ snd_mask_intersect(mask, v);
++ snd_mask_print(mask, v);
++ if (snd_mask_empty(mask))
++ return -EINVAL;
++ return !snd_mask_eq(mask, &old);
++}
++
++EXPORT_SYMBOL(snd_mask_refine);
+Index: linux-2.6.21gum/sound/core/pcm_native.c
+===================================================================
+--- linux-2.6.21gum.orig/sound/core/pcm_native.c
++++ linux-2.6.21gum/sound/core/pcm_native.c
+@@ -3450,3 +3450,9 @@ const struct file_operations snd_pcm_f_o
+ .fasync = snd_pcm_fasync,
+ }
+ };
++
++void snd_mask_print( const struct snd_mask *m1, const struct snd_mask *m2 )
++{
++// printk( "0x%08x %08x v: 0x%08x %08x\n", m1->bits[1], m1->bits[0], m2->bits[1], m2->bits[0] );
++}
++