diff options
Diffstat (limited to 'bsp/meta-synopsys/recipes-multimedia/pipewire/files/0001-spa-plugins-add-ARC-cpu.patch')
-rw-r--r-- | bsp/meta-synopsys/recipes-multimedia/pipewire/files/0001-spa-plugins-add-ARC-cpu.patch | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/bsp/meta-synopsys/recipes-multimedia/pipewire/files/0001-spa-plugins-add-ARC-cpu.patch b/bsp/meta-synopsys/recipes-multimedia/pipewire/files/0001-spa-plugins-add-ARC-cpu.patch new file mode 100644 index 00000000..92e4819c --- /dev/null +++ b/bsp/meta-synopsys/recipes-multimedia/pipewire/files/0001-spa-plugins-add-ARC-cpu.patch @@ -0,0 +1,48 @@ +From 82a59c4f55178d8bd6cbd523e23da3f1d8f5b63f Mon Sep 17 00:00:00 2001 +From: Evgeniy Didin <Evgeniy.Didin@synopsys.com> +Date: Fri, 20 Sep 2019 15:06:17 +0300 +Subject: [PATCH] spa/plugins: add ARC cpu + +Signed-off-by: Evgeniy Didin <Evgeniy.Didin@synopsys.com> +--- + spa/plugins/support/cpu-arc.c | 13 +++++++++++++ + spa/plugins/support/cpu.c | 3 +++ + 2 files changed, 16 insertions(+) + create mode 100644 spa/plugins/support/cpu-arc.c + +diff --git a/spa/plugins/support/cpu-arc.c b/spa/plugins/support/cpu-arc.c +new file mode 100644 +index 00000000..43311b03 +--- /dev/null ++++ b/spa/plugins/support/cpu-arc.c +@@ -0,0 +1,13 @@ ++/* Spa ++ * ++*/ ++#include <sys/types.h> ++#include <sys/stat.h> ++#include <fcntl.h> ++ ++static int ++arc_init(struct impl *impl) ++{ ++ impl->flags = 0; ++ return 0; ++} +diff --git a/spa/plugins/support/cpu.c b/spa/plugins/support/cpu.c +index eccebcb8..f5b22abf 100644 +--- a/spa/plugins/support/cpu.c ++++ b/spa/plugins/support/cpu.c +@@ -54,6 +54,9 @@ struct impl { + # elif defined (__arm__) || defined (__aarch64__) + #include "cpu-arm.c" + #define init(t) arm_init(t) ++# elif defined (__arc__) ++#include "cpu-arc.c" ++#define init(t) arc_init(t) + #endif + + static uint32_t +-- +2.16.2 + |