Install PulseAudio and pulseaudio-module-droid
This commit is contained in:
parent
edc0b11414
commit
3b0dd3d22a
4 changed files with 149 additions and 2 deletions
|
|
@ -15,7 +15,7 @@ actions:
|
|||
|
||||
- action: apt
|
||||
description: Installing additional Debian packages
|
||||
packages: [ curl, gnupg, openssh-server, sudo ]
|
||||
packages: [ curl, gnupg, net-tools, openssh-server, sudo ]
|
||||
|
||||
- action: run
|
||||
chroot: true
|
||||
|
|
@ -29,6 +29,8 @@ actions:
|
|||
- glamor-hybris
|
||||
- hybris-usb
|
||||
- libhybris
|
||||
- pulseaudio
|
||||
- pulseaudio-module-droid
|
||||
- xserver-xorg-video-hwcomposer
|
||||
|
||||
- action: run
|
||||
|
|
@ -36,6 +38,11 @@ actions:
|
|||
description: Enabling libhybris EGL libs
|
||||
command: ln -s /usr/lib/aarch64-linux-gnu/libhybris-egl/ld.so.conf /etc/ld.so.conf.d/00_libhybris-egl.conf && ldconfig
|
||||
|
||||
- action: run
|
||||
chroot: true
|
||||
description: Applying custom PulseAudio config
|
||||
command: ln -sf default.pa.gemian /etc/pulse/default.pa
|
||||
|
||||
- action: run
|
||||
chroot: true
|
||||
description: Enabling USB networking service
|
||||
|
|
|
|||
1
overlay/cosmopda/etc/pulse/arm_droid_card_custom.pa
Normal file
1
overlay/cosmopda/etc/pulse/arm_droid_card_custom.pa
Normal file
|
|
@ -0,0 +1 @@
|
|||
load-module module-droid-card rate=48000 quirks=+no_hw_volume
|
||||
134
overlay/cosmopda/etc/pulse/default.pa.gemian
Normal file
134
overlay/cosmopda/etc/pulse/default.pa.gemian
Normal file
|
|
@ -0,0 +1,134 @@
|
|||
#!/usr/bin/pulseaudio -nF
|
||||
#
|
||||
# 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 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/>.
|
||||
|
||||
# This startup script is used only if PulseAudio is started per-user
|
||||
# (i.e. not in system mode)
|
||||
|
||||
.nofail
|
||||
|
||||
.fail
|
||||
|
||||
load-module module-droid-keepalive
|
||||
|
||||
|
||||
### Automatically augment property information from .desktop files
|
||||
### stored in /usr/share/application
|
||||
load-module module-augment-properties
|
||||
|
||||
load-module module-null-sink sink_name=sink.null rate=48000
|
||||
|
||||
load-module module-stream-restore
|
||||
|
||||
### Switch when connected by default (ubports)
|
||||
load-module module-switch-on-connect ignore_virtual=yes
|
||||
### Should be after module-*-restore but before module-*-detect (sfos)
|
||||
load-module module-switch-on-port-available
|
||||
|
||||
|
||||
### If droid-card needs other arguments than the default, have the new
|
||||
### load-module line in /etc/pulse/arm_droid_card_custom.pa
|
||||
.ifexists /etc/pulse/arm_droid_card_custom.pa
|
||||
.include /etc/pulse/arm_droid_card_custom.pa
|
||||
.else
|
||||
load-module module-droid-card rate=48000
|
||||
.endif
|
||||
|
||||
### Needed on many new devices. HADK guide explains how to implement this fully
|
||||
.ifexists module-droid-glue.so
|
||||
.nofail
|
||||
load-module module-droid-glue
|
||||
.fail
|
||||
.endif
|
||||
|
||||
load-module module-null-sink sink_name=sink.fake.sco rate=8000 channels=1
|
||||
load-module module-null-source source_name=source.fake.sco rate=8000 channels=1
|
||||
#load-module module-bluetooth-discover bluez4_args="sco_sink=sink.fake.sco sco_source=source.fake.sco" bluez5_args="headset=droid"
|
||||
|
||||
#load-module module-policy-enforcement
|
||||
|
||||
load-module module-role-ducking trigger_roles=alarm,notification,warning ducking_roles=x-maemo volume=-200dB
|
||||
|
||||
### Load several protocols
|
||||
.ifexists module-esound-protocol-unix.so
|
||||
load-module module-esound-protocol-unix
|
||||
.endif
|
||||
load-module module-native-protocol-unix
|
||||
|
||||
### Network access (may be configured with paprefs, so leave this commented
|
||||
### here if you plan to use paprefs)
|
||||
#load-module module-esound-protocol-tcp
|
||||
#load-module module-native-protocol-tcp
|
||||
#load-module module-zeroconf-publish
|
||||
|
||||
### Load the RTP receiver module (also configured via paprefs, see above)
|
||||
#load-module module-rtp-recv
|
||||
|
||||
### Load the RTP sender module (also configured via paprefs, see above)
|
||||
#load-module module-null-sink sink_name=rtp format=s16be channels=2 rate=44100 sink_properties="device.description='RTP Multicast Sink'"
|
||||
#load-module module-rtp-send source=rtp.monitor
|
||||
|
||||
### Load additional modules from GSettings. This can be configured with the paprefs tool.
|
||||
### Please keep in mind that the modules configured by paprefs might conflict with manually
|
||||
### loaded modules.
|
||||
.ifexists module-gsettings.so
|
||||
.nofail
|
||||
load-module module-gsettings
|
||||
.fail
|
||||
.endif
|
||||
|
||||
|
||||
### Make sure we always have a sink around, even if it is a null sink.
|
||||
load-module module-always-sink
|
||||
|
||||
### Honour intended role device property
|
||||
load-module module-intended-roles
|
||||
|
||||
### Automatically suspend sinks/sources that become idle for too long
|
||||
load-module module-suspend-on-idle timeout=1
|
||||
|
||||
### If autoexit on idle is enabled we want to make sure we only quit
|
||||
### when no local session needs us anymore.
|
||||
.ifexists module-console-kit.so
|
||||
load-module module-console-kit
|
||||
.endif
|
||||
.ifexists module-systemd-login.so
|
||||
load-module module-systemd-login
|
||||
.endif
|
||||
|
||||
### Load DBus protocol
|
||||
.ifexists module-dbus-protocol.so
|
||||
load-module module-dbus-protocol
|
||||
.endif
|
||||
|
||||
### Move orphan streams to placeholder sinks or sources so that playback doesn't get
|
||||
### interrupted. Policy enforcement module then moves the streams to new appropriate
|
||||
### sinks or sources.
|
||||
#load-module module-rescue-streams sink_name=sink.null source_name=sink.null.monitor
|
||||
|
||||
### Enable positioned event sounds
|
||||
load-module module-position-event-sounds
|
||||
|
||||
### Modules to allow auto-loading of filters (such as echo cancellation)
|
||||
### on demand. module-filter-heuristics tries to determine what filters
|
||||
### make sense, and module-filter-apply does the heavy-lifting of
|
||||
### loading modules and rerouting streams.
|
||||
load-module module-filter-heuristics
|
||||
load-module module-filter-apply
|
||||
|
||||
### Make some devices default
|
||||
set-default-sink sink.primary
|
||||
set-default-source source.primary
|
||||
|
|
@ -9,7 +9,12 @@ echo "deb [trusted=yes] http://gemian-buster.thinkglobally.org/buster/ buster ma
|
|||
echo "" >> /etc/apt/preferences.d/gemian.pref
|
||||
echo "Package: *" >> /etc/apt/preferences.d/gemian.pref
|
||||
echo "Pin: origin gemian.thinkglobally.org" >> /etc/apt/preferences.d/gemian.pref
|
||||
echo "Pin: release o=Gemian,a=buster" >> /etc/apt/preferences.d/gemian.pref
|
||||
echo "Pin-Priority: 1000" >> /etc/apt/preferences.d/gemian.pref
|
||||
|
||||
echo "" >> /etc/apt/preferences.d/gemian.pref
|
||||
echo "Package: *" >> /etc/apt/preferences.d/gemian.pref
|
||||
echo "Pin: origin gemian-buster.thinkglobally.org" >> /etc/apt/preferences.d/gemian.pref
|
||||
echo "Pin-Priority: 2000" >> /etc/apt/preferences.d/gemian.pref
|
||||
|
||||
curl http://gemian.thinkglobally.org/archive-key.asc | apt-key add -
|
||||
curl http://gemian-buster.thinkglobally.org/gemian-buster-key.asc | apt-key add -
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue