]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ALSA: scarlett2: Add support for device map retrieval
authorGeoffrey D. Bennett <g@b4.vu>
Fri, 4 Oct 2024 14:29:04 +0000 (23:59 +0930)
committerTakashi Iwai <tiwai@suse.de>
Tue, 8 Oct 2024 08:11:49 +0000 (10:11 +0200)
commit9930c2606007d4e26efb1dc4d9e28158b585ccf2
tree7ca761c0db98c1799c79e27e58159caf26ea7782
parent8eba063b5b2b498ddd01ea6f29fc9b12368c3d53
ALSA: scarlett2: Add support for device map retrieval

Add support for retrieving the device map from Focusrite Scarlett 4th
Gen and Vocaster devices. The device map is a base64-encoded,
zlib-compressed JSON description of the device's capabilities and
configuration.

This patch adds:
- a has_devmap field to the scarlett2_device_info struct
- a /proc/asound/cardX/device-map.json.zz.b64 file when supported

Signed-off-by: Geoffrey D. Bennett <g@b4.vu>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/e86380c6792460d8d05a8ecc37c9ebd072be25a5.1727971672.git.g@b4.vu
sound/usb/mixer_scarlett2.c