commit | eab2b553c3d3ed20698c4a9c7e049a60b804e2f5 | [log] [tgz] |
---|---|---|
author | Clemens Ladisch <clemens@ladisch.de> | Mon Mar 02 11:45:50 2009 +0100 |
committer | Takashi Iwai <tiwai@suse.de> | Mon Mar 02 14:49:58 2009 +0100 |
tree | a024f65cc06de0de4a07271135cfb6c7d1ec3864 | |
parent | f3990e610a157e9c36af85a75bc66260dff31f40 [diff] |
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<<channels so that all the channel numbers that we test for fit into 32 bits. Signed-off-by: Clemens Ladisch <clemens@ladisch.de> Signed-off-by: Takashi Iwai <tiwai@suse.de>