From: Russell King Subject: [PATCH 019/107] drivers: staging: imx-drm: Fix audio buffer sizes MIME-Version: 1.0 Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="utf-8" From: Sean Cross Pulseaudio connects to dw-hdmi-audio with a period size of 1024 and a buffer size of 4408 or so. Because of this, it overruns its buffer and panics. Inform ALSA that we'd like the buffer size to be a multiple of the period size, to prevent this problem. Signed-off-by: Sean Cross Signed-off-by: Russell King --- drivers/staging/imx-drm/dw-hdmi-audio.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/staging/imx-drm/dw-hdmi-audio.c b/drivers/staging/imx-drm/dw-hdmi-audio.c index 4f9790dea6db..ee3f8c9b5695 100644 --- a/drivers/staging/imx-drm/dw-hdmi-audio.c +++ b/drivers/staging/imx-drm/dw-hdmi-audio.c @@ -331,6 +331,7 @@ static int dw_hdmi_open(struct snd_pcm_substream *substream) runtime->hw = dw_hdmi_hw; snd_pcm_limit_hw_rates(runtime); + snd_pcm_hw_constraint_integer(runtime, SNDRV_PCM_HW_PARAM_PERIODS); return 0; } -- 1.8.3.1