From: Clemens Ladisch Date: Mon, 2 Mar 2009 10:45:50 +0000 (+0100) Subject: sound: usb-audio: fix rules check for 32-channel devices X-Git-Tag: v2.6.30-rc1~676^2~1^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eab2b553c3d3ed20698c4a9c7e049a60b804e2f5;p=pandora-kernel.git sound: usb-audio: fix rules check for 32-channel devices When storing the channel numbers used by a format, and if the device happens to support 32 channels, the code would try to store 1<<32 in a 32-bit value. Since no valid format can have zero channels, we can use 1<<(channels-1) instead of 1< Signed-off-by: Takashi Iwai --- Reading git-diff-tree failed