summaryrefslogtreecommitdiffstats
path: root/bsp/meta-synopsys/recipes-multimedia/pipewire/files/0001-spa-plugins-add-ARC-cpu.patch
blob: 92e4819c1c8529ff5836cdfaedd2fc8505564184 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
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