[pulseaudio-discuss] [PATCH 1/2] core: Initialize ARM NEON code if available
Peter Meerwald
pmeerw at pmeerw.net
Tue Oct 23 08:54:57 PDT 2012
From: Peter Meerwald <p.meerwald at bct-electronic.com>
Signed-off-by: Peter Meerwald <p.meerwald at bct-electronic.com>
---
src/pulsecore/cpu-arm.c | 4 +++-
src/pulsecore/cpu-arm.h | 2 ++
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/src/pulsecore/cpu-arm.c b/src/pulsecore/cpu-arm.c
index 934c7fe..60e047f 100644
--- a/src/pulsecore/cpu-arm.c
+++ b/src/pulsecore/cpu-arm.c
@@ -140,7 +140,9 @@ pa_bool_t pa_cpu_init_arm(pa_cpu_arm_flag_t *flags) {
#if defined (__linux__)
pa_cpu_get_arm_flags(flags);
- if (*flags & PA_CPU_ARM_V6)
+ if (*flags & PA_CPU_ARM_NEON)
+ pa_convert_func_init_neon(*flags);
+ else if (*flags & PA_CPU_ARM_V6)
pa_volume_func_init_arm(*flags);
return TRUE;
diff --git a/src/pulsecore/cpu-arm.h b/src/pulsecore/cpu-arm.h
index 91aa659..88b2aec 100644
--- a/src/pulsecore/cpu-arm.h
+++ b/src/pulsecore/cpu-arm.h
@@ -41,4 +41,6 @@ pa_bool_t pa_cpu_init_arm(pa_cpu_arm_flag_t *flags);
/* some optimized functions */
void pa_volume_func_init_arm(pa_cpu_arm_flag_t flags);
+void pa_convert_func_init_neon(pa_cpu_arm_flag_t flags);
+
#endif /* foocpuarmhfoo */
--
1.7.9.5
More information about the pulseaudio-discuss
mailing list