]> git.alsa-project.org Git - alsa-lib.git/commit
pcm: null: Do not allow a period size of 0
authorTimo Wischer <twischer@de.adit-jv.com>
Mon, 8 Apr 2019 08:55:54 +0000 (10:55 +0200)
committerTakashi Iwai <tiwai@suse.de>
Mon, 8 Apr 2019 12:27:29 +0000 (14:27 +0200)
commit0d92f2d39a47b5ef4e7496b351be43b8ec7c044e
tree7b96a6df90408d65e4e86eab198dbeccdcfb6a84
parentfc0e54c3cc6ad48d12d2cdad18df4473c559a448
pcm: null: Do not allow a period size of 0

Some applications do not expect that get_period_size_min() could
return 0. Therefore these applications cannot use the null plugin without
this patch.
Due to there is no use case for having a period size of 0 this patch
disallows a period size of 0 when using the null plugin.

Signed-off-by: Timo Wischer <twischer@de.adit-jv.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
src/pcm/pcm_null.c