From: Daniel Mack Date: Fri, 11 Jun 2010 15:46:33 +0000 (+0200) Subject: ALSA: usb-audio: parse UAC2 sample rate ranges correctly X-Git-Tag: v2.6.35-rc4~61^2~3^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=67c103664a06fa590f2990c01773dfa1dffcefdc;p=pandora-kernel.git ALSA: usb-audio: parse UAC2 sample rate ranges correctly A device may report its supported sample rates in ranges rather than in discrete triplets. The code used to only parse the MIN field instead of properly paying attention to the MAX and RES values. Also, handle RES values of 1 correctly and announce a continous sample rate range in this case. Signed-off-by: Daniel Mack Reported-by: Alex Lee Signed-off-by: Takashi Iwai --- Reading git-diff-tree failed