Commit d5557e0
committed
sink: document the frame-size divisor in free-frames
Free-frames divides the free size by the frame size, which is the channel
count times the sample size. A zero divisor was the concern, as the
channel count is host-supplied; it is now rejected at module init
(module_adapter_ipc4.c) before it reaches the stream, and the sample size
is fixed by a valid frame format.
Document that invariant here rather than re-checking it on this hot path.
Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>1 parent 3f7738d commit d5557e0
1 file changed
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
112 | 117 | | |
113 | 118 | | |
114 | 119 | | |
| |||
0 commit comments