ALT Linux Distributions development
 help / color / mirror / Atom feed
From: Michael Shigorin <mike@altlinux.org>
To: devel-distro@lists.altlinux.org
Subject: Re: [devel-distro] feature use/sound/alsa
Date: Thu, 18 Jan 2018 14:44:36 +0300
Message-ID: <20180118114436.GE9899@imap.altlinux.org> (raw)
In-Reply-To: <cd5e11cf-158c-fce3-3189-2174d0c6eaaf@ya.ru>

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

On Sat, Jan 06, 2018 at 04:22:27PM +0700, Антон Мидюков wrote:
> 2. Предлагаю добавить эту фичу всем десктопным дистрибутивам
> без pulseaudio. Ну, а регуляркам на Cinnamon и gnome3 добавить
> фичу +pulse. 

Второй патч бы адаптировать поверх и с учётом принятых
(прилагаются).

-- 
 ---- WBR, Michael Shigorin / http://altlinux.org
  ------ http://opennet.ru / http://anna-news.info

[-- Attachment #2: 0001-sound-added-udev-alsa-in-feature-use-sound-alsa-alsa.patch --]
[-- Type: text/x-patch, Size: 846 bytes --]

>From c13ec2d67b7388ef11586f4ed141c7d19b057425 Mon Sep 17 00:00:00 2001
From: Anton Midyukov <antohami@altlinux.org>
Date: Sat, 6 Jan 2018 16:06:55 +0700
Subject: [PATCH 1/3] sound: added udev-alsa in feature use/sound/alsa (+alsa)

This one should care for default mixer levels upon boot.
---
 features.in/sound/config.mk | 1 +
 1 file changed, 1 insertion(+)

diff --git a/features.in/sound/config.mk b/features.in/sound/config.mk
index 02b603e..5761963 100644
--- a/features.in/sound/config.mk
+++ b/features.in/sound/config.mk
@@ -10,6 +10,7 @@ use/sound:
 # ALSA only sound (additional utils needed if using pulseaudio)
 use/sound/alsa: use/sound
 	@$(call add,THE_PACKAGES,apulse)
+	@$(call add,THE_PACKAGES,udev-alsa)
 
 # PulseAudio (useful for per-app levels, dynamic devices and networked sound)
 use/sound/pulse: use/sound
-- 
2.10.4


[-- Attachment #3: 0002-sound-added-a-switch-between-alsa-and-pulseaudio.patch --]
[-- Type: text/x-patch, Size: 1581 bytes --]

>From 530d4c1740aa2a5cd03d07c9aa3370a592483068 Mon Sep 17 00:00:00 2001
From: Anton Midyukov <antohami@altlinux.org>
Date: Wed, 10 Jan 2018 22:37:34 +0700
Subject: [PATCH 2/3] sound: added a switch between alsa and pulseaudio

Those images who are fine with ALSA might still benefit
from addons like udev-alsa to have mixer levels restored
on boot; and PulseAudio-bearing images can be based upon
the same intermediate targets now without receiving the
addons they don't need.
---
 features.in/sound/config.mk | 6 +++---
 pkg.in/lists/sound/alsa     | 2 ++
 2 files changed, 5 insertions(+), 3 deletions(-)
 create mode 100644 pkg.in/lists/sound/alsa

diff --git a/features.in/sound/config.mk b/features.in/sound/config.mk
index 5761963..96f191c 100644
--- a/features.in/sound/config.mk
+++ b/features.in/sound/config.mk
@@ -6,12 +6,12 @@ use/sound:
 	@$(call add_feature)
 	@$(call add,THE_KMODULES,alsa sound)
 	@$(call add,THE_LISTS,sound/base)
+	@$(call add,THE_LISTS,$$(THE_SOUND))
 
 # ALSA only sound (additional utils needed if using pulseaudio)
 use/sound/alsa: use/sound
-	@$(call add,THE_PACKAGES,apulse)
-	@$(call add,THE_PACKAGES,udev-alsa)
+	@$(call set,THE_SOUND,sound/alsa)
 
 # PulseAudio (useful for per-app levels, dynamic devices and networked sound)
 use/sound/pulse: use/sound
-	@$(call add,THE_LISTS,sound/pulseaudio)
+	@$(call set,THE_SOUND,sound/pulseaudio)
diff --git a/pkg.in/lists/sound/alsa b/pkg.in/lists/sound/alsa
new file mode 100644
index 0000000..dc3226f
--- /dev/null
+++ b/pkg.in/lists/sound/alsa
@@ -0,0 +1,2 @@
+apulse
+udev-alsa
-- 
2.10.4


[-- Attachment #4: 0003-mixin.mk-replace-use-sound-with-alsa-for-desktop-reg.patch --]
[-- Type: text/x-patch, Size: 1171 bytes --]

>From 2a2b3e1b7bc9314b94369ac43583b814c108474c Mon Sep 17 00:00:00 2001
From: Anton Midyukov <antohami@altlinux.org>
Date: Sat, 13 Jan 2018 13:09:53 +0700
Subject: [PATCH 3/3] mixin.mk: replace use/sound with +alsa for
 desktop/regular

This will solve the sound problems when using regulars:
- The sound when the computer is restarted is set to 0
- Some applications do not know how to work directly with ALSA,
  apulse allows you to solve this problem partially.

Using feature +pulse will override use of +alsa feature.
---
 conf.d/mixin.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/conf.d/mixin.mk b/conf.d/mixin.mk
index 9793b67..28ce4c8 100644
--- a/conf.d/mixin.mk
+++ b/conf.d/mixin.mk
@@ -19,7 +19,7 @@ mixin/e2k-desktop: use/e2k/x11 use/e2k/sound use/l10n/default/ru_RU \
 
 ### regular.mk
 # common WM live/installer bits
-mixin/regular-desktop: use/x11/xorg use/sound use/xdg-user-dirs
+mixin/regular-desktop: use/x11/xorg +alsa use/xdg-user-dirs
 	@$(call add,THE_PACKAGES,pam-limits-desktop)
 	@$(call add,THE_PACKAGES,installer-feature-desktop-other-fs-stage2)
 	@$(call add,THE_PACKAGES,alterator-notes dvd+rw-tools)
-- 
2.10.4


      parent reply	other threads:[~2018-01-18 11:44 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-01-06  9:22 Антон Мидюков
2018-01-07 15:17 ` Michael Shigorin
2018-01-08  9:11   ` Антон Мидюков
2018-01-09 12:39   ` [devel-distro] m-p ошибка при сборке regular-icewm.iso Oleg
2018-01-09 12:44     ` Антон Мидюков
2018-01-10  7:22         ` Антон Мидюков
2018-01-09 13:21     ` Michael Shigorin
2018-01-10  8:35       ` Oleg
2018-01-11  8:03         ` Michael Shigorin
2018-01-21 14:25           ` Антон Мидюков
2018-01-18 11:44 ` Michael Shigorin [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180118114436.GE9899@imap.altlinux.org \
    --to=mike@altlinux.org \
    --cc=devel-distro@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Distributions development

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel-distro/0 devel-distro/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 devel-distro devel-distro/ http://lore.altlinux.org/devel-distro \
		devel-distro@lists.altlinux.org devel-distro@lists.altlinux.ru devel-distro@lists.altlinux.com
	public-inbox-index devel-distro

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.devel-distro


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git