There are two output devices : headphone and line out in my pc.I can select one of them as output decice with the PulseAudio Volume Control.Can amixer do the same job such as pulseaudio?
I want to select speaker on card 1 to play audio.
amixer -c 1 set "speaker" On
amixer: Unable to find simple control 'speaker',0
amixer -c 1 set "speaker" 10db
amixer: Unable to find simple control 'speaker',0
Both of them can't work.
@MC68020,Invalid command:
debian@debian:~$ amixer -c 1 scontrols
Simple mixer control 'Master',0
Simple mixer control 'Headphone',0
Simple mixer control 'Headphone+LO',0
Simple mixer control 'PCM',0
Simple mixer control 'Front',0
Simple mixer control 'Front Mic',0
Simple mixer control 'Front Mic Boost',0
Simple mixer control 'Surround',0
Simple mixer control 'Center',0
Simple mixer control 'LFE',0
Simple mixer control 'Line',0
Simple mixer control 'Line Boost',0
Simple mixer control 'IEC958',0
Simple mixer control 'IEC958 Default PCM',0
Simple mixer control 'Capture',0
Simple mixer control 'Capture',1
Simple mixer control 'Auto-Mute Mode',0
Simple mixer control 'Channel Mode',0
Simple mixer control 'Input Source',0
Simple mixer control 'Input Source',1
Simple mixer control 'Loopback Mixing',0
Simple mixer control 'Rear Mic',0
Simple mixer control 'Rear Mic Boost',0
debian@debian:~$ amixer -c 1 sset Headphone 80%
amixer: Invalid command!
debian@debian:~$ amixer -c 1 set Headphone 80%
amixer: Invalid command!
debian@debian:~$ amixer -c 1 set "Headphone" 80%
amixer: Invalid command!
debian@debian:~$ amixer -c 1 sset "Headphone" 80%
amixer: Invalid command!
More info on my amixer:
debian@debian:~$ amixer -v
amixer version 1.2.4
debian@debian:~$ amixer -c 1 sget Headphone
Simple mixer control 'Headphone',0
Capabilities: pswitch
Playback channels: Front Left - Front Right
Mono:
Front Left: Playback [on]
Front Right: Playback [on]