Skip to content

Commit f08cc80

Browse files
committed
ALSA: usb: fcp: Fix incorrect resp->opcode retrieval
Fix a wrong conversion macro used for resp->opcode, which is __le32. Fixes: 46757a3 ("ALSA: FCP: Add Focusrite Control Protocol driver") Reported-by: kernel test robot <[email protected]> Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/ Link: https://patch.msgid.link/[email protected] Signed-off-by: Takashi Iwai <[email protected]>
1 parent e721701 commit f08cc80

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sound/usb/fcp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ static int fcp_usb(struct usb_mixer_interface *mixer, u32 opcode,
266266
if (req->opcode != resp->opcode) {
267267
usb_audio_err(mixer->chip,
268268
"FCP response %08x opcode mismatch %08x\n",
269-
opcode, le16_to_cpu(resp->opcode));
269+
opcode, le32_to_cpu(resp->opcode));
270270
return -EINVAL;
271271
}
272272

0 commit comments

Comments
 (0)