Skip to content
Snippets Groups Projects
Commit d91a6af9 authored by minute's avatar minute
Browse files

userland: add pulseaudio profile

parent d8595156
No related branches found
No related tags found
1 merge request!12RC1 of MNT Reform System Image and Rescue Image
...@@ -35,6 +35,9 @@ cp $ETC/reform* target-userland/etc ...@@ -35,6 +35,9 @@ cp $ETC/reform* target-userland/etc
cp $ETC/hostname target-userland/etc cp $ETC/hostname target-userland/etc
cp $ETC/hosts target-userland/etc cp $ETC/hosts target-userland/etc
# copy pulse config files that will be moved inside the target fs later
cp $ETC/pulse/* target-userland/
# mesa etc. patches # mesa etc. patches
mkdir -p target-userland/root/src mkdir -p target-userland/root/src
cp -Rv template-userland/patches-mesa target-userland/root/src/patches-mesa cp -Rv template-userland/patches-mesa target-userland/root/src/patches-mesa
...@@ -71,6 +74,11 @@ apt update ...@@ -71,6 +74,11 @@ apt update
apt install -y sway grim slurp xwayland xterm xfce4-terminal rofi arc-theme thunar policykit-1 libblockdev-dm2 libblockdev-crypto2 gnome-disk-utility cryptsetup gnome-system-monitor eog evince mpv gedit engrampa connman-gtk gnome-icon-theme breeze-icon-theme fonts-noto-color-emoji lxpolkit mesa-utils w3m man-db pulseaudio pavucontrol python3-psutil apt install -y sway grim slurp xwayland xterm xfce4-terminal rofi arc-theme thunar policykit-1 libblockdev-dm2 libblockdev-crypto2 gnome-disk-utility cryptsetup gnome-system-monitor eog evince mpv gedit engrampa connman-gtk gnome-icon-theme breeze-icon-theme fonts-noto-color-emoji lxpolkit mesa-utils w3m man-db pulseaudio pavucontrol python3-psutil
# move pulse config in place
# FIXME: this is brittle and should go into a .deb
mv /analog-input-reform.conf /usr/share/pulseaudio/alsa-mixer/paths/
mv /default.conf /usr/share/pulseaudio/alsa-mixer/profile-sets/
# install applications # install applications
apt install -y libreoffice libreoffice-gtk3 inkscape firefox-esr emacs gimp wmaker apt install -y libreoffice libreoffice-gtk3 inkscape firefox-esr emacs gimp wmaker
......
# This file is part of PulseAudio.
#
# PulseAudio is free software; you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as
# published by the Free Software Foundation; either version 2.1 of the
# License, or (at your option) any later version.
#
# PulseAudio is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with PulseAudio; if not, see <http://www.gnu.org/licenses/>.
; Analog input path for MNT Reform, which has a headset mic input
; that is only on the left channel (mono).
[General]
priority = 100
[Element Capture]
switch = mute
volume = ignore
[Element Mic]
required-absent = any
[Element Mic Boost]
required-absent = any
[Element Dock Mic]
required-absent = any
[Element Dock Mic Boost]
required-absent = any
[Element Front Mic]
required-absent = any
[Element Front Mic Boost]
required-absent = any
[Element Int Mic]
required-absent = any
[Element Int Mic Boost]
required-absent = any
[Element Internal Mic]
required-absent = any
[Element Internal Mic Boost]
required-absent = any
[Element Rear Mic]
required-absent = any
[Element Rear Mic Boost]
required-absent = any
[Element Headset]
required-absent = any
[Element Headset Mic]
required-absent = any
[Element Headset Mic Boost]
required-absent = any
[Element Headphone Mic]
required-absent = any
[Element Headphone Mic Boost]
required-absent = any
[Element Line]
required-absent = any
[Element Line Boost]
required-absent = any
[Element Aux]
required-absent = any
[Element Video]
required-absent = any
[Element Mic/Line]
required-absent = any
[Element TV Tuner]
required-absent = any
[Element FM]
required-absent = any
.include analog-input.conf.common
[General]
auto-profiles = yes
[Mapping stereo-out]
device-strings = hw:0
fallback = yes
channel-map = left,right
paths-output = analog-output analog-output-speaker analog-output-headphones
direction = output
priority = 1
[Mapping headset-mono-in]
device-strings = hw:0
fallback = yes
channel-map = mono
paths-input = analog-input-reform
direction = input
priority = 1
[Profile output:stereo-out+input:mono-in]
description = MNT Reform
output-mappings = stereo-out
input-mappings = headset-mono-in
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment