]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: usb-audio: Annotate endianess in Scarlett gen2 quirk
authorTakashi Iwai <tiwai@suse.de>
Sat, 1 Feb 2020 08:05:29 +0000 (09:05 +0100)
committerTakashi Iwai <tiwai@suse.de>
Sat, 1 Feb 2020 08:06:24 +0000 (09:06 +0100)
commite145f5d46e02eff504405a3e3a5f6e6b64c72f35
treee628c44aad6bcd6af85448e227d38760e2693155
parentea827f86b94b5f617c89e8b8bac6d60152d9d2e0
ALSA: usb-audio: Annotate endianess in Scarlett gen2 quirk

The Scarlett gen2 mixer quirk code defines a few record types to
communicate via USB hub, and those must be all little-endian.
This patch changes the field types to LE to annotate endianess
properly.  It also fixes the incorrect usage of leXX_to_cpu() in a
couple of places, which was caught by sparse after this change.

Fixes: e34e1783a688 ("ALSA: usb-audio: Scarlett Gen 2 mixer interface")
Cc: <stable@vger.kernel.org>
Link: https://lore.kernel.org/r/20200201080530.22390-2-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/mixer_scarlett_gen2.c