mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-02 09:01:48 -05:00
Add dB range information to PCM softvol plugin
Added the dB range information to PCM softvol plugin. Also, fixed the coefficient table to match with the accurate dB step 0.20dB.
This commit is contained in:
parent
d5caee8d36
commit
5c71dd3ee7
2 changed files with 53 additions and 34 deletions
|
|
@ -283,6 +283,8 @@ int snd_ctl_elem_add_integer(snd_ctl_t *ctl, const snd_ctl_elem_id_t *id,
|
|||
snd_ctl_elem_info_alloca(&info);
|
||||
info->id = *id;
|
||||
info->type = SND_CTL_ELEM_TYPE_INTEGER;
|
||||
info->access = SNDRV_CTL_ELEM_ACCESS_READWRITE |
|
||||
SNDRV_CTL_ELEM_ACCESS_TLV_READWRITE;
|
||||
info->count = count;
|
||||
info->value.integer.min = min;
|
||||
info->value.integer.max = max;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue