]> git.alsa-project.org Git - alsa-lib.git/commit
mixer: simple: Support dB TLVs for CTL_SINGLE controls
authorHector Martin <marcan@marcan.st>
Sat, 28 Oct 2023 12:33:29 +0000 (21:33 +0900)
committerJaroslav Kysela <perex@perex.cz>
Tue, 7 Nov 2023 09:30:46 +0000 (10:30 +0100)
commitf202ec3c23abf16a2382acc0de35900173e32160
treede0e03984a0ad382af4f4221a00122169b37a5dc
parent915a71a2cdf6361f0fc77fa367a67910dc0288db
mixer: simple: Support dB TLVs for CTL_SINGLE controls

dB mappings do not work for controls not named "* Volume", since we do not
fall back to CTL_SINGLE in get_selem_ctl. Add that branch to make it
work.

Fixes dB ranges for e.g. controls named "* Gain".

Closes: https://github.com/alsa-project/alsa-lib/pull/358
Signed-off-by: Hector Martin <marcan@marcan.st>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
src/mixer/simple_none.c