mirror of
git://git.yoctoproject.org/meta-freescale.git
synced 2026-01-27 11:52:04 +01:00
OE-core updated to v1.2.15. Refresh the patches. Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
129 lines
2.7 KiB
Diff
129 lines
2.7 KiB
Diff
From b582b2f3054fc402604b068d470c4eeb19b06e13 Mon Sep 17 00:00:00 2001
|
||
From: Shengjiu Wang <shengjiu.wang@nxp.com>
|
||
Date: Wed, 31 Jan 2018 15:06:53 +0800
|
||
Subject: [PATCH] add ak4458 conf for multichannel support
|
||
MIME-Version: 1.0
|
||
Content-Type: text/plain; charset=UTF-8
|
||
Content-Transfer-Encoding: 8bit
|
||
|
||
one limitation is that ALSA and pulseaudio only support
|
||
maximum 8 channels, but ak4458 may support 16 channels
|
||
|
||
Upstream-Status: Inappropriate [i.MX specific]
|
||
|
||
Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
|
||
---
|
||
src/conf/cards/AK4458.conf | 74 +++++++++++++++++++++++++++++++++++++
|
||
src/conf/cards/Makefile.am | 1 +
|
||
src/conf/cards/aliases.conf | 1 +
|
||
3 files changed, 76 insertions(+)
|
||
create mode 100644 src/conf/cards/AK4458.conf
|
||
|
||
diff --git a/src/conf/cards/AK4458.conf b/src/conf/cards/AK4458.conf
|
||
new file mode 100644
|
||
index 000000000000..3b5b195f2ca0
|
||
--- /dev/null
|
||
+++ b/src/conf/cards/AK4458.conf
|
||
@@ -0,0 +1,74 @@
|
||
+#
|
||
+# Configuration for the AK4458 chip
|
||
+#
|
||
+
|
||
+# default with dmix & dsnoop
|
||
+AK4458.pcm.default {
|
||
+ @args [ CARD ]
|
||
+ @args.CARD {
|
||
+ type string
|
||
+ }
|
||
+ type asym
|
||
+ playback.pcm {
|
||
+ type plug
|
||
+ slave.pcm {
|
||
+ @func concat
|
||
+ strings [ "dmix:" $CARD ",FORMAT=S32_LE" ]
|
||
+ }
|
||
+ }
|
||
+ capture.pcm {
|
||
+ type plug
|
||
+ slave.pcm {
|
||
+ @func concat
|
||
+ strings [ "dsnoop:" $CARD ",FORMAT=S32_LE" ]
|
||
+ }
|
||
+ }
|
||
+}
|
||
+
|
||
+<confdir:pcm/surround40.conf>
|
||
+
|
||
+AK4458.pcm.surround40.0 {
|
||
+ @args [ CARD ]
|
||
+ @args.CARD {
|
||
+ type string
|
||
+ }
|
||
+ type plug
|
||
+ slave.pcm {
|
||
+ type hw
|
||
+ card $CARD
|
||
+ }
|
||
+ slave.channels 4
|
||
+}
|
||
+
|
||
+
|
||
+<confdir:pcm/surround41.conf>
|
||
+<confdir:pcm/surround50.conf>
|
||
+<confdir:pcm/surround51.conf>
|
||
+
|
||
+AK4458.pcm.surround51.0 {
|
||
+ @args [ CARD ]
|
||
+ @args.CARD {
|
||
+ type string
|
||
+ }
|
||
+ type plug
|
||
+ slave.pcm {
|
||
+ type hw
|
||
+ card $CARD
|
||
+ }
|
||
+ slave.channels 6
|
||
+}
|
||
+
|
||
+<confdir:pcm/surround71.conf>
|
||
+
|
||
+AK4458.pcm.surround71.0 {
|
||
+ @args [ CARD ]
|
||
+ @args.CARD {
|
||
+ type string
|
||
+ }
|
||
+ type plug
|
||
+ slave.pcm {
|
||
+ type hw
|
||
+ card $CARD
|
||
+ }
|
||
+ slave.channels 8
|
||
+}
|
||
diff --git a/src/conf/cards/Makefile.am b/src/conf/cards/Makefile.am
|
||
index cbd2cd04227d..3c29bd65d341 100644
|
||
--- a/src/conf/cards/Makefile.am
|
||
+++ b/src/conf/cards/Makefile.am
|
||
@@ -3,6 +3,7 @@ alsadir = $(alsaconfigdir)/cards
|
||
cfg_files = aliases.conf \
|
||
CS42888.conf \
|
||
IMX-HDMI.conf \
|
||
+ AK4458.conf \
|
||
AACI.conf \
|
||
ATIIXP.conf \
|
||
ATIIXP-SPDMA.conf \
|
||
diff --git a/src/conf/cards/aliases.conf b/src/conf/cards/aliases.conf
|
||
index e05c372a0cf7..bbbf226a95a7 100644
|
||
--- a/src/conf/cards/aliases.conf
|
||
+++ b/src/conf/cards/aliases.conf
|
||
@@ -60,6 +60,7 @@ VC4-HDMI cards.vc4-hdmi
|
||
hda-acpi cards.HDA-Intel
|
||
imx-cs42888 cards.CS42888
|
||
imx-hdmi-soc cards.IMX-HDMI
|
||
+ak4458-audio cards.AK4458
|
||
|
||
<confdir:ctl/default.conf>
|
||
<confdir:pcm/default.conf>
|
||
--
|
||
2.42.0
|
||
|