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