From: Takashi Iwai Date: Mon, 8 Jun 2009 13:50:42 +0000 (+0200) Subject: ALSA: emu10k1 - Fix minimum periods for efx playback X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=806d31d73843a018cb239fc16ba53d82f4d8dc33;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git ALSA: emu10k1 - Fix minimum periods for efx playback EFX playback stream should have periods_min = 2 to avoid the buffer position overflow (due to restrictions of the pcm-indirect helper). Signed-off-by: Takashi Iwai --- diff --git a/sound/pci/emu10k1/emupcm.c b/sound/pci/emu10k1/emupcm.c index 78f62fd404c2..55b83ef73c63 100644 --- a/sound/pci/emu10k1/emupcm.c +++ b/sound/pci/emu10k1/emupcm.c @@ -1736,7 +1736,7 @@ static struct snd_pcm_hardware snd_emu10k1_fx8010_playback = .buffer_bytes_max = (128*1024), .period_bytes_min = 1024, .period_bytes_max = (128*1024), - .periods_min = 1, + .periods_min = 2, .periods_max = 1024, .fifo_size = 0, };