From de1eb3bd211d90b2ed2b0ffaedfa9a9c6be46a79 Mon Sep 17 00:00:00 2001 From: Max Krummenacher Date: Wed, 30 Apr 2025 10:41:24 +0200 Subject: alsa-lib: patch: change to unix line endings Run dos2unix on 0007-add-conf-for-imx-cs42448-sound-card.patch to prepare the patch for refreshing. Otherwise the 'real' changes in done by devtool are hard to spot. Signed-off-by: Max Krummenacher --- .../0007-add-conf-for-imx-cs42448-sound-card.patch | 214 ++++++++++----------- 1 file changed, 107 insertions(+), 107 deletions(-) diff --git a/recipes-multimedia/alsa/alsa-lib/0007-add-conf-for-imx-cs42448-sound-card.patch b/recipes-multimedia/alsa/alsa-lib/0007-add-conf-for-imx-cs42448-sound-card.patch index 64e15be4..51d1ad87 100644 --- a/recipes-multimedia/alsa/alsa-lib/0007-add-conf-for-imx-cs42448-sound-card.patch +++ b/recipes-multimedia/alsa/alsa-lib/0007-add-conf-for-imx-cs42448-sound-card.patch @@ -1,107 +1,107 @@ -From 97d5e09a4166b45c567026e51b8a25ef5d7d587d Mon Sep 17 00:00:00 2001 -From: Chancel Liu -Date: Fri, 29 Jul 2022 16:12:37 +0800 -Subject: [PATCH] add conf for imx-cs42448 sound card - -Upstream-Status: Inappropriate [i.MX specific] - -Signed-off-by: Chancel Liu ---- - src/conf/cards/CS42448.conf | 58 +++++++++++++++++++++++++++++++++++++ - src/conf/cards/Makefile.am | 3 +- - src/conf/cards/aliases.conf | 1 + - 3 files changed, 61 insertions(+), 1 deletion(-) - create mode 100644 src/conf/cards/CS42448.conf - -diff --git a/src/conf/cards/CS42448.conf b/src/conf/cards/CS42448.conf -new file mode 100644 -index 00000000..28ba5c48 ---- /dev/null -+++ b/src/conf/cards/CS42448.conf -@@ -0,0 +1,58 @@ -+# -+# Configuration for the CS42448 chip -+# -+ -+# default with dmix & dsnoop -+CS42448.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" ] -+ } -+ } -+} -+ -+ -+ -+CS42448.pcm.surround51.0 { -+ @args [ CARD ] -+ @args.CARD { -+ type string -+ } -+ type plug -+ slave.pcm { -+ type hw -+ card $CARD -+ } -+ slave.channels 6 -+} -+ -+ -+ -+CS42448.pcm.surround71.0 { -+ @args [ CARD ] -+ @args.CARD { -+ type string -+ } -+ type plug -+ slave.pcm { -+ type hw -+ card $CARD -+ } -+ slave.channels 8 -+} -+ -+# vim: ft=alsaconf -diff --git a/src/conf/cards/Makefile.am b/src/conf/cards/Makefile.am -index 70b9bab3..6aba20b4 100644 ---- a/src/conf/cards/Makefile.am -+++ b/src/conf/cards/Makefile.am -@@ -62,7 +62,8 @@ cfg_files = aliases.conf \ - CS42888.conf \ - IMX-HDMI.conf \ - AK4458.conf \ -- IMX-XCVR.conf -+ IMX-XCVR.conf \ -+ CS42448.conf - - if BUILD_ALISP - cfg_files += aliases.alisp -diff --git a/src/conf/cards/aliases.conf b/src/conf/cards/aliases.conf -index e824145d..a40d3731 100644 ---- a/src/conf/cards/aliases.conf -+++ b/src/conf/cards/aliases.conf -@@ -61,6 +61,7 @@ imx-cs42888 cards.CS42888 - imx-hdmi-soc cards.IMX-HDMI - ak4458-audio cards.AK4458 - imx-audio-xcvr cards.IMX-XCVR -+imx-cs42448 cards.CS42448 - - - --- -2.17.1 +From 97d5e09a4166b45c567026e51b8a25ef5d7d587d Mon Sep 17 00:00:00 2001 +From: Chancel Liu +Date: Fri, 29 Jul 2022 16:12:37 +0800 +Subject: [PATCH] add conf for imx-cs42448 sound card + +Upstream-Status: Inappropriate [i.MX specific] + +Signed-off-by: Chancel Liu +--- + src/conf/cards/CS42448.conf | 58 +++++++++++++++++++++++++++++++++++++ + src/conf/cards/Makefile.am | 3 +- + src/conf/cards/aliases.conf | 1 + + 3 files changed, 61 insertions(+), 1 deletion(-) + create mode 100644 src/conf/cards/CS42448.conf + +diff --git a/src/conf/cards/CS42448.conf b/src/conf/cards/CS42448.conf +new file mode 100644 +index 00000000..28ba5c48 +--- /dev/null ++++ b/src/conf/cards/CS42448.conf +@@ -0,0 +1,58 @@ ++# ++# Configuration for the CS42448 chip ++# ++ ++# default with dmix & dsnoop ++CS42448.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" ] ++ } ++ } ++} ++ ++ ++ ++CS42448.pcm.surround51.0 { ++ @args [ CARD ] ++ @args.CARD { ++ type string ++ } ++ type plug ++ slave.pcm { ++ type hw ++ card $CARD ++ } ++ slave.channels 6 ++} ++ ++ ++ ++CS42448.pcm.surround71.0 { ++ @args [ CARD ] ++ @args.CARD { ++ type string ++ } ++ type plug ++ slave.pcm { ++ type hw ++ card $CARD ++ } ++ slave.channels 8 ++} ++ ++# vim: ft=alsaconf +diff --git a/src/conf/cards/Makefile.am b/src/conf/cards/Makefile.am +index 70b9bab3..6aba20b4 100644 +--- a/src/conf/cards/Makefile.am ++++ b/src/conf/cards/Makefile.am +@@ -62,7 +62,8 @@ cfg_files = aliases.conf \ + CS42888.conf \ + IMX-HDMI.conf \ + AK4458.conf \ +- IMX-XCVR.conf ++ IMX-XCVR.conf \ ++ CS42448.conf + + if BUILD_ALISP + cfg_files += aliases.alisp +diff --git a/src/conf/cards/aliases.conf b/src/conf/cards/aliases.conf +index e824145d..a40d3731 100644 +--- a/src/conf/cards/aliases.conf ++++ b/src/conf/cards/aliases.conf +@@ -61,6 +61,7 @@ imx-cs42888 cards.CS42888 + imx-hdmi-soc cards.IMX-HDMI + ak4458-audio cards.AK4458 + imx-audio-xcvr cards.IMX-XCVR ++imx-cs42448 cards.CS42448 + + + +-- +2.17.1 -- cgit v1.2.3-54-g00ecf