summaryrefslogtreecommitdiff
path: root/sound/usb/card.c
diff options
context:
space:
mode:
Diffstat (limited to 'sound/usb/card.c')
-rw-r--r--sound/usb/card.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/sound/usb/card.c b/sound/usb/card.c
index 803953a9bff3..2da8ad75fd96 100644
--- a/sound/usb/card.c
+++ b/sound/usb/card.c
@@ -244,6 +244,21 @@ static int snd_usb_create_streams(struct snd_usb_audio *chip, int ctrlif)
usb_ifnum_to_if(dev, ctrlif)->intf_assoc;
if (!assoc) {
+ /*
+ * Firmware writers cannot count to three. So to find
+ * the IAD on the NuForce UDH-100, also check the next
+ * interface.
+ */
+ struct usb_interface *iface =
+ usb_ifnum_to_if(dev, ctrlif + 1);
+ if (iface &&
+ iface->intf_assoc &&
+ iface->intf_assoc->bFunctionClass == USB_CLASS_AUDIO &&
+ iface->intf_assoc->bFunctionProtocol == UAC_VERSION_2)
+ assoc = iface->intf_assoc;
+ }
+
+ if (!assoc) {
snd_printk(KERN_ERR "Audio class v2 interfaces need an interface association\n");
return -EINVAL;
}
rome/commit/lib/xz?id=faa16bc404d72a5afb857c924c83a5f691f83386'>lib: Use existing define with polynomialKrzysztof Kozlowski1-1/+2 2017-10-12lib/xz: Add fall-through comments to a switch statementLasse Collin1-0/+16 2014-06-04lib/xz: enable all filters by default in KconfigLasse Collin1-12/+12 2014-06-04lib/xz: add comments for the intentionally missing break statementsLasse Collin1-0/+4 2013-03-13decompressors: fix typo "POWERPC"Paul Bolle1-1/+1 2013-02-21decompressors: make the default XZ_DEC_* config match the selected architectureFlorian Fainelli1-6/+6 2013-02-21decompressors: drop dependency on CONFIG_EXPERTFlorian Fainelli1-6/+6 2013-02-21decompressors: group XZ_DEC_* symbols under an if XZ_BCJ / endifFlorian Fainelli1-6/+4 2011-09-21XZ: Fix incorrect XZ_BUF_ERRORLasse Collin1-7/+20 2011-07-24XZ: Fix missing <linux/kernel.h> includeLasse Collin1-1/+1 2011-05-02XZ decompressor: Fix decoding of empty LZMA2 streamsLasse Collin1-3/+3 2011-01-20kconfig: rename CONFIG_EMBEDDED to CONFIG_EXPERTDavid Rientjes1-6/+6 2011-01-13decompressors: add XZ decompressor moduleLasse Collin11-0/+3344