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:
Takashi Iwai 2006-08-25 11:46:19 +02:00
parent d5caee8d36
commit 5c71dd3ee7
2 changed files with 53 additions and 34 deletions

View file

@ -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;