]> git.alsa-project.org Git - alsa-lib.git/commit
PCM - Change the hw_params determination order
authorTakashi Iwai <tiwai@suse.de>
Wed, 9 Sep 2009 12:16:06 +0000 (14:16 +0200)
committerTakashi Iwai <tiwai@suse.de>
Wed, 9 Sep 2009 12:16:06 +0000 (14:16 +0200)
commitcd7070bf4b7afcdcd9dbde9d7363781aa3e1b581
tree19abc376cef9b618655d54ba37d918b0e06a33f0
parent1f126fd7c6ef37b04ad745609bbebf0dbbf2e1fd
PCM - Change the hw_params determination order

In snd_pcm_hw_params_choose(), set the buffer size before the period
size and time as default.  This will give more useful configuration for
most of apps, i.e. larger buffer size.

For apps that require the old behavior, now the function checks the
environment variable $LIBASOUND_COMPAT.  If this variable is set to
non-empty, the hw_params is determined in the old way, first period
then buffer sizes.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
src/pcm/pcm_params.c