Add softvol PCM plugin

The softvol PCM plugin is added.  It applies the software volume attenuation,
which may be useful for codecs without volume controls.

Currently, the control is only mono.  The attenuation is applied to all
channels equally.  The control is probed and automatically created
when not exists yet.
This commit is contained in:
Takashi Iwai 2004-12-27 14:40:19 +00:00
parent 5c9ee5ef03
commit 30f35c1f7a
6 changed files with 766 additions and 4 deletions

View file

@ -356,7 +356,9 @@ enum _snd_pcm_type {
SND_PCM_TYPE_DSHARE,
/** IEC958 subframe plugin */
SND_PCM_TYPE_IEC958,
SND_PCM_TYPE_LAST = SND_PCM_TYPE_DSNOOP
/** Soft volume plugin */
SND_PCM_TYPE_SOFTVOL,
SND_PCM_TYPE_LAST = SND_PCM_TYPE_SOFTVOL
};
/** PCM type */