]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: usb-audio: parse UAC2 sample rate ranges correctly
authorDaniel Mack <daniel@caiaq.de>
Fri, 11 Jun 2010 15:46:33 +0000 (17:46 +0200)
committerTakashi Iwai <tiwai@suse.de>
Fri, 11 Jun 2010 16:06:12 +0000 (18:06 +0200)
commit4aa2bb6b32747a927d723e41eeb9b07ac7e41e7a
tree8b68605b1381b65e793222fd5c0625c642c27b35
parentea9d79dec93a741e055d5fdd04584eaeda322097
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 <daniel@caiaq.de>
Reported-by: Alex Lee <alexlee188@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/format.c