ALSA: usb-audio: fix control pipe direction
PATCH 1/1 ALSA: usb-audio: fix control pipe direction
Since the requesttype has USB_DIR_OUT the pipe should be constructed with usb_sndctrlpipe().
Signed-off-by Roy Vegard Ovesen <[email protected]>
--- sound/usb/mixer_s1810c.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
sound/usb/mixer_s1810c.c +1 -1
@@ -178,7 +178,7 @@ snd_sc1810c_get_status_field(struct usb_device *dev, pkt_out.fields[SC1810C_STATE_F1_IDX ] =SC1810C_SET_STATE_F1 ; pkt_out.fields[SC1810C_STATE_F2_IDX ] =SC1810C_SET_STATE_F2 ; - ret =snd_usb_ctl_msg (dev,usb_rcvctrlpipe (dev,0 ), + ret =snd_usb_ctl_msg (dev,usb_sndctrlpipe (dev,0 ),SC1810C_SET_STATE_REQ ,SC1810C_SET_STATE_REQTYPE , (*seqnum),0 , &pkt_out,sizeof (pkt_out));
Signature · 1 line
2.51.0
Takashi Iwai
AppliedQuoted 5 lines · Roy Vegard Ovesen
Since the requesttype has
USB_DIR_OUTthe pipe should be constructed withusb_sndctrlpipe().Signed-off-by Roy Vegard Ovesen <[email protected]>
Thanks, applied now with the missing Fixes tag.
Takashi