From: Michael Shigorin <mike@altlinux.org> To: devel-distro@lists.altlinux.org Subject: Re: [devel-distro] Переключатель между alsa и pulseaudio Date: Wed, 10 Jan 2018 19:37:01 +0300 Message-ID: <20180110163701.GP9899@imap.altlinux.org> (raw) In-Reply-To: <8a5a93e7-b738-5779-a130-52b513f03ed2@ya.ru> [-- Attachment #1: Type: text/plain, Size: 1104 bytes --] On Wed, Jan 10, 2018 at 10:45:34PM +0700, Антон Мидюков wrote: > Предлагаю сделать вот такой переключатель между alsa > и pulseaudio (смотреть приложенный патч). Была ещё такая задумка, чтоб при подключении +sound получить сразу звук на альсе (которая всяко по умолчанию как базовое API), но с плюшечками вроде udev-alsa; а вот при явном +pulse подключать егойный список пакетов. Подумал сейчас и понял, почему она словами толком не пояснялась: уж больно громоздко. Пожалуй, сейчас возьму этот патч для начала (только описание опять-таки надо дополнить целеполаганием, т.е. "зачем так", ну да поправлю). > Subject: [PATCH] Added a switch between alsa and pulseaudio А так всё верно, благодарю. Можно готовить следующий с +alsa в тех промежуточных целях, что обсудили, и остающихся конечных целях образов вроде regular-lxde. PS: в понедельник пропустил выпуск, к которому вообще-то уже накопилось патчей (и в регулярки это всё тоже не попало); надеюсь, на следующей неделе буду внимательней. -- ---- 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/2] 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/2] 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
next prev parent reply other threads:[~2018-01-10 16:37 UTC|newest] Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top 2018-01-10 15:45 Антон Мидюков 2018-01-10 16:37 ` Michael Shigorin [this message] 2018-01-13 9:56 ` Антон Мидюков 2018-01-16 12:01 ` Michael Shigorin 2018-01-16 12:17 ` Антон Мидюков 2018-01-16 12:34 ` Michael Shigorin
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=20180110163701.GP9899@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