summaryrefslogtreecommitdiffstats
path: root/sound/core/pcm_compat.c
diff options
context:
space:
mode:
authorClemens Ladisch <clemens@ladisch.de>2009-08-25 08:15:41 +0200
committerTakashi Iwai <tiwai@suse.de>2009-08-25 08:52:34 +0200
commitb1ddaf681e362ed453182ddee1699d7487069a16 (patch)
tree60d48ea825579d8df50836fd921668a2320adbe6 /sound/core/pcm_compat.c
parentedd1365e90eb32625041d09de427d7b03461bc5c (diff)
downloadlinux-b1ddaf681e362ed453182ddee1699d7487069a16.tar.gz
linux-b1ddaf681e362ed453182ddee1699d7487069a16.tar.bz2
linux-b1ddaf681e362ed453182ddee1699d7487069a16.zip
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 <adkadk@gmail.com> Signed-off-by: Clemens Ladisch <clemens@ladisch.de> Cc: <stable@kernel.org> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/core/pcm_compat.c')
0 files changed, 0 insertions, 0 deletions