Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] alsa-{lib,utils,ucm-conf}: update to 1.2.10
@ 2023-09-09  1:48 cinerea0
  2023-09-09  2:15 ` [PR PATCH] [Updated] " cinerea0
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: cinerea0 @ 2023-09-09  1:48 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 397 bytes --]

There is a new pull request by cinerea0 against master on the void-packages repository

https://github.com/cinerea0/void-packages alsa
https://github.com/void-linux/void-packages/pull/45985

alsa-{lib,utils,ucm-conf}: update to 1.2.10
#### Testing the changes
- I tested the changes in this PR: **YES**


A patch file from https://github.com/void-linux/void-packages/pull/45985.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-alsa-45985.patch --]
[-- Type: text/x-diff, Size: 3281 bytes --]

From be4d5207004c77589f468730ac84284ae8e21331 Mon Sep 17 00:00:00 2001
From: cinerea0 <cinerea0@disroot.org>
Date: Fri, 8 Sep 2023 21:46:22 -0400
Subject: [PATCH 1/3] alsa-lib: update to 1.2.10

---
 srcpkgs/alsa-lib/template | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/srcpkgs/alsa-lib/template b/srcpkgs/alsa-lib/template
index 576745a852198..19dd3505b0209 100644
--- a/srcpkgs/alsa-lib/template
+++ b/srcpkgs/alsa-lib/template
@@ -1,6 +1,6 @@
 # Template file for 'alsa-lib'
 pkgname=alsa-lib
-version=1.2.9
+version=1.2.10
 revision=1
 build_style=gnu-configure
 hostmakedepends="pkg-config libtool"
@@ -9,7 +9,7 @@ maintainer="cinerea0 <cinerea0@protonmail.com>"
 license="LGPL-2.1-or-later"
 homepage="http://www.alsa-project.org"
 distfiles="https://www.alsa-project.org/files/pub/lib/${pkgname}-${version}.tar.bz2"
-checksum=dc9c643fdc4ccfd0572cc685858dd41e08afb583f30460b317e4188275f615b2
+checksum=c86a45a846331b1b0aa6e6be100be2a7aef92efd405cf6bac7eef8174baa920e
 
 alsa-lib-devel_package() {
 	depends="${sourcepkg}>=${version}_${revision}"

From 8e2e64f6b270db34fc638c79cf9270139c573935 Mon Sep 17 00:00:00 2001
From: cinerea0 <cinerea0@disroot.org>
Date: Fri, 8 Sep 2023 21:46:37 -0400
Subject: [PATCH 2/3] alsa-utils: update to 1.2.10

---
 srcpkgs/alsa-utils/template | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/srcpkgs/alsa-utils/template b/srcpkgs/alsa-utils/template
index 90cf5e61ec600..60bb4c05af242 100644
--- a/srcpkgs/alsa-utils/template
+++ b/srcpkgs/alsa-utils/template
@@ -1,6 +1,6 @@
 # Template file for 'alsa-utils'
 pkgname=alsa-utils
-version=1.2.9
+version=1.2.10
 revision=1
 build_style=gnu-configure
 configure_args="--with-udev-rules-dir=/usr/lib/udev/rules.d --disable-alsaconf
@@ -14,7 +14,7 @@ maintainer="cinerea0 <cinerea0@protonmail.com>"
 license="GPL-2.0-only"
 homepage="http://www.alsa-project.org"
 distfiles="https://www.alsa-project.org/files/pub/utils/${pkgname}-${version}.tar.bz2"
-checksum=e7623d4525595f92e11ce25ee9a97f2040a14c6e4dcd027aa96e06cbce7817bd
+checksum=104b62ec7f02a7ce16ca779f4815616df1cc21933503783a9107b5944f83063a
 
 post_install() {
 	# Install required udev rules file.

From dc8b9e3495b2f25c72d5db071974ef661243a9e5 Mon Sep 17 00:00:00 2001
From: cinerea0 <cinerea0@disroot.org>
Date: Fri, 8 Sep 2023 21:46:54 -0400
Subject: [PATCH 3/3] alsa-ucm-conf: update to 1.2.10

---
 srcpkgs/alsa-ucm-conf/template | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/srcpkgs/alsa-ucm-conf/template b/srcpkgs/alsa-ucm-conf/template
index a965973cb1dce..f9a8b0c6fa980 100644
--- a/srcpkgs/alsa-ucm-conf/template
+++ b/srcpkgs/alsa-ucm-conf/template
@@ -1,13 +1,13 @@
 # Template file for 'alsa-ucm-conf'
 pkgname=alsa-ucm-conf
-version=1.2.9
+version=1.2.10
 revision=1
 short_desc="ALSA Use Case Manager topology configurations"
 maintainer="cinerea0 <cinerea0@protonmail.com>"
 license="BSD-3-Clause"
 homepage="https://github.com/alsa-project/alsa-ucm-conf"
 distfiles="https://github.com/alsa-project/${pkgname}/archive/refs/tags/v${version}.tar.gz"
-checksum=1c40618161bc2738c55aab4dee1d0c82514e257116f296815a799adeaab5e48b
+checksum=00e67c31b60494665f45ce57ca9d2c42421c40fbe0140b5a5648291238e63508
 
 do_install() {
 	vdoc ucm2/README.md

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PR PATCH] [Updated] alsa-{lib,utils,ucm-conf}: update to 1.2.10
  2023-09-09  1:48 [PR PATCH] alsa-{lib,utils,ucm-conf}: update to 1.2.10 cinerea0
@ 2023-09-09  2:15 ` cinerea0
  2023-09-11 16:20 ` cinerea0
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: cinerea0 @ 2023-09-09  2:15 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 402 bytes --]

There is an updated pull request by cinerea0 against master on the void-packages repository

https://github.com/cinerea0/void-packages alsa
https://github.com/void-linux/void-packages/pull/45985

alsa-{lib,utils,ucm-conf}: update to 1.2.10
#### Testing the changes
- I tested the changes in this PR: **YES**


A patch file from https://github.com/void-linux/void-packages/pull/45985.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-alsa-45985.patch --]
[-- Type: text/x-diff, Size: 6063 bytes --]

From 72f1066ec012b388138e481ea7e35e8d2112aaac Mon Sep 17 00:00:00 2001
From: cinerea0 <cinerea0@disroot.org>
Date: Fri, 8 Sep 2023 22:14:40 -0400
Subject: [PATCH 1/3] alsa-lib: update to 1.2.10

---
 .../alsa-lib/patches/move-string-macro.patch  | 31 +++++++++++++++++++
 .../patches/ump-header-detection.patch        | 15 +++++++++
 srcpkgs/alsa-lib/template                     |  6 ++--
 3 files changed, 49 insertions(+), 3 deletions(-)
 create mode 100644 srcpkgs/alsa-lib/patches/move-string-macro.patch
 create mode 100644 srcpkgs/alsa-lib/patches/ump-header-detection.patch

diff --git a/srcpkgs/alsa-lib/patches/move-string-macro.patch b/srcpkgs/alsa-lib/patches/move-string-macro.patch
new file mode 100644
index 0000000000000..98973c1e8a13b
--- /dev/null
+++ b/srcpkgs/alsa-lib/patches/move-string-macro.patch
@@ -0,0 +1,31 @@
+# Fixes compilation issue on musl
+# Upstream: https://github.com/alsa-project/alsa-lib/commit/10bd599970acc71c92f85eb08943eb8d3d702a9c
+diff --git a/include/global.h b/include/global.h
+index dfe9bc2b..3ecaeee8 100644
+--- a/include/global.h
++++ b/include/global.h
+@@ -51,6 +51,11 @@ const char *snd_asoundlib_version(void);
+ #define ATTRIBUTE_UNUSED __attribute__ ((__unused__))
+ #endif
+ 
++#ifndef __STRING
++/** \brief Return 'x' argument as string */
++#define __STRING(x)     #x
++#endif
++
+ #ifdef PIC /* dynamic build */
+ 
+ /** \hideinitializer \brief Helper macro for #SND_DLSYM_BUILD_VERSION. */
+@@ -71,11 +76,6 @@ struct snd_dlsym_link {
+ 
+ extern struct snd_dlsym_link *snd_dlsym_start;
+ 
+-#ifndef __STRING
+-/** \brief Return 'x' argument as string */
+-#define __STRING(x)     #x
+-#endif
+-
+ /** \hideinitializer \brief Helper macro for #SND_DLSYM_BUILD_VERSION. */
+ #define __SND_DLSYM_VERSION(prefix, name, version) _ ## prefix ## name ## version
+ /**
+
diff --git a/srcpkgs/alsa-lib/patches/ump-header-detection.patch b/srcpkgs/alsa-lib/patches/ump-header-detection.patch
new file mode 100644
index 0000000000000..efe9909fef912
--- /dev/null
+++ b/srcpkgs/alsa-lib/patches/ump-header-detection.patch
@@ -0,0 +1,15 @@
+# Fixes ump header detection when used by external programs
+# Upstream: https://github.com/alsa-project/alsa-lib/commit/fcce13a6726c52882bd8b7131c61c4eba308792c
+diff --git a/include/control.h b/include/control.h
+index ab482ba4..e7541d56 100644
+--- a/include/control.h
++++ b/include/control.h
+@@ -413,6 +413,8 @@ int snd_ctl_pcm_prefer_subdevice(snd_ctl_t *ctl, int subdev);
+ int snd_ctl_rawmidi_next_device(snd_ctl_t *ctl, int * device);
+ int snd_ctl_rawmidi_info(snd_ctl_t *ctl, snd_rawmidi_info_t * info);
+ int snd_ctl_rawmidi_prefer_subdevice(snd_ctl_t *ctl, int subdev);
++#endif
++#ifdef __ALSA_UMP_H
+ int snd_ctl_ump_next_device(snd_ctl_t *ctl, int *device);
+ int snd_ctl_ump_endpoint_info(snd_ctl_t *ctl, snd_ump_endpoint_info_t *info);
+ int snd_ctl_ump_block_info(snd_ctl_t *ctl, snd_ump_block_info_t *info);
diff --git a/srcpkgs/alsa-lib/template b/srcpkgs/alsa-lib/template
index 576745a852198..ce379c317b96f 100644
--- a/srcpkgs/alsa-lib/template
+++ b/srcpkgs/alsa-lib/template
@@ -1,6 +1,6 @@
 # Template file for 'alsa-lib'
 pkgname=alsa-lib
-version=1.2.9
+version=1.2.10
 revision=1
 build_style=gnu-configure
 hostmakedepends="pkg-config libtool"
@@ -8,8 +8,8 @@ short_desc="Advanced Linux Sound Architecture (ALSA) library"
 maintainer="cinerea0 <cinerea0@protonmail.com>"
 license="LGPL-2.1-or-later"
 homepage="http://www.alsa-project.org"
-distfiles="https://www.alsa-project.org/files/pub/lib/${pkgname}-${version}.tar.bz2"
-checksum=dc9c643fdc4ccfd0572cc685858dd41e08afb583f30460b317e4188275f615b2
+distfiles="https://www.alsa-project.org/files/pub/lib/alsa-lib-${version}.tar.bz2"
+checksum=c86a45a846331b1b0aa6e6be100be2a7aef92efd405cf6bac7eef8174baa920e
 
 alsa-lib-devel_package() {
 	depends="${sourcepkg}>=${version}_${revision}"

From 00e11cce0a5bf703d828ecb0b83e2d706182930a Mon Sep 17 00:00:00 2001
From: cinerea0 <cinerea0@disroot.org>
Date: Fri, 8 Sep 2023 22:14:55 -0400
Subject: [PATCH 2/3] alsa-utils: update to 1.2.10

---
 srcpkgs/alsa-utils/template | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/srcpkgs/alsa-utils/template b/srcpkgs/alsa-utils/template
index 90cf5e61ec600..60bb4c05af242 100644
--- a/srcpkgs/alsa-utils/template
+++ b/srcpkgs/alsa-utils/template
@@ -1,6 +1,6 @@
 # Template file for 'alsa-utils'
 pkgname=alsa-utils
-version=1.2.9
+version=1.2.10
 revision=1
 build_style=gnu-configure
 configure_args="--with-udev-rules-dir=/usr/lib/udev/rules.d --disable-alsaconf
@@ -14,7 +14,7 @@ maintainer="cinerea0 <cinerea0@protonmail.com>"
 license="GPL-2.0-only"
 homepage="http://www.alsa-project.org"
 distfiles="https://www.alsa-project.org/files/pub/utils/${pkgname}-${version}.tar.bz2"
-checksum=e7623d4525595f92e11ce25ee9a97f2040a14c6e4dcd027aa96e06cbce7817bd
+checksum=104b62ec7f02a7ce16ca779f4815616df1cc21933503783a9107b5944f83063a
 
 post_install() {
 	# Install required udev rules file.

From 44e002b60aa0e0f02bfef15cf5adaed4333d23f7 Mon Sep 17 00:00:00 2001
From: cinerea0 <cinerea0@disroot.org>
Date: Fri, 8 Sep 2023 22:15:09 -0400
Subject: [PATCH 3/3] alsa-ucm-conf: update to 1.2.10

---
 srcpkgs/alsa-ucm-conf/template | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/srcpkgs/alsa-ucm-conf/template b/srcpkgs/alsa-ucm-conf/template
index a965973cb1dce..f9a8b0c6fa980 100644
--- a/srcpkgs/alsa-ucm-conf/template
+++ b/srcpkgs/alsa-ucm-conf/template
@@ -1,13 +1,13 @@
 # Template file for 'alsa-ucm-conf'
 pkgname=alsa-ucm-conf
-version=1.2.9
+version=1.2.10
 revision=1
 short_desc="ALSA Use Case Manager topology configurations"
 maintainer="cinerea0 <cinerea0@protonmail.com>"
 license="BSD-3-Clause"
 homepage="https://github.com/alsa-project/alsa-ucm-conf"
 distfiles="https://github.com/alsa-project/${pkgname}/archive/refs/tags/v${version}.tar.gz"
-checksum=1c40618161bc2738c55aab4dee1d0c82514e257116f296815a799adeaab5e48b
+checksum=00e67c31b60494665f45ce57ca9d2c42421c40fbe0140b5a5648291238e63508
 
 do_install() {
 	vdoc ucm2/README.md

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PR PATCH] [Updated] alsa-{lib,utils,ucm-conf}: update to 1.2.10
  2023-09-09  1:48 [PR PATCH] alsa-{lib,utils,ucm-conf}: update to 1.2.10 cinerea0
  2023-09-09  2:15 ` [PR PATCH] [Updated] " cinerea0
@ 2023-09-11 16:20 ` cinerea0
  2023-09-11 17:07 ` cinerea0
  2023-09-15 21:48 ` [PR PATCH] [Merged]: " Duncaen
  3 siblings, 0 replies; 5+ messages in thread
From: cinerea0 @ 2023-09-11 16:20 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 402 bytes --]

There is an updated pull request by cinerea0 against master on the void-packages repository

https://github.com/cinerea0/void-packages alsa
https://github.com/void-linux/void-packages/pull/45985

alsa-{lib,utils,ucm-conf}: update to 1.2.10
#### Testing the changes
- I tested the changes in this PR: **YES**


A patch file from https://github.com/void-linux/void-packages/pull/45985.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-alsa-45985.patch --]
[-- Type: text/x-diff, Size: 6343 bytes --]

From b9d4212e65295367f7b745ea8e5717a1e377b6e7 Mon Sep 17 00:00:00 2001
From: cinerea0 <cinerea0@disroot.org>
Date: Mon, 11 Sep 2023 12:18:53 -0400
Subject: [PATCH 1/3] alsa-lib: update to 1.2.10

---
 .../alsa-lib/patches/move-string-macro.patch  | 31 +++++++++++++++++++
 .../patches/ump-header-detection.patch        | 15 +++++++++
 srcpkgs/alsa-lib/template                     |  6 ++--
 3 files changed, 49 insertions(+), 3 deletions(-)
 create mode 100644 srcpkgs/alsa-lib/patches/move-string-macro.patch
 create mode 100644 srcpkgs/alsa-lib/patches/ump-header-detection.patch

diff --git a/srcpkgs/alsa-lib/patches/move-string-macro.patch b/srcpkgs/alsa-lib/patches/move-string-macro.patch
new file mode 100644
index 0000000000000..98973c1e8a13b
--- /dev/null
+++ b/srcpkgs/alsa-lib/patches/move-string-macro.patch
@@ -0,0 +1,31 @@
+# Fixes compilation issue on musl
+# Upstream: https://github.com/alsa-project/alsa-lib/commit/10bd599970acc71c92f85eb08943eb8d3d702a9c
+diff --git a/include/global.h b/include/global.h
+index dfe9bc2b..3ecaeee8 100644
+--- a/include/global.h
++++ b/include/global.h
+@@ -51,6 +51,11 @@ const char *snd_asoundlib_version(void);
+ #define ATTRIBUTE_UNUSED __attribute__ ((__unused__))
+ #endif
+ 
++#ifndef __STRING
++/** \brief Return 'x' argument as string */
++#define __STRING(x)     #x
++#endif
++
+ #ifdef PIC /* dynamic build */
+ 
+ /** \hideinitializer \brief Helper macro for #SND_DLSYM_BUILD_VERSION. */
+@@ -71,11 +76,6 @@ struct snd_dlsym_link {
+ 
+ extern struct snd_dlsym_link *snd_dlsym_start;
+ 
+-#ifndef __STRING
+-/** \brief Return 'x' argument as string */
+-#define __STRING(x)     #x
+-#endif
+-
+ /** \hideinitializer \brief Helper macro for #SND_DLSYM_BUILD_VERSION. */
+ #define __SND_DLSYM_VERSION(prefix, name, version) _ ## prefix ## name ## version
+ /**
+
diff --git a/srcpkgs/alsa-lib/patches/ump-header-detection.patch b/srcpkgs/alsa-lib/patches/ump-header-detection.patch
new file mode 100644
index 0000000000000..efe9909fef912
--- /dev/null
+++ b/srcpkgs/alsa-lib/patches/ump-header-detection.patch
@@ -0,0 +1,15 @@
+# Fixes ump header detection when used by external programs
+# Upstream: https://github.com/alsa-project/alsa-lib/commit/fcce13a6726c52882bd8b7131c61c4eba308792c
+diff --git a/include/control.h b/include/control.h
+index ab482ba4..e7541d56 100644
+--- a/include/control.h
++++ b/include/control.h
+@@ -413,6 +413,8 @@ int snd_ctl_pcm_prefer_subdevice(snd_ctl_t *ctl, int subdev);
+ int snd_ctl_rawmidi_next_device(snd_ctl_t *ctl, int * device);
+ int snd_ctl_rawmidi_info(snd_ctl_t *ctl, snd_rawmidi_info_t * info);
+ int snd_ctl_rawmidi_prefer_subdevice(snd_ctl_t *ctl, int subdev);
++#endif
++#ifdef __ALSA_UMP_H
+ int snd_ctl_ump_next_device(snd_ctl_t *ctl, int *device);
+ int snd_ctl_ump_endpoint_info(snd_ctl_t *ctl, snd_ump_endpoint_info_t *info);
+ int snd_ctl_ump_block_info(snd_ctl_t *ctl, snd_ump_block_info_t *info);
diff --git a/srcpkgs/alsa-lib/template b/srcpkgs/alsa-lib/template
index 576745a852198..ce379c317b96f 100644
--- a/srcpkgs/alsa-lib/template
+++ b/srcpkgs/alsa-lib/template
@@ -1,6 +1,6 @@
 # Template file for 'alsa-lib'
 pkgname=alsa-lib
-version=1.2.9
+version=1.2.10
 revision=1
 build_style=gnu-configure
 hostmakedepends="pkg-config libtool"
@@ -8,8 +8,8 @@ short_desc="Advanced Linux Sound Architecture (ALSA) library"
 maintainer="cinerea0 <cinerea0@protonmail.com>"
 license="LGPL-2.1-or-later"
 homepage="http://www.alsa-project.org"
-distfiles="https://www.alsa-project.org/files/pub/lib/${pkgname}-${version}.tar.bz2"
-checksum=dc9c643fdc4ccfd0572cc685858dd41e08afb583f30460b317e4188275f615b2
+distfiles="https://www.alsa-project.org/files/pub/lib/alsa-lib-${version}.tar.bz2"
+checksum=c86a45a846331b1b0aa6e6be100be2a7aef92efd405cf6bac7eef8174baa920e
 
 alsa-lib-devel_package() {
 	depends="${sourcepkg}>=${version}_${revision}"

From cee97f8aff2ded32bdf4d16c2c6128a8d95937f0 Mon Sep 17 00:00:00 2001
From: cinerea0 <cinerea0@disroot.org>
Date: Mon, 11 Sep 2023 12:19:20 -0400
Subject: [PATCH 2/3] alsa-utils: update to 1.2.10

---
 srcpkgs/alsa-utils/template | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/srcpkgs/alsa-utils/template b/srcpkgs/alsa-utils/template
index 90cf5e61ec600..4ce3c088da079 100644
--- a/srcpkgs/alsa-utils/template
+++ b/srcpkgs/alsa-utils/template
@@ -1,6 +1,6 @@
 # Template file for 'alsa-utils'
 pkgname=alsa-utils
-version=1.2.9
+version=1.2.10
 revision=1
 build_style=gnu-configure
 configure_args="--with-udev-rules-dir=/usr/lib/udev/rules.d --disable-alsaconf
@@ -13,8 +13,10 @@ short_desc="Advanced Linux Sound Architecture (ALSA) utilities"
 maintainer="cinerea0 <cinerea0@protonmail.com>"
 license="GPL-2.0-only"
 homepage="http://www.alsa-project.org"
-distfiles="https://www.alsa-project.org/files/pub/utils/${pkgname}-${version}.tar.bz2"
-checksum=e7623d4525595f92e11ce25ee9a97f2040a14c6e4dcd027aa96e06cbce7817bd
+distfiles="https://www.alsa-project.org/files/pub/utils/alsa-utils-${version}.tar.bz2"
+checksum=104b62ec7f02a7ce16ca779f4815616df1cc21933503783a9107b5944f83063a
+
+export LC_ALL="C"
 
 post_install() {
 	# Install required udev rules file.

From b3270c2a1866621aa61752b350a242bed321dcb9 Mon Sep 17 00:00:00 2001
From: cinerea0 <cinerea0@disroot.org>
Date: Mon, 11 Sep 2023 12:19:36 -0400
Subject: [PATCH 3/3] alsa-ucm-conf: update to 1.2.10

---
 srcpkgs/alsa-ucm-conf/template | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/srcpkgs/alsa-ucm-conf/template b/srcpkgs/alsa-ucm-conf/template
index a965973cb1dce..d02f228895ef6 100644
--- a/srcpkgs/alsa-ucm-conf/template
+++ b/srcpkgs/alsa-ucm-conf/template
@@ -1,13 +1,13 @@
 # Template file for 'alsa-ucm-conf'
 pkgname=alsa-ucm-conf
-version=1.2.9
+version=1.2.10
 revision=1
 short_desc="ALSA Use Case Manager topology configurations"
 maintainer="cinerea0 <cinerea0@protonmail.com>"
 license="BSD-3-Clause"
 homepage="https://github.com/alsa-project/alsa-ucm-conf"
-distfiles="https://github.com/alsa-project/${pkgname}/archive/refs/tags/v${version}.tar.gz"
-checksum=1c40618161bc2738c55aab4dee1d0c82514e257116f296815a799adeaab5e48b
+distfiles="https://github.com/alsa-project/alsa-ucm-conf/archive/refs/tags/v${version}.tar.gz"
+checksum=00e67c31b60494665f45ce57ca9d2c42421c40fbe0140b5a5648291238e63508
 
 do_install() {
 	vdoc ucm2/README.md

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PR PATCH] [Updated] alsa-{lib,utils,ucm-conf}: update to 1.2.10
  2023-09-09  1:48 [PR PATCH] alsa-{lib,utils,ucm-conf}: update to 1.2.10 cinerea0
  2023-09-09  2:15 ` [PR PATCH] [Updated] " cinerea0
  2023-09-11 16:20 ` cinerea0
@ 2023-09-11 17:07 ` cinerea0
  2023-09-15 21:48 ` [PR PATCH] [Merged]: " Duncaen
  3 siblings, 0 replies; 5+ messages in thread
From: cinerea0 @ 2023-09-11 17:07 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 402 bytes --]

There is an updated pull request by cinerea0 against master on the void-packages repository

https://github.com/cinerea0/void-packages alsa
https://github.com/void-linux/void-packages/pull/45985

alsa-{lib,utils,ucm-conf}: update to 1.2.10
#### Testing the changes
- I tested the changes in this PR: **YES**


A patch file from https://github.com/void-linux/void-packages/pull/45985.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-alsa-45985.patch --]
[-- Type: text/x-diff, Size: 24671 bytes --]

From 6b2cf980fe963dfe3f65fb8e1a54f32c848aa0d0 Mon Sep 17 00:00:00 2001
From: cinerea0 <cinerea0@disroot.org>
Date: Mon, 11 Sep 2023 13:06:20 -0400
Subject: [PATCH 1/3] alsa-lib: update to 1.2.10

---
 .../alsa-lib/patches/move-string-macro.patch  | 31 +++++++++++++++++++
 .../patches/ump-header-detection.patch        | 15 +++++++++
 srcpkgs/alsa-lib/template                     |  6 ++--
 3 files changed, 49 insertions(+), 3 deletions(-)
 create mode 100644 srcpkgs/alsa-lib/patches/move-string-macro.patch
 create mode 100644 srcpkgs/alsa-lib/patches/ump-header-detection.patch

diff --git a/srcpkgs/alsa-lib/patches/move-string-macro.patch b/srcpkgs/alsa-lib/patches/move-string-macro.patch
new file mode 100644
index 0000000000000..98973c1e8a13b
--- /dev/null
+++ b/srcpkgs/alsa-lib/patches/move-string-macro.patch
@@ -0,0 +1,31 @@
+# Fixes compilation issue on musl
+# Upstream: https://github.com/alsa-project/alsa-lib/commit/10bd599970acc71c92f85eb08943eb8d3d702a9c
+diff --git a/include/global.h b/include/global.h
+index dfe9bc2b..3ecaeee8 100644
+--- a/include/global.h
++++ b/include/global.h
+@@ -51,6 +51,11 @@ const char *snd_asoundlib_version(void);
+ #define ATTRIBUTE_UNUSED __attribute__ ((__unused__))
+ #endif
+ 
++#ifndef __STRING
++/** \brief Return 'x' argument as string */
++#define __STRING(x)     #x
++#endif
++
+ #ifdef PIC /* dynamic build */
+ 
+ /** \hideinitializer \brief Helper macro for #SND_DLSYM_BUILD_VERSION. */
+@@ -71,11 +76,6 @@ struct snd_dlsym_link {
+ 
+ extern struct snd_dlsym_link *snd_dlsym_start;
+ 
+-#ifndef __STRING
+-/** \brief Return 'x' argument as string */
+-#define __STRING(x)     #x
+-#endif
+-
+ /** \hideinitializer \brief Helper macro for #SND_DLSYM_BUILD_VERSION. */
+ #define __SND_DLSYM_VERSION(prefix, name, version) _ ## prefix ## name ## version
+ /**
+
diff --git a/srcpkgs/alsa-lib/patches/ump-header-detection.patch b/srcpkgs/alsa-lib/patches/ump-header-detection.patch
new file mode 100644
index 0000000000000..efe9909fef912
--- /dev/null
+++ b/srcpkgs/alsa-lib/patches/ump-header-detection.patch
@@ -0,0 +1,15 @@
+# Fixes ump header detection when used by external programs
+# Upstream: https://github.com/alsa-project/alsa-lib/commit/fcce13a6726c52882bd8b7131c61c4eba308792c
+diff --git a/include/control.h b/include/control.h
+index ab482ba4..e7541d56 100644
+--- a/include/control.h
++++ b/include/control.h
+@@ -413,6 +413,8 @@ int snd_ctl_pcm_prefer_subdevice(snd_ctl_t *ctl, int subdev);
+ int snd_ctl_rawmidi_next_device(snd_ctl_t *ctl, int * device);
+ int snd_ctl_rawmidi_info(snd_ctl_t *ctl, snd_rawmidi_info_t * info);
+ int snd_ctl_rawmidi_prefer_subdevice(snd_ctl_t *ctl, int subdev);
++#endif
++#ifdef __ALSA_UMP_H
+ int snd_ctl_ump_next_device(snd_ctl_t *ctl, int *device);
+ int snd_ctl_ump_endpoint_info(snd_ctl_t *ctl, snd_ump_endpoint_info_t *info);
+ int snd_ctl_ump_block_info(snd_ctl_t *ctl, snd_ump_block_info_t *info);
diff --git a/srcpkgs/alsa-lib/template b/srcpkgs/alsa-lib/template
index 576745a852198..ce379c317b96f 100644
--- a/srcpkgs/alsa-lib/template
+++ b/srcpkgs/alsa-lib/template
@@ -1,6 +1,6 @@
 # Template file for 'alsa-lib'
 pkgname=alsa-lib
-version=1.2.9
+version=1.2.10
 revision=1
 build_style=gnu-configure
 hostmakedepends="pkg-config libtool"
@@ -8,8 +8,8 @@ short_desc="Advanced Linux Sound Architecture (ALSA) library"
 maintainer="cinerea0 <cinerea0@protonmail.com>"
 license="LGPL-2.1-or-later"
 homepage="http://www.alsa-project.org"
-distfiles="https://www.alsa-project.org/files/pub/lib/${pkgname}-${version}.tar.bz2"
-checksum=dc9c643fdc4ccfd0572cc685858dd41e08afb583f30460b317e4188275f615b2
+distfiles="https://www.alsa-project.org/files/pub/lib/alsa-lib-${version}.tar.bz2"
+checksum=c86a45a846331b1b0aa6e6be100be2a7aef92efd405cf6bac7eef8174baa920e
 
 alsa-lib-devel_package() {
 	depends="${sourcepkg}>=${version}_${revision}"

From dc5209d023cf089322a84ac23d38e4ffa43ada2c Mon Sep 17 00:00:00 2001
From: cinerea0 <cinerea0@disroot.org>
Date: Mon, 11 Sep 2023 13:06:48 -0400
Subject: [PATCH 2/3] alsa-utils: update to 1.2.10

---
 srcpkgs/alsa-utils/patches/musl.patch | 529 ++++++++++++++++++++++++++
 srcpkgs/alsa-utils/template           |   6 +-
 2 files changed, 532 insertions(+), 3 deletions(-)
 create mode 100644 srcpkgs/alsa-utils/patches/musl.patch

diff --git a/srcpkgs/alsa-utils/patches/musl.patch b/srcpkgs/alsa-utils/patches/musl.patch
new file mode 100644
index 0000000000000..8b17e886227cf
--- /dev/null
+++ b/srcpkgs/alsa-utils/patches/musl.patch
@@ -0,0 +1,529 @@
+# Upstream PR: https://github.com/alsa-project/alsa-utils/pull/234
+# u_int_* aren't standard, but uint* are. Use those instead for musl compat.
+# Fix setlocale() by adding include for ENABLE_NLS
+diff --git a/aplay/aplay.c b/aplay/aplay.c
+index f180d42b..4d578f3b 100644
+--- a/aplay/aplay.c
++++ b/aplay/aplay.c
+@@ -114,7 +114,7 @@ static int mmap_flag = 0;
+ static int interleaved = 1;
+ static int nonblock = 0;
+ static volatile sig_atomic_t in_aborting = 0;
+-static u_char *audiobuf = NULL;
++static unsigned char *audiobuf = NULL;
+ static snd_pcm_uframes_t chunk_size = 0;
+ static unsigned period_time = 0;
+ static unsigned buffer_time = 0;
+@@ -859,7 +859,7 @@ int main(int argc, char *argv[])
+ 	chunk_size = 1024;
+ 	hwparams = rhwparams;
+ 
+-	audiobuf = (u_char *)malloc(1024);
++	audiobuf = (unsigned char *)malloc(1024);
+ 	if (audiobuf == NULL) {
+ 		error(_("not enough memory"));
+ 		return 1;
+@@ -970,7 +970,7 @@ static int test_vocfile(void *buffer)
+  * helper for test_wavefile
+  */
+ 
+-static size_t test_wavefile_read(int fd, u_char *buffer, size_t *size, size_t reqsize, int line)
++static size_t test_wavefile_read(int fd, unsigned char *buffer, size_t *size, size_t reqsize, int line)
+ {
+ 	if (*size >= reqsize)
+ 		return *size;
+@@ -995,17 +995,17 @@ static size_t test_wavefile_read(int fd, u_char *buffer, size_t *size, size_t re
+  *                            == 0 if not
+  * Value returned is bytes to be discarded.
+  */
+-static ssize_t test_wavefile(int fd, u_char *_buffer, size_t size)
++static ssize_t test_wavefile(int fd, unsigned char *_buffer, size_t size)
+ {
+ 	WaveHeader *h = (WaveHeader *)_buffer;
+-	u_char *buffer = NULL;
++	unsigned char *buffer = NULL;
+ 	size_t blimit = 0;
+ 	WaveFmtBody *f;
+ 	WaveChunkHeader *c;
+-	u_int type, len;
++	unsigned int type, len;
+ 	unsigned short format, channels;
+ 	int big_endian, native_format;
+-	u_char vbps = 0;
++	unsigned char vbps = 0;
+ 
+ 	if (size < sizeof(WaveHeader))
+ 		return -1;
+@@ -1044,7 +1044,7 @@ static ssize_t test_wavefile(int fd, u_char *_buffer, size_t size)
+ 
+ 	if (len < sizeof(WaveFmtBody)) {
+ 		error(_("unknown length of 'fmt ' chunk (read %u, should be %u at least)"),
+-		      len, (u_int)sizeof(WaveFmtBody));
++		      len, (unsigned int)sizeof(WaveFmtBody));
+ 		prg_exit(EXIT_FAILURE);
+ 	}
+ 	check_wavefile_space(buffer, len, blimit);
+@@ -1055,7 +1055,7 @@ static ssize_t test_wavefile(int fd, u_char *_buffer, size_t size)
+ 		WaveFmtExtensibleBody *fe = (WaveFmtExtensibleBody*)buffer;
+ 		if (len < sizeof(WaveFmtExtensibleBody)) {
+ 			error(_("unknown length of extensible 'fmt ' chunk (read %u, should be %u at least)"),
+-					len, (u_int)sizeof(WaveFmtExtensibleBody));
++					len, (unsigned int)sizeof(WaveFmtExtensibleBody));
+ 			prg_exit(EXIT_FAILURE);
+ 		}
+ 		if (memcmp(fe->guid_tag, WAV_GUID_TAG, 14) != 0) {
+@@ -1167,7 +1167,7 @@ static ssize_t test_wavefile(int fd, u_char *_buffer, size_t size)
+ 	size -= len;
+ 	
+ 	while (1) {
+-		u_int type, len;
++		unsigned int type, len;
+ 
+ 		check_wavefile_space(buffer, sizeof(WaveChunkHeader), blimit);
+ 		test_wavefile_read(fd, buffer, &size, sizeof(WaveChunkHeader), __LINE__);
+@@ -1809,7 +1809,7 @@ static void print_vu_meter(signed int *perc, signed int *maxperc)
+ }
+ 
+ /* peak handler */
+-static void compute_max_peak(u_char *data, size_t samples)
++static void compute_max_peak(unsigned char *data, size_t samples)
+ {
+ 	signed int val, max, perc[2], max_peak[2];
+ 	static int run = 0;
+@@ -2054,9 +2054,9 @@ static void do_test_position(void)
+ /*
+  */
+ #ifdef CONFIG_SUPPORT_CHMAP
+-static u_char *remap_data(u_char *data, size_t count)
++static unsigned char *remap_data(unsigned char *data, size_t count)
+ {
+-	static u_char *tmp, *src, *dst;
++	static unsigned char *tmp, *src, *dst;
+ 	static size_t tmp_size;
+ 	size_t sample_bytes = bits_per_sample / 8;
+ 	size_t step = bits_per_frame / 8;
+@@ -2090,9 +2090,9 @@ static u_char *remap_data(u_char *data, size_t count)
+ 	return tmp;
+ }
+ 
+-static u_char **remap_datav(u_char **data, size_t count ATTRIBUTE_UNUSED)
++static unsigned char **remap_datav(unsigned char **data, size_t count ATTRIBUTE_UNUSED)
+ {
+-	static u_char **tmp;
++	static unsigned char **tmp;
+ 	unsigned int ch;
+ 
+ 	if (!hw_map)
+@@ -2118,7 +2118,7 @@ static u_char **remap_datav(u_char **data, size_t count ATTRIBUTE_UNUSED)
+  *  write function
+  */
+ 
+-static ssize_t pcm_write(u_char *data, size_t count)
++static ssize_t pcm_write(unsigned char *data, size_t count)
+ {
+ 	ssize_t r;
+ 	ssize_t result = 0;
+@@ -2157,7 +2157,7 @@ static ssize_t pcm_write(u_char *data, size_t count)
+ 	return result;
+ }
+ 
+-static ssize_t pcm_writev(u_char **data, unsigned int channels, size_t count)
++static ssize_t pcm_writev(unsigned char **data, unsigned int channels, size_t count)
+ {
+ 	ssize_t r;
+ 	size_t result = 0;
+@@ -2210,7 +2210,7 @@ static ssize_t pcm_writev(u_char **data, unsigned int channels, size_t count)
+  *  read function
+  */
+ 
+-static ssize_t pcm_read(u_char *data, size_t rcount)
++static ssize_t pcm_read(unsigned char *data, size_t rcount)
+ {
+ 	ssize_t r;
+ 	size_t result = 0;
+@@ -2252,7 +2252,7 @@ static ssize_t pcm_read(u_char *data, size_t rcount)
+ 	return result > rcount ? rcount : result;
+ }
+ 
+-static ssize_t pcm_readv(u_char **data, unsigned int channels, size_t rcount)
++static ssize_t pcm_readv(unsigned char **data, unsigned int channels, size_t rcount)
+ {
+ 	ssize_t r;
+ 	size_t result = 0;
+@@ -2304,7 +2304,7 @@ static ssize_t pcm_readv(u_char **data, unsigned int channels, size_t rcount)
+  *  ok, let's play a .voc file
+  */
+ 
+-static ssize_t voc_pcm_write(u_char *data, size_t count)
++static ssize_t voc_pcm_write(unsigned char *data, size_t count)
+ {
+ 	ssize_t result = count, r;
+ 	size_t size;
+@@ -2329,9 +2329,9 @@ static ssize_t voc_pcm_write(u_char *data, size_t count)
+ static void voc_write_silence(unsigned x)
+ {
+ 	unsigned l;
+-	u_char *buf;
++	unsigned char *buf;
+ 
+-	buf = (u_char *) malloc(chunk_bytes);
++	buf = (unsigned char *) malloc(chunk_bytes);
+ 	if (buf == NULL) {
+ 		error(_("can't allocate buffer for silence"));
+ 		return;		/* not fatal error */
+@@ -2372,15 +2372,15 @@ static void voc_play(int fd, int ofs, char *name)
+ 	VocVoiceData *vd;
+ 	VocExtBlock *eb;
+ 	size_t nextblock, in_buffer;
+-	u_char *data, *buf;
++	unsigned char *data, *buf;
+ 	char was_extended = 0, output = 0;
+-	u_short *sp, repeat = 0;
++	unsigned short *sp, repeat = 0;
+ 	off_t filepos = 0;
+ 
+ #define COUNT(x)	nextblock -= x; in_buffer -= x; data += x
+ #define COUNT1(x)	in_buffer -= x; data += x
+ 
+-	data = buf = (u_char *)malloc(64 * 1024);
++	data = buf = (unsigned char *)malloc(64 * 1024);
+ 	buffer_pos = 0;
+ 	if (data == NULL) {
+ 		error(_("malloc error"));
+@@ -2472,8 +2472,8 @@ static void voc_play(int fd, int ofs, char *name)
+ #endif
+ 				break;
+ 			case 3:	/* a silence block, no data, only a count */
+-				sp = (u_short *) data;
+-				COUNT1(sizeof(u_short));
++				sp = (unsigned short *) data;
++				COUNT1(sizeof(unsigned short));
+ 				hwparams.rate = (int) (*data);
+ 				COUNT1(1);
+ 				hwparams.rate = 1000000 / (256 - hwparams.rate);
+@@ -2488,8 +2488,8 @@ static void voc_play(int fd, int ofs, char *name)
+ 				voc_write_silence(*sp);
+ 				break;
+ 			case 4:	/* a marker for syncronisation, no effect */
+-				sp = (u_short *) data;
+-				COUNT1(sizeof(u_short));
++				sp = (unsigned short *) data;
++				COUNT1(sizeof(unsigned short));
+ #if 0
+ 				d_printf("Marker %d\n", *sp);
+ #endif
+@@ -2503,8 +2503,8 @@ static void voc_play(int fd, int ofs, char *name)
+ 			case 6:	/* repeat marker, says repeatcount */
+ 				/* my specs don't say it: maybe this can be recursive, but
+ 				   I don't think somebody use it */
+-				repeat = *(u_short *) data;
+-				COUNT1(sizeof(u_short));
++				repeat = *(unsigned short *) data;
++				COUNT1(sizeof(unsigned short));
+ #if 0
+ 				d_printf("Repeat loop %d times\n", repeat);
+ #endif
+@@ -2649,14 +2649,14 @@ static void begin_voc(int fd, size_t cnt)
+ 	}
+ 	bt.type = 1;
+ 	cnt += sizeof(VocVoiceData);	/* Channel_data block follows */
+-	bt.datalen = (u_char) (cnt & 0xFF);
+-	bt.datalen_m = (u_char) ((cnt & 0xFF00) >> 8);
+-	bt.datalen_h = (u_char) ((cnt & 0xFF0000) >> 16);
++	bt.datalen = (unsigned char) (cnt & 0xFF);
++	bt.datalen_m = (unsigned char) ((cnt & 0xFF00) >> 8);
++	bt.datalen_h = (unsigned char) ((cnt & 0xFF0000) >> 16);
+ 	if (xwrite(fd, &bt, sizeof(VocBlockType)) != sizeof(VocBlockType)) {
+ 		error(_("write error"));
+ 		prg_exit(EXIT_FAILURE);
+ 	}
+-	vd.tc = (u_char) (256 - (1000000 / hwparams.rate));
++	vd.tc = (unsigned char) (256 - (1000000 / hwparams.rate));
+ 	vd.pack = 0;
+ 	if (xwrite(fd, &vd, sizeof(VocVoiceData)) != sizeof(VocVoiceData)) {
+ 		error(_("write error"));
+@@ -2671,8 +2671,8 @@ static void begin_wave(int fd, size_t cnt)
+ 	WaveFmtBody f;
+ 	WaveChunkHeader cf, cd;
+ 	int bits;
+-	u_int tmp;
+-	u_short tmp2;
++	unsigned int tmp;
++	unsigned short tmp2;
+ 
+ 	/* WAVE cannot handle greater than 32bit (signed?) int */
+ 	if (cnt == (size_t)-2)
+@@ -2715,11 +2715,11 @@ static void begin_wave(int fd, size_t cnt)
+ #if 0
+ 	tmp2 = (samplesize == 8) ? 1 : 2;
+ 	f.byte_p_spl = LE_SHORT(tmp2);
+-	tmp = dsp_speed * hwparams.channels * (u_int) tmp2;
++	tmp = dsp_speed * hwparams.channels * (unsigned int) tmp2;
+ #else
+ 	tmp2 = hwparams.channels * snd_pcm_format_physical_width(hwparams.format) / 8;
+ 	f.byte_p_spl = LE_SHORT(tmp2);
+-	tmp = (u_int) tmp2 * hwparams.rate;
++	tmp = (unsigned int) tmp2 * hwparams.rate;
+ #endif
+ 	f.byte_p_sec = LE_INT(tmp);
+ 	f.bit_p_spl = LE_SHORT(bits);
+@@ -2786,9 +2786,9 @@ static void end_voc(int fd)
+ 	cnt += sizeof(VocVoiceData);	/* Channel_data block follows */
+ 	if (cnt > 0x00ffffff)
+ 		cnt = 0x00ffffff;
+-	bt.datalen = (u_char) (cnt & 0xFF);
+-	bt.datalen_m = (u_char) ((cnt & 0xFF00) >> 8);
+-	bt.datalen_h = (u_char) ((cnt & 0xFF0000) >> 16);
++	bt.datalen = (unsigned char) (cnt & 0xFF);
++	bt.datalen_m = (unsigned char) ((cnt & 0xFF00) >> 8);
++	bt.datalen_h = (unsigned char) ((cnt & 0xFF0000) >> 16);
+ 	if (lseek(fd, length_seek, SEEK_SET) == length_seek)
+ 		xwrite(fd, &bt, sizeof(VocBlockType));
+ }
+@@ -2798,7 +2798,7 @@ static void end_wave(int fd)
+ 	WaveChunkHeader cd;
+ 	off_t length_seek;
+ 	off_t filelen;
+-	u_int rifflen;
++	unsigned int rifflen;
+ 	
+ 	length_seek = sizeof(WaveHeader) +
+ 		      sizeof(WaveChunkHeader) +
+@@ -3339,7 +3339,7 @@ static void playbackv_go(int* fds, unsigned int channels, size_t loaded, off_t c
+ 	size_t vsize;
+ 
+ 	unsigned int channel;
+-	u_char *bufs[channels];
++	unsigned char *bufs[channels];
+ 
+ 	header(rtype, names[0]);
+ 	set_params();
+@@ -3393,7 +3393,7 @@ static void capturev_go(int* fds, unsigned int channels, off_t count, int rtype,
+ 	ssize_t r;
+ 	unsigned int channel;
+ 	size_t vsize;
+-	u_char *bufs[channels];
++	unsigned char *bufs[channels];
+ 
+ 	header(rtype, names[0]);
+ 	set_params();
+diff --git a/aplay/formats.h b/aplay/formats.h
+index 093ab809..a3cf6cba 100644
+--- a/aplay/formats.h
++++ b/aplay/formats.h
+@@ -17,28 +17,28 @@
+                          	((u_long)(bp->datalen_h) << 16) )
+ 
+ typedef struct voc_header {
+-	u_char magic[20];	/* must be MAGIC_STRING */
+-	u_short headerlen;	/* Headerlength, should be 0x1A */
+-	u_short version;	/* VOC-file version */
+-	u_short coded_ver;	/* 0x1233-version */
++	unsigned char magic[20];	/* must be MAGIC_STRING */
++	unsigned short headerlen;	/* Headerlength, should be 0x1A */
++	unsigned short version;	/* VOC-file version */
++	unsigned short coded_ver;	/* 0x1233-version */
+ } VocHeader;
+ 
+ typedef struct voc_blocktype {
+-	u_char type;
+-	u_char datalen;		/* low-byte    */
+-	u_char datalen_m;	/* medium-byte */
+-	u_char datalen_h;	/* high-byte   */
++	unsigned char type;
++	unsigned char datalen;		/* low-byte    */
++	unsigned char datalen_m;	/* medium-byte */
++	unsigned char datalen_h;	/* high-byte   */
+ } VocBlockType;
+ 
+ typedef struct voc_voice_data {
+-	u_char tc;
+-	u_char pack;
++	unsigned char tc;
++	unsigned char pack;
+ } VocVoiceData;
+ 
+ typedef struct voc_ext_block {
+-	u_short tc;
+-	u_char pack;
+-	u_char mode;
++	unsigned short tc;
++	unsigned char pack;
++	unsigned char mode;
+ } VocExtBlock;
+ 
+ /* Definitions for Microsoft WAVE format */
+@@ -85,32 +85,32 @@ typedef struct voc_ext_block {
+    it works on all WAVE-file I have
+  */
+ typedef struct {
+-	u_int magic;		/* 'RIFF' */
+-	u_int length;		/* filelen */
+-	u_int type;		/* 'WAVE' */
++	unsigned int magic;		/* 'RIFF' */
++	unsigned int length;		/* filelen */
++	unsigned int type;		/* 'WAVE' */
+ } WaveHeader;
+ 
+ typedef struct {
+-	u_short format;		/* see WAV_FMT_* */
+-	u_short channels;
+-	u_int sample_fq;	/* frequence of sample */
+-	u_int byte_p_sec;
+-	u_short byte_p_spl;	/* samplesize; 1 or 2 bytes */
+-	u_short bit_p_spl;	/* 8, 12 or 16 bit */
++	unsigned short format;		/* see WAV_FMT_* */
++	unsigned short channels;
++	unsigned int sample_fq;	/* frequence of sample */
++	unsigned int byte_p_sec;
++	unsigned short byte_p_spl;	/* samplesize; 1 or 2 bytes */
++	unsigned short bit_p_spl;	/* 8, 12 or 16 bit */
+ } WaveFmtBody;
+ 
+ typedef struct {
+ 	WaveFmtBody format;
+-	u_short ext_size;
+-	u_short bit_p_spl;
+-	u_int channel_mask;
+-	u_short guid_format;	/* WAV_FMT_* */
+-	u_char guid_tag[14];	/* WAV_GUID_TAG */
++	unsigned short ext_size;
++	unsigned short bit_p_spl;
++	unsigned int channel_mask;
++	unsigned short guid_format;	/* WAV_FMT_* */
++	unsigned char guid_tag[14];	/* WAV_GUID_TAG */
+ } WaveFmtExtensibleBody;
+ 
+ typedef struct {
+-	u_int type;		/* 'data' */
+-	u_int length;		/* samplecount */
++	unsigned int type;		/* 'data' */
++	unsigned int length;		/* samplecount */
+ } WaveChunkHeader;
+ 
+ /* Definitions for Sparc .au header */
+@@ -122,12 +122,12 @@ typedef struct {
+ #define AU_FMT_LIN16		3
+ 
+ typedef struct au_header {
+-	u_int magic;		/* '.snd' */
+-	u_int hdr_size;		/* size of header (min 24) */
+-	u_int data_size;	/* size of data */
+-	u_int encoding;		/* see to AU_FMT_XXXX */
+-	u_int sample_rate;	/* sample rate */
+-	u_int channels;		/* number of channels (voices) */
++	unsigned int magic;		/* '.snd' */
++	unsigned int hdr_size;		/* size of header (min 24) */
++	unsigned int data_size;	/* size of data */
++	unsigned int encoding;		/* see to AU_FMT_XXXX */
++	unsigned int sample_rate;	/* sample rate */
++	unsigned int channels;		/* number of channels (voices) */
+ } AuHeader;
+ 
+ #endif				/* FORMATS */
+
+diff --git a/nhlt/nhlt-dmic-info.c b/nhlt/nhlt-dmic-info.c
+index 3f6c64d9..f1b08574 100644
+--- a/nhlt/nhlt-dmic-info.c
++++ b/nhlt/nhlt-dmic-info.c
+@@ -45,7 +45,7 @@ int debug = 0;
+ #define NHLT_EP_HDR_SIZE (4 + 1 + 1 + 2 + 2 + 2 + 4 + 1 + 1 + 1)
+ #define VENDOR_MIC_CFG_SIZE (1 + 1 + 2 + 2 + 2 + 1 + 1 + 2 + 2 + 2 + 2 + 2 + 2)
+ 
+-static const char *microphone_type(u_int8_t type)
++static const char *microphone_type(uint8_t type)
+ {
+ 	switch (type) {
+ 	case 0: return "omnidirectional";
+@@ -59,7 +59,7 @@ static const char *microphone_type(u_int8_t type)
+ 	return "unknown";
+ }
+ 
+-static const char *microphone_location(u_int8_t location)
++static const char *microphone_location(uint8_t location)
+ {
+ 	switch (location) {
+ 	case 0: return "laptop-top-panel";
+@@ -73,21 +73,21 @@ static const char *microphone_location(u_int8_t location)
+ }
+ 
+ 
+-static inline u_int8_t get_u8(u_int8_t *base, u_int32_t off)
++static inline uint8_t get_u8(uint8_t *base, uint32_t off)
+ {
+ 	return *(base + off);
+ }
+ 
+-static inline int32_t get_s16le(u_int8_t *base, u_int32_t off)
++static inline int32_t get_s16le(uint8_t *base, uint32_t off)
+ {
+-	u_int32_t v =  *(base + off + 0) |
++	uint32_t v =  *(base + off + 0) |
+ 		      (*(base + off + 1) << 8);
+ 	if (v & 0x8000)
+ 		return -((int32_t)0x10000 - (int32_t)v);
+ 	return v;
+ }
+ 
+-static inline u_int32_t get_u32le(u_int8_t *base, u_int32_t off)
++static inline uint32_t get_u32le(uint8_t *base, uint32_t off)
+ {
+ 	return   *(base + off + 0) |
+ 		(*(base + off + 1) << 8) |
+@@ -137,10 +137,10 @@ static int nhlt_dmic_config(FILE *out, uint8_t *dmic, uint8_t mic)
+ 	return 0;
+ }
+ 
+-static int nhlt_dmic_ep_to_json(FILE *out, uint8_t *ep, u_int32_t ep_size)
++static int nhlt_dmic_ep_to_json(FILE *out, uint8_t *ep, uint32_t ep_size)
+ {
+-	u_int32_t off, specific_cfg_size;
+-	u_int8_t config_type, array_type, mic, num_mics;
++	uint32_t off, specific_cfg_size;
++	uint8_t config_type, array_type, mic, num_mics;
+ 	int res;
+ 
+ 	off = NHLT_EP_HDR_SIZE;
+@@ -181,15 +181,15 @@ static int nhlt_dmic_ep_to_json(FILE *out, uint8_t *ep, u_int32_t ep_size)
+ 	return -EINVAL;
+ }
+ 
+-static int nhlt_table_to_json(FILE *out, u_int8_t *nhlt, u_int32_t size)
++static int nhlt_table_to_json(FILE *out, uint8_t *nhlt, uint32_t size)
+ {
+-	u_int32_t _size, off, ep_size;
+-	u_int8_t sum = 0, ep, ep_count, link_type, dmics = 0;
++	uint32_t _size, off, ep_size;
++	uint8_t sum = 0, ep, ep_count, link_type, dmics = 0;
+ 	int res;
+ 
+ 	_size = get_u32le(nhlt, 4);
+ 	if (_size != size) {
+-		fprintf(stderr, "Table size mismatch (%08x != %08x)\n", _size, (u_int32_t)size);
++		fprintf(stderr, "Table size mismatch (%08x != %08x)\n", _size, (uint32_t)size);
+ 		return -EINVAL;
+ 	}
+ 	for (off = 0; off < size; off++)
+@@ -231,7 +231,7 @@ static int nhlt_table_to_json(FILE *out, u_int8_t *nhlt, u_int32_t size)
+ static int nhlt_to_json(FILE *out, const char *nhlt_file)
+ {
+ 	struct stat st;
+-	u_int8_t *buf;
++	uint8_t *buf;
+ 	int _errno, fd, res;
+ 	size_t pos, size;
+ 	ssize_t ret;
+diff --git a/topology/topology.c b/topology/topology.c
+index 1840ffe6..98b000aa 100644
+--- a/topology/topology.c
++++ b/topology/topology.c
+@@ -36,6 +36,9 @@
+ #include <alsa/asoundlib.h>
+ #include <alsa/topology.h>
+ #include "gettext.h"
++#ifdef ENABLE_NLS
++#include <locale.h>
++#endif
+ #include "version.h"
+ #include "topology.h"
+ 
diff --git a/srcpkgs/alsa-utils/template b/srcpkgs/alsa-utils/template
index 90cf5e61ec600..1206c2e1b2324 100644
--- a/srcpkgs/alsa-utils/template
+++ b/srcpkgs/alsa-utils/template
@@ -1,6 +1,6 @@
 # Template file for 'alsa-utils'
 pkgname=alsa-utils
-version=1.2.9
+version=1.2.10
 revision=1
 build_style=gnu-configure
 configure_args="--with-udev-rules-dir=/usr/lib/udev/rules.d --disable-alsaconf
@@ -13,8 +13,8 @@ short_desc="Advanced Linux Sound Architecture (ALSA) utilities"
 maintainer="cinerea0 <cinerea0@protonmail.com>"
 license="GPL-2.0-only"
 homepage="http://www.alsa-project.org"
-distfiles="https://www.alsa-project.org/files/pub/utils/${pkgname}-${version}.tar.bz2"
-checksum=e7623d4525595f92e11ce25ee9a97f2040a14c6e4dcd027aa96e06cbce7817bd
+distfiles="https://www.alsa-project.org/files/pub/utils/alsa-utils-${version}.tar.bz2"
+checksum=104b62ec7f02a7ce16ca779f4815616df1cc21933503783a9107b5944f83063a
 
 post_install() {
 	# Install required udev rules file.

From 80824d01c8683c73b381603dd906537eb2d09e63 Mon Sep 17 00:00:00 2001
From: cinerea0 <cinerea0@disroot.org>
Date: Mon, 11 Sep 2023 13:07:08 -0400
Subject: [PATCH 3/3] alsa-ucm-conf: update to 1.2.10

---
 srcpkgs/alsa-ucm-conf/template | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/srcpkgs/alsa-ucm-conf/template b/srcpkgs/alsa-ucm-conf/template
index a965973cb1dce..d02f228895ef6 100644
--- a/srcpkgs/alsa-ucm-conf/template
+++ b/srcpkgs/alsa-ucm-conf/template
@@ -1,13 +1,13 @@
 # Template file for 'alsa-ucm-conf'
 pkgname=alsa-ucm-conf
-version=1.2.9
+version=1.2.10
 revision=1
 short_desc="ALSA Use Case Manager topology configurations"
 maintainer="cinerea0 <cinerea0@protonmail.com>"
 license="BSD-3-Clause"
 homepage="https://github.com/alsa-project/alsa-ucm-conf"
-distfiles="https://github.com/alsa-project/${pkgname}/archive/refs/tags/v${version}.tar.gz"
-checksum=1c40618161bc2738c55aab4dee1d0c82514e257116f296815a799adeaab5e48b
+distfiles="https://github.com/alsa-project/alsa-ucm-conf/archive/refs/tags/v${version}.tar.gz"
+checksum=00e67c31b60494665f45ce57ca9d2c42421c40fbe0140b5a5648291238e63508
 
 do_install() {
 	vdoc ucm2/README.md

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PR PATCH] [Merged]: alsa-{lib,utils,ucm-conf}: update to 1.2.10
  2023-09-09  1:48 [PR PATCH] alsa-{lib,utils,ucm-conf}: update to 1.2.10 cinerea0
                   ` (2 preceding siblings ...)
  2023-09-11 17:07 ` cinerea0
@ 2023-09-15 21:48 ` Duncaen
  3 siblings, 0 replies; 5+ messages in thread
From: Duncaen @ 2023-09-15 21:48 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 247 bytes --]

There's a merged pull request on the void-packages repository

alsa-{lib,utils,ucm-conf}: update to 1.2.10
https://github.com/void-linux/void-packages/pull/45985

Description:
#### Testing the changes
- I tested the changes in this PR: **YES**


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2023-09-15 21:48 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-09-09  1:48 [PR PATCH] alsa-{lib,utils,ucm-conf}: update to 1.2.10 cinerea0
2023-09-09  2:15 ` [PR PATCH] [Updated] " cinerea0
2023-09-11 16:20 ` cinerea0
2023-09-11 17:07 ` cinerea0
2023-09-15 21:48 ` [PR PATCH] [Merged]: " Duncaen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).