Commit f829f42
committed
audio: chain_dma: Fix error handling in chain_init()
If the dma_request_channel() for the link fails we print the error, jump
to error_host to release the channel and return with success.
This can lead to firmware crash later on when the ChainDMA is started.
Correct the error handling by setting the err correctly in this case and
also update the prints to print unique strings and information to help
debugging.
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>1 parent f1400dc commit f829f42
1 file changed
Lines changed: 8 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
458 | 458 | | |
459 | 459 | | |
460 | 460 | | |
461 | | - | |
462 | | - | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
463 | 464 | | |
464 | 465 | | |
465 | 466 | | |
466 | 467 | | |
467 | 468 | | |
468 | 469 | | |
469 | | - | |
| 470 | + | |
470 | 471 | | |
471 | 472 | | |
472 | 473 | | |
473 | 474 | | |
474 | 475 | | |
475 | 476 | | |
476 | 477 | | |
477 | | - | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
478 | 481 | | |
479 | 482 | | |
480 | 483 | | |
481 | 484 | | |
482 | 485 | | |
483 | 486 | | |
484 | 487 | | |
485 | | - | |
| 488 | + | |
486 | 489 | | |
487 | 490 | | |
488 | 491 | | |
| |||
0 commit comments