pcm: introduce defaults.pcm.compat to change the params choose behaviour
authorJaroslav Kysela <perex@perex.cz>
Wed, 11 Aug 2010 18:20:40 +0000 (20:20 +0200)
committerJaroslav Kysela <perex@perex.cz>
Wed, 11 Aug 2010 18:20:40 +0000 (20:20 +0200)
commitde606e9c256f5a776c1625b174600a539007f38d
tree873c275da870efc3f0e1ba8bb1389d4fe89ed21c
parent09879a4bb58199f64abcb8df506f917c8efc2383
pcm: introduce defaults.pcm.compat to change the params choose behaviour

Having getenv directly in the function is not a good idea. Allow
configuration of the behaviour change in snd_pcm_param_choose() function
using alsa.conf. Use the environment variable LIBASOUND_COMPAT only
as fallback.

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
src/conf/alsa.conf
src/pcm/pcm.c
src/pcm/pcm_local.h
src/pcm/pcm_params.c