Commit 9af69645 authored by Guido Gunther's avatar Guido Gunther

Merge branch 'evk-pulse' into 'master'

base-defaults: Add PulseAudio profile for devkit

See merge request Librem5/librem5-base!24
parents d38dec8b 8151a33c
......@@ -20,3 +20,25 @@ 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/audio/librem5-devkit.conf
Copyright:
Copyright (C) 2004-2009 Lennart Poettering
Copyright (C) 2006-2007 Pierre Ossman <ossman@cendio.se> for Cendio AB
License: LGPL-2.1+
This program 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.
.
This program 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 Lesser General Public License for more details.
.
You should have received a copy of the GNU Lesser General Public
License along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
.
On Debian systems, the complete text of the GNU Lesser General Public License
version 2.1 can be found in /usr/share/common-licenses/LGPL-2.1.
/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/audio/librem5-devkit.conf usr/share/pulseaudio/alsa-mixer/profile-sets/
default/audio/85-librem5-devkit-sgtl5000.conf etc/pulse/daemon.conf.d
# Set the PulseAudio profile for the SGTL5000 on the Librem 5 Developer's Kit
SUBSYSTEM=="sound", ATTR{id}=="sgtl5000", ENV{PULSE_PROFILE_SET}="librem5-devkit.conf"
......@@ -3,3 +3,5 @@
%:
dh $@ --with germinate
override_dh_installudev:
dh_installudev --name=librem5-devkit-sgtl5000 --priority=85
# Call audio uses 8 kHz by default. PulseAudio tries to minimise
# resampling efforts by setting the sample rate of a source/sink to a
# multiple of the input/output's sample rate. In the case of
# Haegtesse, it tries 48 kHz over 44.1 kHz. However, the sample rates
# on the SGTL5000 must be the same for both the ADC and DAC. When
# PulseAudio starts, it queries the SGTL5000's supported sample rates
# for playback and recording separately and then opens the playback
# and record devices with the default sample rate of 44.1 kHz.
# When Haegtesse comes along, it tries to change the sample rate of
# one of the streams to 48 kHz while the other is still open. This
# fails and causes a lot problems (made worse by the fact that
# PulseAudio "successfully" sets the sample rate on the configuration
# and only later changes the sample rate on the hardware). To work
# around this, we simply set the default sample rate to 48 kHz so that
# no sample rate change is needed.
default-sample-rate = 48000
alternate-sample-rate = 44100
# 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