mirror of
https://github.com/libretro/Lakka-LibreELEC.git
synced 2024-11-28 03:54:36 +00:00
202 lines
3.8 KiB
Diff
202 lines
3.8 KiB
Diff
From 34dbf4272c3036a7e8b208ad8dc35a035918af66 Mon Sep 17 00:00:00 2001
|
|
From: chewitt <christianshewitt@gmail.com>
|
|
Date: Thu, 14 May 2020 13:31:34 +0000
|
|
Subject: [PATCH 1/2] WIP: add confs for gx-sound-card and axg-sound-card
|
|
|
|
---
|
|
src/conf/cards/axg-sound-card.conf | 87 ++++++++++++++++++++++++++++++
|
|
src/conf/cards/gx-sound-card.conf | 87 ++++++++++++++++++++++++++++++
|
|
2 files changed, 174 insertions(+)
|
|
create mode 100644 src/conf/cards/axg-sound-card.conf
|
|
create mode 100644 src/conf/cards/gx-sound-card.conf
|
|
|
|
diff --git a/src/conf/cards/axg-sound-card.conf b/src/conf/cards/axg-sound-card.conf
|
|
new file mode 100644
|
|
index 00000000..f3caaed0
|
|
--- /dev/null
|
|
+++ b/src/conf/cards/axg-sound-card.conf
|
|
@@ -0,0 +1,87 @@
|
|
+# SPDX-License-Identifier: GPL-2.0
|
|
+# Copyright (C) 2020-present Team LibreELEC (https://libreelec.tv)
|
|
+
|
|
+#
|
|
+# Configuration for Amlogic AXG audio
|
|
+#
|
|
+
|
|
+axg-sound-card.pcm.default {
|
|
+ @args [ CARD ]
|
|
+ @args.CARD { type string }
|
|
+ type softvol
|
|
+ slave.pcm {
|
|
+ type plug
|
|
+ slave {
|
|
+ pcm {
|
|
+ type hw
|
|
+ card $CARD
|
|
+ device 0
|
|
+ }
|
|
+ }
|
|
+ }
|
|
+ control {
|
|
+ name "PCM Playback Volume"
|
|
+ card $CARD
|
|
+ }
|
|
+}
|
|
+
|
|
+<confdir:pcm/hdmi.conf>
|
|
+
|
|
+axg-sound-card.pcm.hdmi.0 {
|
|
+ @args [ CARD AES0 AES1 AES2 AES3 ]
|
|
+ @args.CARD { type string }
|
|
+ @args.AES0 { type integer }
|
|
+ @args.AES1 { type integer }
|
|
+ @args.AES2 { type integer }
|
|
+ @args.AES3 { type integer }
|
|
+ type hooks
|
|
+ slave.pcm {
|
|
+ type hw
|
|
+ card $CARD
|
|
+ device 0
|
|
+ }
|
|
+ hooks.0 {
|
|
+ type ctl_elems
|
|
+ hook_args [
|
|
+ {
|
|
+ name "IEC958 Playback Default"
|
|
+ interface PCM
|
|
+ lock true
|
|
+ preserve true
|
|
+ optional true
|
|
+ value [ $AES0 $AES1 $AES2 $AES3 ]
|
|
+ }
|
|
+ ]
|
|
+ }
|
|
+}
|
|
+
|
|
+<confdir:pcm/iec958.conf>
|
|
+
|
|
+axg-sound-card.pcm.iec958.0 {
|
|
+ @args [ CARD AES0 AES1 AES2 AES3 ]
|
|
+ @args.CARD { type string }
|
|
+ @args.AES0 { type integer }
|
|
+ @args.AES1 { type integer }
|
|
+ @args.AES2 { type integer }
|
|
+ @args.AES3 { type integer }
|
|
+ type hooks
|
|
+ slave.pcm {
|
|
+ type hw
|
|
+ card $CARD
|
|
+ device 1
|
|
+ }
|
|
+ hooks.0 {
|
|
+ type ctl_elems
|
|
+ hook_args [
|
|
+ {
|
|
+ name "IEC958 Playback Default"
|
|
+ interface PCM
|
|
+ lock true
|
|
+ preserve true
|
|
+ optional true
|
|
+ value [ $AES0 $AES1 $AES2 $AES3 ]
|
|
+ }
|
|
+ ]
|
|
+ }
|
|
+ hint.device 1
|
|
+}
|
|
diff --git a/src/conf/cards/gx-sound-card.conf b/src/conf/cards/gx-sound-card.conf
|
|
new file mode 100644
|
|
index 00000000..b669a260
|
|
--- /dev/null
|
|
+++ b/src/conf/cards/gx-sound-card.conf
|
|
@@ -0,0 +1,87 @@
|
|
+# SPDX-License-Identifier: GPL-2.0
|
|
+# Copyright (C) 2020-present Team LibreELEC (https://libreelec.tv)
|
|
+
|
|
+#
|
|
+# Configuration for Amlogic AIU audio
|
|
+#
|
|
+
|
|
+gx-sound-card.pcm.default {
|
|
+ @args [ CARD ]
|
|
+ @args.CARD { type string }
|
|
+ type softvol
|
|
+ slave.pcm {
|
|
+ type plug
|
|
+ slave {
|
|
+ pcm {
|
|
+ type hw
|
|
+ card $CARD
|
|
+ device 0
|
|
+ }
|
|
+ }
|
|
+ }
|
|
+ control {
|
|
+ name "PCM Playback Volume"
|
|
+ card $CARD
|
|
+ }
|
|
+}
|
|
+
|
|
+<confdir:pcm/hdmi.conf>
|
|
+
|
|
+gx-sound-card.pcm.hdmi.0 {
|
|
+ @args [ CARD AES0 AES1 AES2 AES3 ]
|
|
+ @args.CARD { type string }
|
|
+ @args.AES0 { type integer }
|
|
+ @args.AES1 { type integer }
|
|
+ @args.AES2 { type integer }
|
|
+ @args.AES3 { type integer }
|
|
+ type hooks
|
|
+ slave.pcm {
|
|
+ type hw
|
|
+ card $CARD
|
|
+ device 0
|
|
+ }
|
|
+ hooks.0 {
|
|
+ type ctl_elems
|
|
+ hook_args [
|
|
+ {
|
|
+ name "IEC958 Playback Default"
|
|
+ interface PCM
|
|
+ lock true
|
|
+ preserve true
|
|
+ optional true
|
|
+ value [ $AES0 $AES1 $AES2 $AES3 ]
|
|
+ }
|
|
+ ]
|
|
+ }
|
|
+}
|
|
+
|
|
+<confdir:pcm/iec958.conf>
|
|
+
|
|
+gx-sound-card.pcm.iec958.0 {
|
|
+ @args [ CARD AES0 AES1 AES2 AES3 ]
|
|
+ @args.CARD { type string }
|
|
+ @args.AES0 { type integer }
|
|
+ @args.AES1 { type integer }
|
|
+ @args.AES2 { type integer }
|
|
+ @args.AES3 { type integer }
|
|
+ type hooks
|
|
+ slave.pcm {
|
|
+ type hw
|
|
+ card $CARD
|
|
+ device 1
|
|
+ }
|
|
+ hooks.0 {
|
|
+ type ctl_elems
|
|
+ hook_args [
|
|
+ {
|
|
+ name "IEC958 Playback Default"
|
|
+ interface PCM
|
|
+ lock true
|
|
+ preserve true
|
|
+ optional true
|
|
+ value [ $AES0 $AES1 $AES2 $AES3 ]
|
|
+ }
|
|
+ ]
|
|
+ }
|
|
+ hint.device 1
|
|
+}
|
|
--
|
|
2.17.1
|
|
|