Commit f08cc80f authored by Takashi Iwai's avatar Takashi Iwai
Browse files

ALSA: usb: fcp: Fix incorrect resp->opcode retrieval



Fix a wrong conversion macro used for resp->opcode, which is __le32.

Fixes: 46757a3e ("ALSA: FCP: Add Focusrite Control Protocol driver")
Reported-by: default avatarkernel 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: default avatarTakashi Iwai <tiwai@suse.de>
parent e7217011
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -266,7 +266,7 @@ static int fcp_usb(struct usb_mixer_interface *mixer, u32 opcode,
	if (req->opcode != resp->opcode) {
		usb_audio_err(mixer->chip,
			      "FCP response %08x opcode mismatch %08x\n",
			      opcode, le16_to_cpu(resp->opcode));
			      opcode, le32_to_cpu(resp->opcode));
		return -EINVAL;
	}