Skip to content

Commit 27d5032

Browse files
committed
bcm2835-i2s: match period_bytes_max to DMA controller limit
bcm2835-dma supports a maximum transfer length of 64k-4 bytes on the lite channels. period_bytes_max should reflect this limit. Signed-off-by: Matthias Reichl <[email protected]>
1 parent cedd26f commit 27d5032

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sound/soc/bcm/bcm2835-i2s.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -806,7 +806,7 @@ static struct snd_pcm_hardware bcm2835_pcm_hardware = {
806806
SNDRV_PCM_FMTBIT_S24_LE |
807807
SNDRV_PCM_FMTBIT_S32_LE,
808808
.period_bytes_min = 32,
809-
.period_bytes_max = 64 * PAGE_SIZE,
809+
.period_bytes_max = SZ_64K - 4,
810810
.periods_min = 2,
811811
.periods_max = 255,
812812
.buffer_bytes_max = 128 * PAGE_SIZE,

0 commit comments

Comments
 (0)