]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ASoC: soc-utils: Remove PAGE_SIZE compile-time constant assumption
authorRyan Roberts <ryan.roberts@arm.com>
Mon, 21 Oct 2024 13:03:07 +0000 (14:03 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 21 Oct 2024 13:14:56 +0000 (14:14 +0100)
commit5337ff41d37d4171868bb7b34dade68e269743f0
treec41e155363208c08d28df352be10e69163e0b1c8
parent478fc2f4212e1dc1c247f3bff6856146305850df
ASoC: soc-utils: Remove PAGE_SIZE compile-time constant assumption

In pursuit of the goal of supporting boot-time page size selection,
remove use of PAGE_SIZE from the dummy_dma_hardware struct definition,
since the value is not known at compile-time for this config.

Given the previous parameters were "essentially random", let's just
hardcode them as 4K and 4K*2 to sidestep the need to boot-time patch the
structure with the selected PAGE_SIZE.

Signed-off-by: Ryan Roberts <ryan.roberts@arm.com>
Link: https://patch.msgid.link/20241021130308.3616451-1-ryan.roberts@arm.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/soc-utils.c