]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ALSA: Fix handling of multiple msbits constraints on the same runtime
authorLars-Peter Clausen <lars@metafoo.de>
Mon, 29 Dec 2014 17:43:36 +0000 (18:43 +0100)
committerTakashi Iwai <tiwai@suse.de>
Tue, 30 Dec 2014 15:27:37 +0000 (16:27 +0100)
commit19f52fae5adb7f2fd5b75251f9bd761f43a36476
treeed97d3d1fde49781acad092b934ad780c76494f2
parent97bf6af1f928216fd6c5a66e8a57bfa95a659672
ALSA: Fix handling of multiple msbits constraints on the same runtime

If the sound card is made up of discrete components, each with their own
driver (e.g. like in the ASoC case), we might end up with multiple msbits
constraint rules installed. Currently this will result in msbits being set
to whatever the last rule set it to.

This patch updates the behavior of the rule to choose the minimum (other
than zero) of all the installed rules.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/pcm_lib.c