diff options
Diffstat (limited to 'recipes-multimedia/alsa/alsa-lib/0007-add-conf-for-imx-cs42448-sound-card.patch')
-rw-r--r-- | recipes-multimedia/alsa/alsa-lib/0007-add-conf-for-imx-cs42448-sound-card.patch | 107 |
1 files changed, 107 insertions, 0 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 new file mode 100644 index 00000000..64e15be4 --- /dev/null +++ b/recipes-multimedia/alsa/alsa-lib/0007-add-conf-for-imx-cs42448-sound-card.patch | |||
@@ -0,0 +1,107 @@ | |||
1 | From 97d5e09a4166b45c567026e51b8a25ef5d7d587d Mon Sep 17 00:00:00 2001 | ||
2 | From: Chancel Liu <chancel.liu@nxp.com> | ||
3 | Date: Fri, 29 Jul 2022 16:12:37 +0800 | ||
4 | Subject: [PATCH] add conf for imx-cs42448 sound card | ||
5 | |||
6 | Upstream-Status: Inappropriate [i.MX specific] | ||
7 | |||
8 | Signed-off-by: Chancel Liu <chancel.liu@nxp.com> | ||
9 | --- | ||
10 | src/conf/cards/CS42448.conf | 58 +++++++++++++++++++++++++++++++++++++ | ||
11 | src/conf/cards/Makefile.am | 3 +- | ||
12 | src/conf/cards/aliases.conf | 1 + | ||
13 | 3 files changed, 61 insertions(+), 1 deletion(-) | ||
14 | create mode 100644 src/conf/cards/CS42448.conf | ||
15 | |||
16 | diff --git a/src/conf/cards/CS42448.conf b/src/conf/cards/CS42448.conf | ||
17 | new file mode 100644 | ||
18 | index 00000000..28ba5c48 | ||
19 | --- /dev/null | ||
20 | +++ b/src/conf/cards/CS42448.conf | ||
21 | @@ -0,0 +1,58 @@ | ||
22 | +# | ||
23 | +# Configuration for the CS42448 chip | ||
24 | +# | ||
25 | + | ||
26 | +# default with dmix & dsnoop | ||
27 | +CS42448.pcm.default { | ||
28 | + @args [ CARD ] | ||
29 | + @args.CARD { | ||
30 | + type string | ||
31 | + } | ||
32 | + type asym | ||
33 | + playback.pcm { | ||
34 | + type plug | ||
35 | + slave.pcm { | ||
36 | + @func concat | ||
37 | + strings [ "dmix:" $CARD ",FORMAT=S32_LE" ] | ||
38 | + } | ||
39 | + } | ||
40 | + capture.pcm { | ||
41 | + type plug | ||
42 | + slave.pcm { | ||
43 | + @func concat | ||
44 | + strings [ "dsnoop:" $CARD ",FORMAT=S32_LE" ] | ||
45 | + } | ||
46 | + } | ||
47 | +} | ||
48 | + | ||
49 | +<confdir:pcm/surround51.conf> | ||
50 | + | ||
51 | +CS42448.pcm.surround51.0 { | ||
52 | + @args [ CARD ] | ||
53 | + @args.CARD { | ||
54 | + type string | ||
55 | + } | ||
56 | + type plug | ||
57 | + slave.pcm { | ||
58 | + type hw | ||
59 | + card $CARD | ||
60 | + } | ||
61 | + slave.channels 6 | ||
62 | +} | ||
63 | + | ||
64 | +<confdir:pcm/surround71.conf> | ||
65 | + | ||
66 | +CS42448.pcm.surround71.0 { | ||
67 | + @args [ CARD ] | ||
68 | + @args.CARD { | ||
69 | + type string | ||
70 | + } | ||
71 | + type plug | ||
72 | + slave.pcm { | ||
73 | + type hw | ||
74 | + card $CARD | ||
75 | + } | ||
76 | + slave.channels 8 | ||
77 | +} | ||
78 | + | ||
79 | +# vim: ft=alsaconf | ||
80 | diff --git a/src/conf/cards/Makefile.am b/src/conf/cards/Makefile.am | ||
81 | index 70b9bab3..6aba20b4 100644 | ||
82 | --- a/src/conf/cards/Makefile.am | ||
83 | +++ b/src/conf/cards/Makefile.am | ||
84 | @@ -62,7 +62,8 @@ cfg_files = aliases.conf \ | ||
85 | CS42888.conf \ | ||
86 | IMX-HDMI.conf \ | ||
87 | AK4458.conf \ | ||
88 | - IMX-XCVR.conf | ||
89 | + IMX-XCVR.conf \ | ||
90 | + CS42448.conf | ||
91 | |||
92 | if BUILD_ALISP | ||
93 | cfg_files += aliases.alisp | ||
94 | diff --git a/src/conf/cards/aliases.conf b/src/conf/cards/aliases.conf | ||
95 | index e824145d..a40d3731 100644 | ||
96 | --- a/src/conf/cards/aliases.conf | ||
97 | +++ b/src/conf/cards/aliases.conf | ||
98 | @@ -61,6 +61,7 @@ imx-cs42888 cards.CS42888 | ||
99 | imx-hdmi-soc cards.IMX-HDMI | ||
100 | ak4458-audio cards.AK4458 | ||
101 | imx-audio-xcvr cards.IMX-XCVR | ||
102 | +imx-cs42448 cards.CS42448 | ||
103 | |||
104 | <confdir:ctl/default.conf> | ||
105 | <confdir:pcm/default.conf> | ||
106 | -- | ||
107 | 2.17.1 | ||