I've been unable to record on mic2 with my Asus P4P800 Deluxe
motherboard.  I've tried all sorts of combinations with amixer, but I've
basically been assuming that the following setting should switch on mic2
rather than the default mic1:

  amixer cset iface=MIXER,name='Mic Select' 1

I've found that toggling this setting seems to do nothing - either way,
the mic1 jack remains active, and I'm unable to record from mic2.

Any tips? It could well be something stupid I'm doing with amixer - I'm
only guessing what to do based on the names of the fields.  Here's my
little recording script with the settings I've been using:


#!/bin/bash

REAR=0
FRONT=1
MIC_SELECT=$FRONT
 
configureAlsa()
{
  # I assume these settings should do the trick, just based on the
  # name of each setting
  amixer sset Mic,0 100%,100% unmute cap
  amixer sset 'Mic Boost (+20dB)',0 unmute
  amixer cset iface=MIXER,name='Mic Playback Switch' off
  amixer sset Capture cap
  amixer cset iface=MIXER,name='Capture Source' 0,0
  amixer cset iface=MIXER,name='Mic Select' $MIC_SELECT
  amixer cset iface=MIXER,name='Capture Volume' 15,15
  amixer cset iface=MIXER,name='Stereo Mic' off

  # Other things tried in desperation
  amixer sset PCM unmute
  amixer sset Line cap
  amixer sset Mix 100%,100% unmute cap
  amixer sset IEC958,0 100%,100% unmute cap
  amixer cset iface=MIXER,name='IEC958 Playback AC97-SPSA' 0%
  amixer cset iface=MIXER,name='Mono Output Select' 1
}
 
record()
{
  arecord -d 3 /tmp/tt.wav
}
 
play()
{
  aplay /tmp/tt.wav
}
 
configureAlsa > /dev/null 2>&1
record
play


-------------------------------------------------------
This SF.Net email is sponsored by: SourceForge.net Broadband
Sign-up now for SourceForge Broadband and get the fastest
6.0/768 connection for only $19.95/mo for the first 3 months!
http://ads.osdn.com/?ad_id=2562&alloc_id=6184&op=click
_______________________________________________
Alsa-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-user

Reply via email to