Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ASoC: bcm2835-i2s: Set the PERIOD_BYTES min to 256 #6386

Merged
merged 1 commit into from
Sep 26, 2024

Conversation

pelwell
Copy link
Contributor

@pelwell pelwell commented Sep 25, 2024

Commit [1] set the minimum PERIOD_BYTES value to the product of the DMA burst size and 8. For the I2S interface on BCM2835 that equates to 16 where it used to be 256. ffmpeg uses the minimum value as its preferred value, leading to many, many very small periods, which affects performance and leads to complaints about DTS timestamps.

Restore the previous behaviour and performance by making the bcm2835-i2s driver set a minimum PERIOD_BYTES value of 256.

Link: #5709

[1] 300689f ("ASoC: soc-generic-dmaengine-pcm: set period_bytes_min based on maxburst")

Commit [1] set the minimum PERIOD_BYTES value to the product of the DMA
burst size and 8. For the I2S interface on BCM2835 that equates to 16
where it used to be 256. ffmpeg uses the minimum value as its preferred
value, leading to many, many very small periods, which affects
performance and leads to complaints about DTS timestamps.

Restore the previous behaviour and performance by making the bcm2835-i2s
driver set a minimum PERIOD_BYTES value of 256.

Link: raspberrypi#5709

[1] 300689f ("ASoC: soc-generic-dmaengine-pcm: set
period_bytes_min based on maxburst")

Signed-off-by: Phil Elwell <phil@raspberrypi.com>
@pelwell pelwell merged commit a382d82 into raspberrypi:rpi-6.6.y Sep 26, 2024
12 checks passed
popcornmix added a commit to raspberrypi/firmware that referenced this pull request Sep 26, 2024
See: raspberrypi/linux#6368

kernel: tty/serial: pl011: Also unregister pl011_axi_platform_driver
See: raspberrypi/linux#6380

kernel: overlays: wm8960-soundcard: Fix clock declaration
See: raspberrypi/linux#6387

kernel: Fix speaker disabling issue after closing microphone app
See: raspberrypi/linux#6383

kernel: ASoC: bcm2835-i2s: Set the PERIOD_BYTES min to 256
See: raspberrypi/linux#6386

kernel: drivers: media: imx500: Simplify the vblank control init
See: raspberrypi/linux#6388
popcornmix added a commit to raspberrypi/rpi-firmware that referenced this pull request Sep 26, 2024
See: raspberrypi/linux#6368

kernel: tty/serial: pl011: Also unregister pl011_axi_platform_driver
See: raspberrypi/linux#6380

kernel: overlays: wm8960-soundcard: Fix clock declaration
See: raspberrypi/linux#6387

kernel: Fix speaker disabling issue after closing microphone app
See: raspberrypi/linux#6383

kernel: ASoC: bcm2835-i2s: Set the PERIOD_BYTES min to 256
See: raspberrypi/linux#6386

kernel: drivers: media: imx500: Simplify the vblank control init
See: raspberrypi/linux#6388
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant