Commit ad66cb7
committed
ASoC: SOF: Intel: hda-dai: use lowest N channels
The ch_mask in a link indicates the locations of the channels.
However, the channels used in each stream are the lowest N channels.
So convert ch_mask to GENMASK(hweight_long(ch_mask) - 1, 0).
Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>1 parent 91550db commit ad66cb7
1 file changed
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
509 | 509 | | |
510 | 510 | | |
511 | 511 | | |
| 512 | + | |
| 513 | + | |
512 | 514 | | |
513 | 515 | | |
514 | 516 | | |
| |||
0 commit comments