Hello!

On sre, 2002-10-23 at 20:19, Rob Browning wrote:
> Jaroslav Kysela <[EMAIL PROTECTED]> writes:
> > Use: amixer sset Capture cap
> >       amixer sset Capture nocap
> >  mute/unmute keywords are parsed only for playback
> 
> While still trying to figure out whether or not it's possible for me
> to record from my Line,0 with Playback [off], I came across your reply
> to someone who was trying to get capture to work from a script
> (similar to what I'm trying to do).
> Your suggestion does seem to turn capture on/off temporarily, but the
> next "amixer get Line,0" shows "Capture [off]" whenever Playback is
> also off.
> 
>   $ amixer sset Line,0 capture nocap | grep "  Front"
>     Front Left: 24 [77%] Playback [off] Capture [off] 
>     Front Right: 24 [77%] Playback [off] Capture [off] 
> 
>   $ amixer sset Line,0 capture cap | grep "  Front"
>     Front Left: 24 [77%] Playback [off] Capture [on] 
>     Front Right: 24 [77%] Playback [off] Capture [on] 
> 
>   $ amixer sget Line,0
>   Simple mixer control 'Line',0
>     Capabilities: volume pswitch cswitch
>     Playback channels: Front Left - Front Right 
>     Capture channels: Front Left - Front Right 
>     Limits: 0 - 31
>     Front Left: 24 [77%] Playback [off] Capture [off] 
>     Front Right: 24 [77%] Playback [off] Capture [off] 
> 
> Is this expected?  I can get another sound card just for capture if I
> need to, but I'd rather not if my current card (AudioPCI) is capable
> of doing the job quietly.

I have a SB PCI 128 (ens1370 with ak4531-codec) and it has the same
problem. The thing is that simple controls interface just can't do it
right. 

So you have to do it directly with the raw controls.

josef:/usr/src$ amixer cset numid=21 on,off,off,on
numid=21,iface=MIXER,name='Line Capture Route'
  ; type=BOOLEAN,access=rw---,values=4
  : values=on,off,off,on
josef:/usr/src$ amixer cset numid=18 on           
numid=18,iface=MIXER,name='Line Switch'
  ; type=BOOLEAN,access=rw---,values=2
  : values=on,on

And the result is:

josef:/usr/src$ amixer sget Line
Simple mixer control 'Line',0
  Capabilities: volume pswitch cswitch
  Playback channels: Front Left - Front Right 
  Capture channels: Front Left - Front Right 
  Limits: 0 - 31
  Front Left: 27 [87%] Playback [off] Capture [on] 
  Front Right: 27 [87%] Playback [off] Capture [on] 


The alternative is to turn capture and playback on with scontrol:
josef:/usr/src$ amixer sset Line cap on
Simple mixer control 'Line',0
  Capabilities: volume pswitch cswitch
  Playback channels: Front Left - Front Right 
  Capture channels: Front Left - Front Right 
  Limits: 0 - 31
  Front Left: 27 [87%] Playback [on] Capture [on] 
  Front Right: 27 [87%] Playback [on] Capture [on] 

and then muting the playback:

josef:/usr/src$ amixer cset numid=20 off
numid=20,iface=MIXER,name='Line Playback Switch'
  ; type=BOOLEAN,access=rw---,values=2
  : values=off,off

And this is what you get.

josef:/usr/src$ amixer sget Line        
Simple mixer control 'Line',0
  Capabilities: volume pswitch cswitch
  Playback channels: Front Left - Front Right 
  Capture channels: Front Left - Front Right 
  Limits: 0 - 31
  Front Left: 27 [87%] Playback [off] Capture [on] 
  Front Right: 27 [87%] Playback [off] Capture [on] 


I too would like if sset acted correctly, but it's a problem with
capture route switch.

Take care,

        Miha...




-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Alsa-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-user

Reply via email to