]> Git Repo - linux.git/commitdiff
ALSA: usb-audio: scarlett2: Fix device hang with ehci-pci
authorGeoffrey D. Bennett <[email protected]>
Fri, 21 May 2021 08:20:12 +0000 (17:50 +0930)
committerTakashi Iwai <[email protected]>
Fri, 21 May 2021 14:20:25 +0000 (16:20 +0200)
Use usb_rcvctrlpipe() not usb_sndctrlpipe() for USB control input in
the Scarlett Gen 2 mixer driver. This fixes the device hang during
initialisation when used with the ehci-pci host driver.

Fixes: 9e4d5c1be21f ("ALSA: usb-audio: Scarlett Gen 2 mixer interface")
Signed-off-by: Geoffrey D. Bennett <[email protected]>
Cc: <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Takashi Iwai <[email protected]>
sound/usb/mixer_scarlett_gen2.c

index 560c2ade829d08b0c501a963e35a1b4e47692fb0..dcff3e3a49f369d8fda32e9de1e2f3f03c408343 100644 (file)
@@ -635,7 +635,7 @@ static int scarlett2_usb(
        /* send a second message to get the response */
 
        err = snd_usb_ctl_msg(mixer->chip->dev,
-                       usb_sndctrlpipe(mixer->chip->dev, 0),
+                       usb_rcvctrlpipe(mixer->chip->dev, 0),
                        SCARLETT2_USB_VENDOR_SPECIFIC_CMD_RESP,
                        USB_RECIP_INTERFACE | USB_TYPE_CLASS | USB_DIR_IN,
                        0,
This page took 0.071256 seconds and 4 git commands to generate.