ALSA: scarlett2: Increase mixer range to +12dB
authorGeoffrey D. Bennett <g@b4.vu>
Sat, 11 May 2024 16:44:17 +0000 (02:14 +0930)
committerTakashi Iwai <tiwai@suse.de>
Sun, 12 May 2024 09:43:11 +0000 (11:43 +0200)
commit762e6af39883a816290286d5d46a20bbd0f3a135
tree534b1d56f76dbed95081de454084dcf421d7e68f
parentd5ca9ad58e15e4169d75c54b2b4dfebaaee0931f
ALSA: scarlett2: Increase mixer range to +12dB

The values loaded into the mixer are 16-bit values, with 8192
representing 0dB, going up to a current maximum of 16345 (+6dB). All
supported interfaces have no problem going up to 32612 (+12dB), so
update SCARLETT2_MIXER_MAX_DB and scarlett2_mixer_values[] to allow
for this.

Tested with:
- Scarlett 2nd Gen 6i6, 18i8, 18i20
- Scarlett 3rd Gen 4i4, 8i6, 18i8, 18i20
- Scarlett 4th Gen Solo, 2i2, 4i4
- Clarett+ 2Pre, 4Pre, 8Pre
- Vocaster One and Two

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