ALSA: usb-audio: scarlett2: Update get_config to do endian conversion
authorGeoffrey D. Bennett <g@b4.vu>
Tue, 22 Jun 2021 17:04:09 +0000 (02:34 +0930)
committerTakashi Iwai <tiwai@suse.de>
Tue, 22 Jun 2021 19:42:24 +0000 (21:42 +0200)
commitac34df733d2dfe3b553897a1e9e1a44414f09834
tree995a50bd19b8d56e133dded7bd43688e8cd66357
parente914d8432cb4b99e8a3c42c12e912179a1cf3e73
ALSA: usb-audio: scarlett2: Update get_config to do endian conversion

For configuration items with a size of 16, scarlett2_usb_get_config()
was filling *buf with little-endian data. Update it to convert to CPU
endian. This function is not currently used so affects nothing yet;
will be used by the upcoming talkback feature.

Signed-off-by: Geoffrey D. Bennett <g@b4.vu>
Link: https://lore.kernel.org/r/cbc8b6eedd859dd27086ab4126d724a86dd50bcb.1624379707.git.g@b4.vu
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/mixer_scarlett_gen2.c