]> git.alsa-project.org Git - alsa-utils.git/commit
speaker-test: Fix floating-point exception bug
authorTakashi Iwai <tiwai@suse.de>
Wed, 26 Nov 2008 13:27:24 +0000 (14:27 +0100)
committerTakashi Iwai <tiwai@suse.de>
Wed, 26 Nov 2008 13:27:24 +0000 (14:27 +0100)
commit0d6134450ea7db82128138c9ac1bc84e8696dce4
tree25a1694aff32325d3fd054f74ecdb896688cb48c
parent6232f1c96cde1fee247e95cd97235c48cc7b168d
speaker-test: Fix floating-point exception bug

The period_size an buffer_size parameters must be taken after calling
snd_pcm_hw_params().  Otherwise they could be undefined numbers.
For example, period_size gets 0 when pcsp driver is used, resulting in
a floating-point exception error.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
speaker-test/speaker-test.c