Commit 602154a7 authored by Bob Ham's avatar Bob Ham

base-defaults: Add PulseAudio profile for devkit

This is a workaround for the devkit's audio not working properly with
PulseAudio (linux-emcraft#19).  There is no standard "front" device
for the SGTL5000 codec so PulseAudio fails to probe the card properly
with the default profile.  We create a new profile specifically for
the devkit and direct PulseAudio to use it through a udev rule.
parent e29e2614
Pipeline #3426 passed with stage
in 45 seconds
......@@ -20,3 +20,9 @@ License: GPL-3+
.
On Debian systems, the complete text of the GNU General
Public License version 3 can be found in "/usr/share/common-licenses/GPL-3".
Files: default/librem5-evk.conf
Copyright:
Copyright (C) 2004-2009 Lennart Poettering
Copyright (C) 2006-2007 Pierre Ossman <ossman@cendio.se> for Cendio AB
License: LGPL-2.1 or later
/default/org.freedesktop.ModemManager1.pkla /var/lib/polkit-1/localauthority/10-vendor.d/
default/09_librem5.gschema.override usr/share/glib-2.0/schemas/
default/blackboard-1920.jpg usr/share/librem5/default-theme/
default/09_librem5.gschema.override usr/share/glib-2.0/schemas/
default/blackboard-1920.jpg usr/share/librem5/default-theme/
default/85-librem5-evk-sgtl5000.rules etc/udev/rules.d/
default/librem5-evk.conf usr/share/pulseaudio/alsa-mixer/profile-sets/
# Set the PulseAudio profile for the SGTL5000 on the Librem 5 Developer's Kit
SUBSYSTEM=="sound", ATTR{id}=="sgtl5000", ENV{PULSE_PROFILE_SET}="librem5-evk.conf"
# 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/>.
; Profile definitions for the Librem 5 Developer's Kit. The default
; profile doesn't work with the devkit because there's no "front"
; device for the SGTL5000 codec so we define this profile.
[General]
auto-profiles = yes
[Mapping analog-mono]
device-strings = hw:%f
channel-map = mono
paths-output = analog-output analog-output-lineout analog-output-speaker analog-output-headphones analog-output-headphones-2 analog-output-mono
paths-input = analog-input-front-mic analog-input-rear-mic analog-input-internal-mic analog-input-dock-mic analog-input analog-input-mic analog-input-linein analog-input-aux analog-input-video analog-input-tvtuner analog-input-fm analog-input-mic-line analog-input-headset-mic
priority = 7
[Mapping analog-stereo]
device-strings = hw:%f
channel-map = left,right
paths-output = analog-output analog-output-lineout analog-output-speaker analog-output-headphones analog-output-headphones-2
paths-input = analog-input-front-mic analog-input-rear-mic analog-input-internal-mic analog-input-dock-mic analog-input analog-input-mic analog-input-linein analog-input-aux analog-input-video analog-input-tvtuner analog-input-fm analog-input-mic-line analog-input-headphone-mic analog-input-headset-mic
priority = 15
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment