Commit 930bd10
audio: copier: reject ALH multi-gateway config with zero count
copier_alh_assign_dai_index() rejected only count > MAX and count < 0,
letting count == 0 pass. A zero count creates a SOF_COMP_DAI copier with
endpoint_num == 0 (the dai-creation loop never runs), which later makes
copier_position() return -EINVAL before writing posn.
Reject count <= 0.
Signed-off-by: Adrian Bonislawski <adrian.bonislawski@intel.com>1 parent 34a8d7c commit 930bd10
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
111 | | - | |
| 111 | + | |
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
| |||
138 | 138 | | |
139 | 139 | | |
140 | 140 | | |
141 | | - | |
| 141 | + | |
142 | 142 | | |
143 | 143 | | |
144 | 144 | | |
| |||
0 commit comments