From: Clemens Ladisch Date: Tue, 25 Aug 2009 06:15:41 +0000 (+0200) Subject: sound: pcm_lib: fix unsorted list constraint handling X-Git-Tag: v2.6.31-rc8~35^2 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b1ddaf681e362ed453182ddee1699d7487069a16;p=pandora-kernel.git sound: pcm_lib: fix unsorted list constraint handling snd_interval_list() expected a sorted list but did not document this, so there are drivers that give it an unsorted list. To fix this, change the algorithm to work with any list. This fixes the "Slave PCM not usable" error with USB devices that have multiple alternate settings with sample rates in decreasing order, such as the Philips Askey VC010 WebCam. http://bugzilla.kernel.org/show_bug.cgi?id=14028 Reported-and-tested-by: Andrzej Signed-off-by: Clemens Ladisch Cc: Signed-off-by: Takashi Iwai --- Reading git-diff-tree failed