summaryrefslogtreecommitdiffstats
path: root/remote
diff options
context:
space:
mode:
Diffstat (limited to 'remote')
l---------remote/modules/alsa/data/etc/systemd/system/multi-user.target.wants/alsa-default-card.service1
-rwxr-xr-xremote/modules/alsa/data/opt/openslx/scripts/alsa-default_card20
2 files changed, 8 insertions, 13 deletions
diff --git a/remote/modules/alsa/data/etc/systemd/system/multi-user.target.wants/alsa-default-card.service b/remote/modules/alsa/data/etc/systemd/system/multi-user.target.wants/alsa-default-card.service
new file mode 120000
index 00000000..55e393fd
--- /dev/null
+++ b/remote/modules/alsa/data/etc/systemd/system/multi-user.target.wants/alsa-default-card.service
@@ -0,0 +1 @@
+../alsa-default-card.service \ No newline at end of file
diff --git a/remote/modules/alsa/data/opt/openslx/scripts/alsa-default_card b/remote/modules/alsa/data/opt/openslx/scripts/alsa-default_card
index ebdf6043..1e28aa4c 100755
--- a/remote/modules/alsa/data/opt/openslx/scripts/alsa-default_card
+++ b/remote/modules/alsa/data/opt/openslx/scripts/alsa-default_card
@@ -12,7 +12,7 @@ if [ -w "/etc" ]; then
elif [ -n "$HOME" ]; then
FILE="${HOME}/.asoundrc"
else
- FILE="$(/usr/bin/getent passwd root | awk -F ':' '{print $6}')/.asoundrc"
+ FILE="$(getent passwd root | awk -F ':' '{print $6}')/.asoundrc"
fi
if [ -e "${FILE}" -a "x$1" != "x--force" ]; then
@@ -31,17 +31,11 @@ if [ -z "${CARD}" ]; then
fi
cat > "${FILE}" <<HEREDOC
-pcm.!default {
- type hw
- card $CARD
-}
-ctl.!default {
- type hw
- card $CARD
-}
-timer.!default {
- type hw
- card $CARD
-}
+defaults.pcm.!card $CARD
+defaults.ctl.!card $CARD
+
+defaults.pcm.!device 0
+defaults.ctl.!device 0
+
HEREDOC