Commit 3716791
ASoC: macaudio: constrain frontend channel counts
In order to support the wide range of audio arrangements possible
on this platform in a generic way, it is necessary for the frontend
PCMs to be populated with enough TDM slots to cover all intended use
cases. Userspace therefore attempts to open "phantom" channels
when a frontend has more channels than its associated backend, which
results in garbled audio samples and dropped frames.
We must therefore dynamically constrain the frontends when they
are started to ensure that userspace can never open more channels
than are present on the hardware being represented by the
frontend in question.
Signed-off-by: James Calligeros <[email protected]>1 parent 1bfa127 commit 3716791
1 file changed
Lines changed: 25 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| 55 | + | |
55 | 56 | | |
56 | 57 | | |
57 | 58 | | |
| |||
345 | 346 | | |
346 | 347 | | |
347 | 348 | | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
348 | 353 | | |
349 | 354 | | |
350 | 355 | | |
| |||
455 | 460 | | |
456 | 461 | | |
457 | 462 | | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
458 | 482 | | |
459 | 483 | | |
460 | 484 | | |
| |||
495 | 519 | | |
496 | 520 | | |
497 | 521 | | |
| 522 | + | |
498 | 523 | | |
499 | 524 | | |
500 | 525 | | |
| |||
0 commit comments