Commit ccce7d6
committed
smart_amp_test: bound channel counts to platform max
The sample component took its channel counts from the streams and used
them to index the platform-sized channel map without bounds. Reject
counts above the platform maximum.
Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>1 parent 9105ea4 commit ccce7d6
1 file changed
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
518 | 518 | | |
519 | 519 | | |
520 | 520 | | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
521 | 531 | | |
522 | 532 | | |
523 | 533 | | |
| |||
0 commit comments