PCM - Change the hw_params determination order
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 <4596b3305151c7ee743192a95d394341e3d3b644@suse.de>

Distrotech/alsa-lib,tiwai/alsa-lib,alsa-project/alsa-lib,takaswie/alsa-lib,lgirdwood/alsa-lib,zedongchen/alsa-lib,alsa-project/alsa-lib,gittup/alsa-lib,lgirdwood/alsa-lib,mikelima/alsa-lib,tiwai/alsa-lib,mikelima/alsa-lib,tiwai/alsa-lib,takaswie/alsa-lib,lgirdwood/alsa-lib,takaswie/alsa-lib,gittup/alsa-lib,takaswie/alsa-lib,gittup/alsa-lib,Distrotech/alsa-lib,mikelima/alsa-lib,mengdonglin/alsa-lib,mikelima/alsa-lib,alsa-project/alsa-lib,takaswie/alsa-lib,zedongchen/alsa-lib,alsa-project/alsa-lib,Distrotech/alsa-lib,mengdonglin/alsa-lib,zedongchen/alsa-lib,gittup/alsa-lib,tiwai/alsa-lib,mikelima/alsa-lib,mengdonglin/alsa-lib,zedongchen/alsa-lib,lgirdwood/alsa-lib,Distrotech/alsa-lib,lgirdwood/alsa-lib,zedongchen/alsa-lib,Distrotech/alsa-lib,mengdonglin/alsa-lib,mengdonglin/alsa-lib