ALSA: usb-audio: Move set-interface-first workaround into common quirk
[linux-2.6-microblaze.git] / sound / usb / endpoint.c
index e6d58d7..79a8c56 100644 (file)
@@ -1293,10 +1293,8 @@ int snd_usb_endpoint_configure(struct snd_usb_audio *chip,
         * to be set up before parameter setups
         */
        iface_first = ep->cur_audiofmt->protocol == UAC_VERSION_1;
-       /* Workaround for Sony WALKMAN NW-A45 DAC;
-        * it requires the interface setup at first like UAC1
-        */
-       if (chip->usb_id == USB_ID(0x054c, 0x0b8c))
+       /* Workaround for devices that require the interface setup at first like UAC1 */
+       if (chip->quirk_flags & QUIRK_FLAG_SET_IFACE_FIRST)
                iface_first = true;
        if (iface_first) {
                err = endpoint_set_interface(chip, ep, true);