ALSA: usb-audio: Trust fields given in the quirk
authorMark Hills <mark@xwax.org>
Sun, 17 Mar 2013 11:07:54 +0000 (11:07 +0000)
committerTakashi Iwai <tiwai@suse.de>
Mon, 18 Mar 2013 07:46:37 +0000 (08:46 +0100)
commit59ea586f54f27fde1202214f1525713356a44918
tree1034019a282b04f4007ee1c49916d70fbf4073a5
parent5e212332cc7eed0ffbf91fbe5bab6e2a44b83de6
ALSA: usb-audio: Trust fields given in the quirk

The maxpacksize field is given in some quirks, but it gets ignored (in
favour of wMaxPacketSize from the first endpoint.) This patch favours
the one in the quirk.

Digidesign Mbox and Mbox 2 are the only affected quirks and the devices
are assumed to be working without this patch. So for safety against the
values in the quirk being incorrect, remove them.

The datainterval is also ignored but there are not currently any quirks
which choose to override this.

Cc: Damien Zammit <damien@zamaudio.com>
Cc: Chris J Arges <christopherarges@gmail.com>
Signed-off-by: Mark Hills <mark@xwax.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/quirks-table.h
sound/usb/quirks.c