all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [bug#47947] [PATCH 0/5] Add alsa-ucm-conf and alsa-topology-conf.
@ 2021-04-22  9:52 Mathieu Othacehe
  2021-04-22  9:54 ` [bug#47947] [PATCH 1/5] gnu: Add alsa-ucm-conf Mathieu Othacehe
  2021-05-13 15:32 ` bug#47947: [PATCH 0/5] Add alsa-ucm-conf and alsa-topology-conf Mathieu Othacehe
  0 siblings, 2 replies; 7+ messages in thread
From: Mathieu Othacehe @ 2021-04-22  9:52 UTC (permalink / raw)
  To: 47947; +Cc: Mathieu Othacehe

Hello,

This patchset adds alsa-ucm-conf and alsa-topology-conf conf packages. It also
modifies the alsa-lib package to include references to those packages.

They are required on recent hardware such as Lenovo X1 to have a functional
audio setup.

Those changes are targeting the core-updates branch.

Thanks,

Mathieu

Mathieu Othacehe (5):
  gnu: Add alsa-ucm-conf.
  gnu: Add alsa-topology-conf.
  gnu: alsa-lib: Use alsa-ucm-conf and alsa-topology-conf.
  gnu: alsa-lib: Update the home-page.
  gnu: alsa-lib: Fix the indentation.

 gnu/packages/linux.scm | 93 +++++++++++++++++++++++++++++++++++++-----
 1 file changed, 83 insertions(+), 10 deletions(-)

-- 
2.31.1





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

* [bug#47947] [PATCH 1/5] gnu: Add alsa-ucm-conf.
  2021-04-22  9:52 [bug#47947] [PATCH 0/5] Add alsa-ucm-conf and alsa-topology-conf Mathieu Othacehe
@ 2021-04-22  9:54 ` Mathieu Othacehe
  2021-04-22  9:54   ` [bug#47947] [PATCH 2/5] gnu: Add alsa-topology-conf Mathieu Othacehe
                     ` (3 more replies)
  2021-05-13 15:32 ` bug#47947: [PATCH 0/5] Add alsa-ucm-conf and alsa-topology-conf Mathieu Othacehe
  1 sibling, 4 replies; 7+ messages in thread
From: Mathieu Othacehe @ 2021-04-22  9:54 UTC (permalink / raw)
  To: 47947; +Cc: Mathieu Othacehe

* gnu/packages/linux.scm (alsa-ucm-conf): New variable.
---
 gnu/packages/linux.scm | 28 +++++++++++++++++++++++++++-
 1 file changed, 27 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm
index 1ea9d80834..576636414e 100644
--- a/gnu/packages/linux.scm
+++ b/gnu/packages/linux.scm
@@ -22,7 +22,7 @@
 ;;; Copyright © 2017, 2018, 2020 Leo Famulari <leo@famulari.name>
 ;;; Copyright © 2017 José Miguel Sánchez García <jmi2k@openmailbox.com>
 ;;; Copyright © 2017 Gábor Boskovits <boskovits@gmail.com>
-;;; Copyright © 2017, 2019 Mathieu Othacehe <m.othacehe@gmail.com>
+;;; Copyright © 2017, 2019, 2021 Mathieu Othacehe <othacehe@gnu.org>
 ;;; Copyright © 2017 Clément Lassieur <clement@lassieur.org>
 ;;; Copyright © 2017, 2018, 2019 Rutger Helling <rhelling@mykolab.com>
 ;;; Copyright © 2017 nee <nee-git@hidamari.blue>
@@ -145,6 +145,7 @@
   #:use-module (gnu packages selinux)
   #:use-module (gnu packages swig)
   #:use-module (guix build-system cmake)
+  #:use-module (guix build-system copy)
   #:use-module (guix build-system gnu)
   #:use-module (guix build-system go)
   #:use-module (guix build-system meson)
@@ -2133,6 +2134,31 @@ an executed process and the signals received by that process.  It can also
 intercept and print the system calls executed by the program.")
     (license license:gpl2+)))
 
+(define-public alsa-ucm-conf
+  (package
+    (name "alsa-ucm-conf")
+    (version "1.2.4")
+    (source (origin
+              (method url-fetch)
+              (uri (string-append
+                    "ftp://ftp.alsa-project.org/pub/lib/" name "-"
+                    version ".tar.bz2"))
+              (sha256
+               (base32
+                "0h6kzi1cfdqyxp4pwpqh5wb89c8s9wrgix315bvamffwfxf56frc"))))
+    (build-system copy-build-system)
+    (arguments
+     '(#:install-plan
+       '(("ucm" "share/alsa/ucm")
+         ("ucm2" "share/alsa/ucm2"))))
+    (home-page "https://www.alsa-project.org/wiki/Main_Page")
+    (synopsis "The Advanced Linux Sound Architecture Use Case Manager")
+    (description
+     "This package contains Advanced Linux Sound Architecture Use Case Manager
+configuration of audio input/output names and routing for specific audio
+hardware.")
+    (license license:bsd-3)))
+
 (define-public alsa-lib
   (package
     (name "alsa-lib")
-- 
2.31.1





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

* [bug#47947] [PATCH 2/5] gnu: Add alsa-topology-conf.
  2021-04-22  9:54 ` [bug#47947] [PATCH 1/5] gnu: Add alsa-ucm-conf Mathieu Othacehe
@ 2021-04-22  9:54   ` Mathieu Othacehe
  2021-04-22  9:54   ` [bug#47947] [PATCH 3/5] gnu: alsa-lib: Use alsa-ucm-conf and alsa-topology-conf Mathieu Othacehe
                     ` (2 subsequent siblings)
  3 siblings, 0 replies; 7+ messages in thread
From: Mathieu Othacehe @ 2021-04-22  9:54 UTC (permalink / raw)
  To: 47947; +Cc: Mathieu Othacehe

* gnu/packages/linux.scm (alsa-topology-conf): New variable.
---
 gnu/packages/linux.scm | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)

diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm
index 576636414e..b60e6ad392 100644
--- a/gnu/packages/linux.scm
+++ b/gnu/packages/linux.scm
@@ -2159,6 +2159,29 @@ configuration of audio input/output names and routing for specific audio
 hardware.")
     (license license:bsd-3)))
 
+(define-public alsa-topology-conf
+  (package
+    (name "alsa-topology-conf")
+    (version "1.2.4")
+    (source (origin
+              (method url-fetch)
+              (uri (string-append
+                    "ftp://ftp.alsa-project.org/pub/lib/" name "-"
+                    version ".tar.bz2"))
+              (sha256
+               (base32
+                "01zdg6q4s6d01k39z96wi4vbhrfw1i2g4yi5dijwfk6a5vjfdq2m"))))
+    (build-system copy-build-system)
+    (arguments
+     '(#:install-plan
+       '(("topology" "share/alsa/topology"))))
+    (home-page "https://www.alsa-project.org/wiki/Main_Page")
+    (synopsis "The Advanced Linux Sound Architecture libraries")
+    (description
+     "This package contains Advanced Linux Sound Architecture topology
+configuration files that can be used for specific audio hardware.")
+    (license license:bsd-3)))
+
 (define-public alsa-lib
   (package
     (name "alsa-lib")
-- 
2.31.1





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

* [bug#47947] [PATCH 3/5] gnu: alsa-lib: Use alsa-ucm-conf and alsa-topology-conf.
  2021-04-22  9:54 ` [bug#47947] [PATCH 1/5] gnu: Add alsa-ucm-conf Mathieu Othacehe
  2021-04-22  9:54   ` [bug#47947] [PATCH 2/5] gnu: Add alsa-topology-conf Mathieu Othacehe
@ 2021-04-22  9:54   ` Mathieu Othacehe
  2021-04-22  9:54   ` [bug#47947] [PATCH 4/5] gnu: alsa-lib: Update the home-page Mathieu Othacehe
  2021-04-22  9:54   ` [bug#47947] [PATCH 5/5] gnu: alsa-lib: Fix the indentation Mathieu Othacehe
  3 siblings, 0 replies; 7+ messages in thread
From: Mathieu Othacehe @ 2021-04-22  9:54 UTC (permalink / raw)
  To: 47947; +Cc: Mathieu Othacehe

* gnu/packages/linux.scm (alsa)[arguments]: Add a pre-install phase that
creates symlinks to alsa-ucm-conf and alsa-topology-conf files.
---
 gnu/packages/linux.scm | 26 +++++++++++++++++++++++++-
 1 file changed, 25 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm
index b60e6ad392..e5fe79b4b6 100644
--- a/gnu/packages/linux.scm
+++ b/gnu/packages/linux.scm
@@ -2198,7 +2198,31 @@ configuration files that can be used for specific audio hardware.")
     (arguments
      '(#:configure-flags (list (string-append "LDFLAGS=-Wl,-rpath="
                                               (assoc-ref %outputs "out")
-                                              "/lib"))))
+                                              "/lib"))
+       #:phases
+       (modify-phases %standard-phases
+         (add-before 'install 'pre-install
+           (lambda* (#:key inputs outputs #:allow-other-keys)
+             (let* ((ucm
+                     (string-append (assoc-ref inputs "alsa-ucm-conf")))
+                    (topology
+                     (string-append (assoc-ref inputs "alsa-topology-conf")))
+                    (alsa
+                     (string-append (assoc-ref outputs "out") "/share/alsa"))
+                    (ucm-share
+                     (string-append ucm "/share/alsa/ucm"))
+                    (ucm2-share
+                     (string-append ucm "/share/alsa/ucm2"))
+                    (topology-share
+                     (string-append topology "/share/alsa/topology")))
+               (mkdir-p alsa)
+               (symlink ucm-share (string-append alsa "/ucm"))
+               (symlink ucm2-share (string-append alsa "/ucm2"))
+               (symlink topology-share (string-append alsa "/topology")))
+             #t)))))
+    (inputs
+     `(("alsa-ucm-conf" ,alsa-ucm-conf)
+       ("alsa-topology-conf" ,alsa-topology-conf)))
     (home-page "https://www.alsa-project.org/")
     (synopsis "The Advanced Linux Sound Architecture libraries")
     (description
-- 
2.31.1





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

* [bug#47947] [PATCH 4/5] gnu: alsa-lib: Update the home-page.
  2021-04-22  9:54 ` [bug#47947] [PATCH 1/5] gnu: Add alsa-ucm-conf Mathieu Othacehe
  2021-04-22  9:54   ` [bug#47947] [PATCH 2/5] gnu: Add alsa-topology-conf Mathieu Othacehe
  2021-04-22  9:54   ` [bug#47947] [PATCH 3/5] gnu: alsa-lib: Use alsa-ucm-conf and alsa-topology-conf Mathieu Othacehe
@ 2021-04-22  9:54   ` Mathieu Othacehe
  2021-04-22  9:54   ` [bug#47947] [PATCH 5/5] gnu: alsa-lib: Fix the indentation Mathieu Othacehe
  3 siblings, 0 replies; 7+ messages in thread
From: Mathieu Othacehe @ 2021-04-22  9:54 UTC (permalink / raw)
  To: 47947; +Cc: Mathieu Othacehe

* gnu/packages/linux.scm (alsa-lib)[home-page]: Update it.
---
 gnu/packages/linux.scm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm
index e5fe79b4b6..9c5bca49c3 100644
--- a/gnu/packages/linux.scm
+++ b/gnu/packages/linux.scm
@@ -2223,7 +2223,7 @@ configuration files that can be used for specific audio hardware.")
     (inputs
      `(("alsa-ucm-conf" ,alsa-ucm-conf)
        ("alsa-topology-conf" ,alsa-topology-conf)))
-    (home-page "https://www.alsa-project.org/")
+    (home-page "https://www.alsa-project.org/wiki/Main_Page")
     (synopsis "The Advanced Linux Sound Architecture libraries")
     (description
      "The Advanced Linux Sound Architecture (ALSA) provides audio and
-- 
2.31.1





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

* [bug#47947] [PATCH 5/5] gnu: alsa-lib: Fix the indentation.
  2021-04-22  9:54 ` [bug#47947] [PATCH 1/5] gnu: Add alsa-ucm-conf Mathieu Othacehe
                     ` (2 preceding siblings ...)
  2021-04-22  9:54   ` [bug#47947] [PATCH 4/5] gnu: alsa-lib: Update the home-page Mathieu Othacehe
@ 2021-04-22  9:54   ` Mathieu Othacehe
  3 siblings, 0 replies; 7+ messages in thread
From: Mathieu Othacehe @ 2021-04-22  9:54 UTC (permalink / raw)
  To: 47947; +Cc: Mathieu Othacehe

* gnu/packages/linux.scm (alsa-lib): Fix the indentation.
---
 gnu/packages/linux.scm | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm
index 9c5bca49c3..35db28ca5a 100644
--- a/gnu/packages/linux.scm
+++ b/gnu/packages/linux.scm
@@ -2187,13 +2187,13 @@ configuration files that can be used for specific audio hardware.")
     (name "alsa-lib")
     (version "1.2.4")
     (source (origin
-             (method url-fetch)
-             (uri (string-append
-                   "ftp://ftp.alsa-project.org/pub/lib/alsa-lib-"
-                   version ".tar.bz2"))
-             (sha256
-              (base32
-               "1xq8d48wfy59qw4x7383j32n8j5njndw5hcgnmlg9pvclphlnmgp"))))
+              (method url-fetch)
+              (uri (string-append
+                    "ftp://ftp.alsa-project.org/pub/lib/alsa-lib-"
+                    version ".tar.bz2"))
+              (sha256
+               (base32
+                "1xq8d48wfy59qw4x7383j32n8j5njndw5hcgnmlg9pvclphlnmgp"))))
     (build-system gnu-build-system)
     (arguments
      '(#:configure-flags (list (string-append "LDFLAGS=-Wl,-rpath="
-- 
2.31.1





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

* bug#47947: [PATCH 0/5] Add alsa-ucm-conf and alsa-topology-conf.
  2021-04-22  9:52 [bug#47947] [PATCH 0/5] Add alsa-ucm-conf and alsa-topology-conf Mathieu Othacehe
  2021-04-22  9:54 ` [bug#47947] [PATCH 1/5] gnu: Add alsa-ucm-conf Mathieu Othacehe
@ 2021-05-13 15:32 ` Mathieu Othacehe
  1 sibling, 0 replies; 7+ messages in thread
From: Mathieu Othacehe @ 2021-05-13 15:32 UTC (permalink / raw)
  To: 47947-done


> Those changes are targeting the core-updates branch.

Pushed to core-updates,

Thanks,

Mathieu




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

end of thread, other threads:[~2021-05-13 15:33 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-22  9:52 [bug#47947] [PATCH 0/5] Add alsa-ucm-conf and alsa-topology-conf Mathieu Othacehe
2021-04-22  9:54 ` [bug#47947] [PATCH 1/5] gnu: Add alsa-ucm-conf Mathieu Othacehe
2021-04-22  9:54   ` [bug#47947] [PATCH 2/5] gnu: Add alsa-topology-conf Mathieu Othacehe
2021-04-22  9:54   ` [bug#47947] [PATCH 3/5] gnu: alsa-lib: Use alsa-ucm-conf and alsa-topology-conf Mathieu Othacehe
2021-04-22  9:54   ` [bug#47947] [PATCH 4/5] gnu: alsa-lib: Update the home-page Mathieu Othacehe
2021-04-22  9:54   ` [bug#47947] [PATCH 5/5] gnu: alsa-lib: Fix the indentation Mathieu Othacehe
2021-05-13 15:32 ` bug#47947: [PATCH 0/5] Add alsa-ucm-conf and alsa-topology-conf Mathieu Othacehe

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.