Skip to content

Commit 5337ff4

Browse files
ryanhrobbroonie
authored andcommitted
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>
1 parent 478fc2f commit 5337ff4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

sound/soc/soc-utils.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,8 @@ static const struct snd_pcm_hardware dummy_dma_hardware = {
103103
.info = SNDRV_PCM_INFO_INTERLEAVED |
104104
SNDRV_PCM_INFO_BLOCK_TRANSFER,
105105
.buffer_bytes_max = 128*1024,
106-
.period_bytes_min = PAGE_SIZE,
107-
.period_bytes_max = PAGE_SIZE*2,
106+
.period_bytes_min = 4096,
107+
.period_bytes_max = 4096*2,
108108
.periods_min = 2,
109109
.periods_max = 128,
110110
};

0 commit comments

Comments
 (0)