[alsa-devel] [PATCH v3 10/25] ASoC: qcom: q6asm: Add support to memory map and unmap
Mark Brown
broonie at kernel.org
Thu Mar 1 22:28:44 CET 2018
On Tue, Feb 13, 2018 at 04:58:22PM +0000, srinivas.kandagatla at linaro.org wrote:
> + num_regions = is_contiguous ? 1 : periods;
> + buf_sz = is_contiguous ? (period_sz * periods) : period_sz;
Please write normal if statements, it's much easier to read.
> + buf_sz = PAGE_ALIGN(buf_sz);
I don't understand what this is doing, buf_sz is a length not an address
so why are we attempting to align it?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://mailman.alsa-project.org/pipermail/alsa-devel/attachments/20180301/30808dfe/attachment.sig>
More information about the Alsa-devel
mailing list