ALSA: usb-audio - Fix non-continuous rate detection
authorTakashi Iwai <tiwai@suse.de>
Mon, 16 Feb 2009 21:48:12 +0000 (22:48 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 17 Mar 2009 00:52:49 +0000 (17:52 -0700)
commit052bfb327a2624ac0cc36a4a0a420488bc28b363
tree54b9b0f50373134ade851fda0efb2fe8106fbae2
parent680e9398245ae6d34419624cfa716b13dd2bb0b7
ALSA: usb-audio - Fix non-continuous rate detection

commit 0412558c873f716efe902b397af0653a550f7341 upstream.

The detection of non-continuous rates (given via rate tables) isn't
processed properly (e.g. for type II).

This patch fixes and simplifies the detection code.

Tested-by: Joris van Rantwijk <jorispubl@xs4all.nl>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
sound/usb/usbaudio.c