summaryrefslogtreecommitdiff
path: root/sound/usb
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2025-01-21 18:00:30 +0100
committerTakashi Iwai <tiwai@suse.de>2025-01-21 18:01:42 +0100
commitf08cc80f69be62beb7a63cd4813c7989c8708831 (patch)
tree77ef448772e5df12eb50f451183071e26fe5c74e /sound/usb
parente7217011ddd8e86a0d18c6cbfb4f14da3d18eee0 (diff)
downloadlinux-f08cc80f69be62beb7a63cd4813c7989c8708831.tar.gz
linux-f08cc80f69be62beb7a63cd4813c7989c8708831.tar.bz2
linux-f08cc80f69be62beb7a63cd4813c7989c8708831.zip
ALSA: usb: fcp: Fix incorrect resp->opcode retrieval
Fix a wrong conversion macro used for resp->opcode, which is __le32. Fixes: 46757a3e7d50 ("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>
Diffstat (limited to 'sound/usb')
-rw-r--r--sound/usb/fcp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/usb/fcp.c b/sound/usb/fcp.c
index 92e3caab0b82..cfa131b35e43 100644
--- a/sound/usb/fcp.c
+++ b/sound/usb/fcp.c
@@ -266,7 +266,7 @@ retry:
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;
}