View Single Post
Posts: 116 | Thanked: 4 times | Joined on Jan 2010
#3
Originally Posted by pospani View Post
You can mute/unmute sound simply by calling:
Code:
amixer -c 0 sset "Speaker Function" Off
amixer -c 0 sset "Speaker Function" On
You also can route all sound to Earphone by:
Code:
amixer -c 0 sset "Earphone Function" On
amixer -c 0 sset "Earphone" 118
amixer -c 0 sset "Mono DAC" 118
amixer -c 0 sset "Right DAC_R1 Mixer Mono" on
amixer -c 0 sset "Left DAC_L1 Mixer Mono" on
amixer -c 0 sset "Speaker Function" Off
Hi,

Thank you for your help.

amixer is a system command ? How to call system command from application ?

Thanks