ALSA: scarlett2: Add support for Gen 4 style parameters
authorGeoffrey D. Bennett <g@b4.vu>
Tue, 26 Dec 2023 18:06:29 +0000 (04:36 +1030)
committerTakashi Iwai <tiwai@suse.de>
Fri, 29 Dec 2023 14:52:12 +0000 (15:52 +0100)
commit4fa07ff7b625e5578dd974d5c43d701cb3624d84
treedbb4dac38364fe38a7db51d0ea907244f704f05b
parentdd57b1213ab60ec9ad603507bd25ed069f9a6b61
ALSA: scarlett2: Add support for Gen 4 style parameters

Writing Scarlett Gen 4 parameters differs from Gen 2 and Gen 3:
- the values are written into a shared write location
- the values are only byte-sized
- the read locations now extend beyond 0xFF
- a separate NVRAM save step is no longer required

This patch implements that alternate write style, triggered by setting
the config item size field to zero.

The write address is specified through a new config set field
gen4_write_addr.

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