summaryrefslogtreecommitdiff
path: root/repo/media/alsa-firmware
diff options
context:
space:
mode:
Diffstat (limited to 'repo/media/alsa-firmware')
-rw-r--r--repo/media/alsa-firmware/alsa-firmware.xibuild25
-rw-r--r--repo/media/alsa-firmware/use-uint32_t-instead-u_int32_t.patch52
2 files changed, 77 insertions, 0 deletions
diff --git a/repo/media/alsa-firmware/alsa-firmware.xibuild b/repo/media/alsa-firmware/alsa-firmware.xibuild
new file mode 100644
index 0000000..d6311a9
--- /dev/null
+++ b/repo/media/alsa-firmware/alsa-firmware.xibuild
@@ -0,0 +1,25 @@
+#!/bin/sh
+
+MAKEDEPS="make xmlto"
+DEPS="alsa-tools"
+
+DESC="Firmware binaries for loader programs in alsa-tools and hotplug firmware loader"
+
+PKG_VER=1.2.4
+SOURCE=https://www.alsa-project.org/files/pub/firmware/alsa-firmware-$PKG_VER.tar.bz2
+ADDITIONAL="
+ use-uint32_t-instead-u_int32_t.patch
+"
+
+prepare () {
+ apply_patches
+}
+
+build () {
+ ./configure --prefix=/usr &&
+ make
+}
+
+package () {
+ make DESTDIR=$PKG_DEST install
+}
diff --git a/repo/media/alsa-firmware/use-uint32_t-instead-u_int32_t.patch b/repo/media/alsa-firmware/use-uint32_t-instead-u_int32_t.patch
new file mode 100644
index 0000000..70112fd
--- /dev/null
+++ b/repo/media/alsa-firmware/use-uint32_t-instead-u_int32_t.patch
@@ -0,0 +1,52 @@
+diff -rNu a/hdsploader/digiface_firmware.dat b/hdsploader/digiface_firmware.dat
+--- a/hdsploader/digiface_firmware.dat 2020-10-20 12:28:42.000000000 +0100
++++ b/hdsploader/digiface_firmware.dat 2022-03-09 18:13:56.491133428 +0000
+@@ -1,5 +1,5 @@
+ /* stored in little-endian */
+-static u_int32_t digiface_firmware[24413] = {
++static uint32_t digiface_firmware[24413] = {
+ 0xffffffff, 0x66aa9955, 0x8001000c, 0xe0000000, 0x8006800c, 0xb0000000,
+ 0x8004800c, 0xb4fc0100, 0x8003000c, 0x00000000, 0x8001000c, 0x90000000,
+ 0x8004000c, 0x00000000, 0x8001000c, 0x80000000, 0x0002000c, 0x581a000a,
+diff -rNu a/hdsploader/digiface_firmware_rev11.dat b/hdsploader/digiface_firmware_rev11.dat
+--- a/hdsploader/digiface_firmware_rev11.dat 2020-10-20 12:28:42.000000000 +0100
++++ b/hdsploader/digiface_firmware_rev11.dat 2022-03-09 18:13:56.491133428 +0000
+@@ -1,5 +1,5 @@
+ /* stored in little-endian */
+-static u_int32_t digiface_firmware_rev11[24413] = {
++static uint32_t digiface_firmware_rev11[24413] = {
+ 0xffffffff, 0x66aa9955, 0x8001000c, 0xe0000000, 0x8006800c, 0xb0000000,
+ 0x8004800c, 0xb4fc0100, 0x8003000c, 0x00000000, 0x8001000c, 0x90000000,
+ 0x8004000c, 0x00000000, 0x8001000c, 0x80000000, 0x0002000c, 0x581a000a,
+diff -rNu a/hdsploader/multiface_firmware.dat b/hdsploader/multiface_firmware.dat
+--- a/hdsploader/multiface_firmware.dat 2020-10-20 12:28:42.000000000 +0100
++++ b/hdsploader/multiface_firmware.dat 2022-03-09 18:13:56.491133428 +0000
+@@ -1,5 +1,5 @@
+ /* stored in little-endian */
+-static u_int32_t multiface_firmware[24413] = {
++static uint32_t multiface_firmware[24413] = {
+ 0xffffffff, 0x66aa9955, 0x8001000c, 0xe0000000, 0x8006800c, 0xb0000000,
+ 0x8004800c, 0xb4fc0100, 0x8003000c, 0x00000000, 0x8001000c, 0x90000000,
+ 0x8004000c, 0x00000000, 0x8001000c, 0x80000000, 0x0002000c, 0x581a000a,
+diff -rNu a/hdsploader/multiface_firmware_rev11.dat b/hdsploader/multiface_firmware_rev11.dat
+--- a/hdsploader/multiface_firmware_rev11.dat 2020-10-20 12:28:42.000000000 +0100
++++ b/hdsploader/multiface_firmware_rev11.dat 2022-03-09 18:13:56.491133428 +0000
+@@ -1,5 +1,5 @@
+ /* stored in little-endian */
+-static u_int32_t multiface_firmware_rev11[24413] = {
++static uint32_t multiface_firmware_rev11[24413] = {
+ 0xffffffff, 0x66aa9955, 0x8001000c, 0xe0000000, 0x8006800c, 0xb0000000,
+ 0x8004800c, 0xb4fc0100, 0x8003000c, 0x00000000, 0x8001000c, 0x90000000,
+ 0x8004000c, 0x00000000, 0x8001000c, 0x80000000, 0x0002000c, 0x581a000a,
+diff -rNu a/hdsploader/tobin.c b/hdsploader/tobin.c
+--- a/hdsploader/tobin.c 2020-10-20 12:28:42.000000000 +0100
++++ b/hdsploader/tobin.c 2022-03-09 18:13:56.491133428 +0000
+@@ -8,7 +8,7 @@
+ #include "multiface_firmware.dat"
+ #include "multiface_firmware_rev11.dat"
+
+-int write_bin_file(u_int32_t *array, const char *filename)
++int write_bin_file(uint32_t *array, const char *filename)
+ {
+ FILE *out;
+