amixer volume controls applies twice
Posted
by
user214604
on Ask Ubuntu
See other posts from Ask Ubuntu
or by user214604
Published on 2013-11-11T09:59:29Z
Indexed on
2013/11/11
10:25 UTC
Read the original article
Hit count: 218
sound
The volume increment or decrement is happening double the intended amount using amixer for my alsa driver using ./amixer -c 0 set Master 1- command. This happens becuase by default volume controls apply for both playback and capture moduels. My alsa driver config doesnt enabled any of the capture controls. even there is no capture enabled, the function from simple_none.c returns true for capture channel. All the capture volume controls are applied to my playback driver.
static int is_ops(snd_mixer_elem_t *elem, int dir, int cmd, int val) case SM_OPS_IS_CHANNEL: return (unsigned int) val < s->str[dir].channels;
./amixer -c 0 set Master Playback 10+
./amixer -c 0 set Master Playback 10 -
./amixer -c 0 set Master Capture 10+
./amixer -c 0 set Master Capture 10 -
I suspect capture is enabled by default in my system for alsa drivers. Let me know what are the things to ensure to disable the capture.
© Ask Ubuntu or respective owner