Commit fbce9e6
committed
topology2: ipc3: fix Yoga Book stereo slot masks
SOF IPC3 derives the DAI channel count from the population count of the
active TDM slot mask. The original topology enabled all four frame slots
with mask 0xf while exposing two-channel PCM streams, so
STREAM_PCM_PARAMS failed with -EINVAL.
Keep the required four-slot, 25-bit frame geometry but activate only the
two stereo slots with mask 0x3. Use the defined default_hw_config_id
attribute and add a general topology artifact verifier. The verifier
checks PCM and backend-link properties and accepts command-line overrides
for use with other configurations.
Tested on a Lenovo Yoga Book YB1-X91L with PCM0 playback and capture in
S16_LE, S24_LE and S32_LE at 48 kHz stereo, plus PCM1 deep-buffer
playback.
Signed-off-by: Maurizio Casciano <mauriziocasciano7@gmail.com>1 parent 86ad78f commit fbce9e6
3 files changed
Lines changed: 382 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
416 | 416 | | |
417 | 417 | | |
418 | 418 | | |
| 419 | + | |
| 420 | + | |
419 | 421 | | |
420 | 422 | | |
421 | 423 | | |
422 | 424 | | |
423 | | - | |
424 | | - | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
425 | 434 | | |
426 | 435 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
| |||
47 | 48 | | |
48 | 49 | | |
49 | 50 | | |
50 | | - | |
| 51 | + | |
51 | 52 | | |
52 | 53 | | |
53 | 54 | | |
| |||
66 | 67 | | |
67 | 68 | | |
68 | 69 | | |
69 | | - | |
70 | | - | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
71 | 74 | | |
72 | 75 | | |
73 | 76 | | |
| |||
0 commit comments