Add boolean (mute) functionality to softvol plugin
authorTakashi Iwai <tiwai@suse.de>
Wed, 16 Jul 2008 10:37:51 +0000 (12:37 +0200)
committerTakashi Iwai <tiwai@suse.de>
Wed, 16 Jul 2008 10:37:51 +0000 (12:37 +0200)
commitf78af4ab0412052aabb74c9122a8d8f3ab6d45e6
tree92465e918c0ceec386ef6cf4769326c2e87a2c1e
parente24cc8d2479ba0edd0d784c317ddcc09d720e20b
Add boolean (mute) functionality to softvol plugin

When the resolution is set to 2, a boolean control is created as a
mute switch instead of a volume control.
Also, fixed the possible zero-division error.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
src/pcm/pcm_softvol.c