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 <lkp@intel.com> Closes: https://lore.kernel.org/oe-kbuild-all/202501212331.SaePSmsA-lkp@intel.com/ Link: https://patch.msgid.link/20250121170032.7236-3-tiwai@suse.de Signed-off-by: Takashi Iwai <tiwai@suse.de>
1 parent e721701 commit f08cc80

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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)