ALSA: scarlett2: Add support for reading firmware version
authorGeoffrey D. Bennett <g@b4.vu>
Thu, 26 Oct 2023 18:05:46 +0000 (04:35 +1030)
committerTakashi Iwai <tiwai@suse.de>
Fri, 27 Oct 2023 09:23:01 +0000 (11:23 +0200)
commit701949cc01283675054636f741f505f2627454b7
tree5a9496e55d5762532370b2377b5529bee20f60ae
parentf3c42a2da45f87d84bd046e83d1e964d7c41dbb5
ALSA: scarlett2: Add support for reading firmware version

The 84 bytes read during initialisation step 2 were previously
ignored. This patch retrieves the firmware version from bytes 8-11,
stores it in the scarlett2_data struct, and makes it available
through a new control "Firmware Version".

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