ALSA: scarlett2: Add scarlett2_mixer_value_to_db()
authorGeoffrey D. Bennett <g@b4.vu>
Sun, 24 Dec 2023 19:30:15 +0000 (06:00 +1030)
committerTakashi Iwai <tiwai@suse.de>
Fri, 29 Dec 2023 14:41:23 +0000 (15:41 +0100)
commit56275126aca20e0a0bfa51e3307576aee76b7264
tree2e090d7f84853c1a542da9f60a4d6edd9a9aa7c0
parent90d8fef837a53e6b5c2c3c14c6063ee8d78277a9
ALSA: scarlett2: Add scarlett2_mixer_value_to_db()

Refactor scarlett2_usb_get_mix(), moving the scarlett2_mixer_values[]
lookup into scarlett2_mixer_value_to_db().

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