Commit 023efff
Jyri Sarha
Audio: up_down_mixer: Memory, blob, and fast_get allocs to module API
Allocate all memory, blob handlers, and fast_get() buffers through
module API mod_alloc() and friends and remove all redundant rfree(),
comp_data_blob_handler_free(), and fast_put() calls from module unload
functions and init error branches. The two rballoc() calls are
converted to mod_balloc().
When resources are allocated through module API functions they
are automatically freed when the module is unloaded. This
simplifies error handling and unloading process.
Signed-off-by: Jyri Sarha <jyri.sarha@linux.intel.com>1 parent dcbcd74 commit 023efff
1 file changed
+7
-21
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | 14 | | |
16 | 15 | | |
17 | 16 | | |
| |||
324 | 323 | | |
325 | 324 | | |
326 | 325 | | |
327 | | - | |
328 | | - | |
329 | | - | |
330 | | - | |
331 | | - | |
332 | | - | |
333 | 326 | | |
334 | 327 | | |
335 | 328 | | |
| |||
342 | 335 | | |
343 | 336 | | |
344 | 337 | | |
345 | | - | |
| 338 | + | |
346 | 339 | | |
347 | 340 | | |
348 | 341 | | |
349 | 342 | | |
350 | 343 | | |
351 | 344 | | |
352 | 345 | | |
353 | | - | |
354 | | - | |
355 | | - | |
356 | | - | |
357 | | - | |
358 | | - | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
359 | 350 | | |
360 | 351 | | |
361 | 352 | | |
| |||
380 | 371 | | |
381 | 372 | | |
382 | 373 | | |
383 | | - | |
384 | | - | |
| 374 | + | |
385 | 375 | | |
386 | 376 | | |
387 | 377 | | |
388 | 378 | | |
389 | | - | |
| 379 | + | |
390 | 380 | | |
391 | 381 | | |
392 | 382 | | |
393 | | - | |
394 | | - | |
395 | | - | |
396 | | - | |
397 | 383 | | |
398 | 384 | | |
399 | 385 | | |
| |||
0 commit comments