Tell me more ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

So fat, I am setting up microphone settings :

$ amixer set 'Rear Mic' 90% mute cap
$ amixer set 'Rear Mic Boost' 80%

But, after some sys. update, my default recoding chanell changed to 'Front Mic' :

$ amixer sget 'Input Source'
Simple mixer control 'Input Source',0
  Capabilities: cenum
  Items: 'Front Mic' 'Rear Mic' 'Line' 'CD' 'Mix'
  Item0: 'Front Mic'

How to change 'Input Source' to 'Read Mic' with amixer ? (Currently I do it manually with alsamixer or kmix - I would love to automatize it on startup).

share|improve this question

2 Answers

up vote 2 down vote accepted

I found solution here:

there I've found :

$ amixer -c0 cset iface=MIXER,name='Input Source',index=1 'Front Mic' # (Record from Front Mic)

slightly modified according to my sound-card and setup (default sound-card, different items ordering) :

$ amixer cset name='Input Source',index=0 'Rear Mic'
share|improve this answer

You can use sset parameter. From man amixer:

   set or sset <SCONTROL> <PARAMETER> ...
          Sets the simple mixer control contents. The parameter can be the volume either as a percentage  from  0%  to  100%
          with  % suffix, a dB gain with dB suffix (like -12.5dB), or an exact hardware value.  The dB gain can be used only
          for the mixer elements with available dB information.  When plus(+) or minus(-) letter is  appended  after  volume
          value, the volume is incremented or decremented from the current value, respectively.

          The  parameters  cap,  nocap, mute, unmute, toggle are used to change capture (recording) and muting for the group
          specified.

          The optional modifiers can be put as extra parameters to specify the stream direction or channels to  apply.   The
          modifiers playback and capture specify the stream, and the modifiers front, rear, center, woofer are used to spec‐
          ify channels to be changed.

          A simple mixer control must be specified. Only one device can be controlled at a time.

In your case should be as simple as (NOT TESTED)

$ amixer sset 'Input Source',0,'Rear Mic'
share|improve this answer
It does not work $ amixer sset 'Input Source',0,'Rear Mic' returns : Specify what you want to set.... – Grzegorz Wierzowiecki Sep 30 '11 at 6:54
A slight modification of Mr Shunz's proposed syntax works for me: $ amixer sset 'Input Source' 'Rear Mic' works for me. – Jack Kelly Feb 19 at 14:50

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.