Repository navigation
Commit 8ba169c
committed
topology2: host-gateway-tdfb-drc-capture: fix channel map/cfg regression
Same problem with IncludeByKey + nested Define pattern as present
earlier in sdw-dmic-generic: the
TDFB_DMIC_CHANNEL_CFG/TDFB_DMIC_CHANNEL_MAP variables are set to zero
because outer constants ($CHANNEL_CONFIG_STEREO etc.) evaluate to 0
inside a Define block nested within IncludeByKey.
Also another issue in the "8"-channel case: it incorrectly uses
TDFB_SDW_DMIC_CHANNEL_CFG/MAP instead of TDFB_DMIC_CHANNEL_CFG/MAP, so
this needs a fix as well.
Fix by removing the broken initialization block entirely and replacing all
four uses of $TDFB_DMIC_CHANNEL_CFG/$TDFB_DMIC_CHANNEL_MAP in the tdfb and
drc widget format blocks with direct IncludeByKey.TDFB_DMIC_PCM_CHANNELS
blocks using the correct constants. Stereo (2-channel) is handled by defaults.
This restores token1904/1905 (in_ch_map/cfg) and token1934/1935
(out_ch_map/cfg) to correct stereo values in the tdfb.40.1 and drc.40.1
widgets when SDW_DMIC_ENHANCED_CAPTURE=true.
Fixes: 87dc581 ("topology2: sdw-dmic-generic: add multiple DMIC number support")
Signed-off-by: Kai Vehmanen <[email protected]>
(cherry picked from commit dd26374)1 parent 064e9bd commit 8ba169c
1 file changed
Lines changed: 56 additions & 34 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | 26 | | |
53 | 27 | | |
54 | 28 | | |
| |||
88 | 62 | | |
89 | 63 | | |
90 | 64 | | |
91 | | - | |
92 | | - | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
93 | 79 | | |
94 | 80 | | |
95 | 81 | | |
96 | 82 | | |
97 | 83 | | |
98 | 84 | | |
99 | 85 | | |
100 | | - | |
101 | | - | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
102 | 100 | | |
103 | 101 | | |
104 | 102 | | |
| |||
119 | 117 | | |
120 | 118 | | |
121 | 119 | | |
122 | | - | |
123 | | - | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
124 | 134 | | |
125 | 135 | | |
126 | 136 | | |
127 | 137 | | |
128 | 138 | | |
129 | 139 | | |
130 | 140 | | |
131 | | - | |
132 | | - | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
133 | 155 | | |
134 | 156 | | |
135 | 157 | | |
| |||
0 commit comments