Commit a658cc1
committed
src: audio: module_adapter: Do the params config right after init
The module_adapter_params() functions set the stream params based on the
base config for each module which is available right after module init.
So configure the params for IPC4 during module_new() and remove the call
to ipc4_pipeline_params(). In order to update the buffer params, add a
call to comp_verify_params() during module_adapter_prepare in order to
update the intermediate buffers. This should help with reducing the
time to trigger pipelines during start.
Add the params handling for the KPB and detect_test modules explicitly
because they don't use the module adapter.
Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>1 parent 60e7a0a commit a658cc1
File tree
4 files changed
+52
-50
lines changed- src
- audio
- module_adapter
- ipc/ipc4
- samples/audio
4 files changed
+52
-50
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
453 | 453 | | |
454 | 454 | | |
455 | 455 | | |
| 456 | + | |
| 457 | + | |
456 | 458 | | |
457 | 459 | | |
458 | 460 | | |
| |||
534 | 536 | | |
535 | 537 | | |
536 | 538 | | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
537 | 550 | | |
538 | 551 | | |
539 | 552 | | |
| |||
786 | 799 | | |
787 | 800 | | |
788 | 801 | | |
| 802 | + | |
789 | 803 | | |
790 | 804 | | |
791 | 805 | | |
792 | 806 | | |
793 | 807 | | |
794 | 808 | | |
| 809 | + | |
| 810 | + | |
| 811 | + | |
| 812 | + | |
| 813 | + | |
| 814 | + | |
| 815 | + | |
| 816 | + | |
795 | 817 | | |
796 | 818 | | |
797 | 819 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
126 | 139 | | |
127 | 140 | | |
128 | 141 | | |
| |||
180 | 193 | | |
181 | 194 | | |
182 | 195 | | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
183 | 202 | | |
184 | 203 | | |
185 | 204 | | |
| |||
1185 | 1204 | | |
1186 | 1205 | | |
1187 | 1206 | | |
| 1207 | + | |
1188 | 1208 | | |
1189 | 1209 | | |
1190 | | - | |
| 1210 | + | |
1191 | 1211 | | |
1192 | 1212 | | |
1193 | 1213 | | |
| |||
1219 | 1239 | | |
1220 | 1240 | | |
1221 | 1241 | | |
| 1242 | + | |
1222 | 1243 | | |
1223 | 1244 | | |
1224 | 1245 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
155 | 155 | | |
156 | 156 | | |
157 | 157 | | |
158 | | - | |
159 | | - | |
160 | | - | |
161 | | - | |
162 | | - | |
163 | | - | |
164 | | - | |
165 | | - | |
166 | | - | |
167 | | - | |
168 | | - | |
169 | | - | |
170 | | - | |
171 | | - | |
172 | | - | |
173 | | - | |
174 | | - | |
175 | | - | |
176 | | - | |
177 | | - | |
178 | | - | |
179 | | - | |
180 | | - | |
181 | | - | |
182 | | - | |
183 | | - | |
184 | | - | |
185 | | - | |
186 | | - | |
187 | | - | |
188 | | - | |
189 | | - | |
190 | | - | |
191 | | - | |
192 | | - | |
193 | | - | |
194 | | - | |
195 | | - | |
196 | | - | |
197 | | - | |
198 | 158 | | |
199 | 159 | | |
200 | 160 | | |
| |||
205 | 165 | | |
206 | 166 | | |
207 | 167 | | |
208 | | - | |
209 | | - | |
210 | | - | |
211 | | - | |
212 | | - | |
213 | | - | |
214 | | - | |
215 | | - | |
216 | | - | |
217 | 168 | | |
218 | 169 | | |
219 | 170 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
749 | 749 | | |
750 | 750 | | |
751 | 751 | | |
| 752 | + | |
752 | 753 | | |
753 | 754 | | |
754 | 755 | | |
| |||
926 | 927 | | |
927 | 928 | | |
928 | 929 | | |
| 930 | + | |
929 | 931 | | |
930 | 932 | | |
931 | 933 | | |
| |||
938 | 940 | | |
939 | 941 | | |
940 | 942 | | |
| 943 | + | |
| 944 | + | |
| 945 | + | |
| 946 | + | |
| 947 | + | |
| 948 | + | |
941 | 949 | | |
942 | 950 | | |
943 | 951 | | |
| |||
0 commit comments