Re: aucat problems

2015-07-28 Thread Alexandre Ratchov
On Mon, Jul 27, 2015 at 04:47:56PM -0400, Stefan Berger wrote:
 Hi, 
 
 i have some trouble, configuring my audio devices: I want to 
 record with my internal microphone (Thinkpad x220i) or/and my headphones 
 with aucat, but I can't configure it according to FAQ because 
 the output from mixerctl is somehow, different. 

does playback work? assuping it does, if you run:

aucat -o test.wav

then speak to the microphone during 5 seconds, then hit ^C, then
run:

aucat -i test.wav

what do you hear?

could you post the output of mixerctl -v ?



Re: aucat problems

2015-07-28 Thread Stefan Berger
I found this

http://archives.neohapsis.com/archives/openbsd/2010-12/0057.html

but aucat seemed to have changed, at least for me, I 
can't follow the explanation.  

I am running a Thinkpad x220i and I am pretty sure that 
my microphone is supported but I tried a lot of different 
settings with mixerctl, I am not 'there' yet.. 

greetings. 



Re: aucat problems

2015-07-28 Thread Alexandre Ratchov
On Tue, Jul 28, 2015 at 04:28:31AM -0400, Stefan Berger wrote:
 On Tue, Jul 28, 2015 at 10:01:56AM +0200, Alexandre Ratchov wrote:
  On Mon, Jul 27, 2015 at 04:47:56PM -0400, Stefan Berger wrote:
   Hi, 
   
   i have some trouble, configuring my audio devices: I want to 
   record with my internal microphone (Thinkpad x220i) or/and my headphones 
   with aucat, but I can't configure it according to FAQ because 
   the output from mixerctl is somehow, different. 
  
  does playback work? assuping it does, if you run:
  
  aucat -o test.wav
 
 I did that, but when I do the 
 
 aucat -i test.wav
 
 command, then I can't hear anything.  I also tried 
 
 aucat -c 0:1 -o 1.wav -c 2:3 -o 2.wav -c 4:5 -o 3.wav
 

For this to work, you've to restart sndiod with
the following args -C 0:5 -c 0:3.

But according to mixerctl, all 3 ADCs get their signal from mic2 so
all 3 files would have the same content.

 but nothing for all three files.  
 
  could you post the output of mixerctl -v ?
 
 here is my mixerctl -v output:  
 

First, try to crank all input gains:

mixerctl record.volume=255

 record.adc-0:1_source=mic2  [ sel sel2 mic2 mix ]
 record.adc-2:3_source=mic2  [ sel sel2 mic2 mix ]
 record.adc-4:5_source=mic2  [ sel sel2 mic2 mix ]
 inputs.sel_source=mic  [ mic ]

If it doesn't work, try to use the other mic:

mixerctl record.adc-0:1_source=sel
mixerctl record.adc-2:3_source=sel
mixerctl record.adc-4:5_source=sel



Re: aucat problems

2015-07-28 Thread Stefan Berger
On Tue, Jul 28, 2015 at 10:01:56AM +0200, Alexandre Ratchov wrote:
 On Mon, Jul 27, 2015 at 04:47:56PM -0400, Stefan Berger wrote:
  Hi, 
  
  i have some trouble, configuring my audio devices: I want to 
  record with my internal microphone (Thinkpad x220i) or/and my headphones 
  with aucat, but I can't configure it according to FAQ because 
  the output from mixerctl is somehow, different. 
 
 does playback work? assuping it does, if you run:
 
 aucat -o test.wav

I did that, but when I do the 

aucat -i test.wav

command, then I can't hear anything.  I also tried 

aucat -c 0:1 -o 1.wav -c 2:3 -o 2.wav -c 4:5 -o 3.wav

but nothing for all three files.  

 could you post the output of mixerctl -v ?

here is my mixerctl -v output:  

inputs.dac-0:1_mute=off  [ off on ]
inputs.dac-0:1=180,180 
inputs.dac-2:3_mute=off  [ off on ]
inputs.dac-2:3=180,180 
inputs.beep=108 
record.adc-0:1_source=mic2  [ sel sel2 mic2 mix ]
record.adc-0:1_mute=off  [ off on ]
record.adc-0:1=126,126 
record.adc-2:3_source=mic2  [ sel sel2 mic2 mix ]
record.adc-2:3_mute=off  [ off on ]
record.adc-2:3=126,126 
record.adc-4:5_source=mic2  [ sel sel2 mic2 mix ]
record.adc-4:5_mute=off  [ off on ]
record.adc-4:5=126,126 
inputs.sel_source=mic  [ mic ]
outputs.sel=126,126 
inputs.sel2_source=mic  [ mic ]
outputs.sel2=126,126 
outputs.hp_source=dac-0:1  [ dac-0:1 dac-2:3 ]
outputs.hp_boost=off  [ off on ]
outputs.mic_source=dac-0:1  [ dac-0:1 dac-2:3 ]
outputs.mic_dir=input-vr80  [ none output input input-vr50 input-vr80 ]
outputs.mic_eapd=on  [ off on ]
outputs.spkr_source=dac-2:3  [ dac-0:1 dac-2:3 ]
inputs.mic2=126,126 
inputs.mix_source=dac-0:1,dac-2:3  { dac-0:1 dac-2:3 }
inputs.mix_dac-0:1=126,126 
inputs.mix_dac-2:3=126,126 
outputs.hp_sense=unplugged  [ unplugged plugged ]
outputs.mic_sense=unplugged  [ unplugged plugged ]
outputs.spkr_muters=hp,mic  { hp mic }
outputs.master=181,181 
outputs.master.mute=off  [ off on ]
outputs.master.slaves=dac-0:1,dac-2:3  { dac-0:1 dac-2:3 beep sel sel2 }
record.volume=126,126 
record.volume.mute=off  [ off on ]
record.volume.slaves=adc-0:1,adc-2:3,adc-4:5  { adc-0:1 adc-2:3 adc-4:5 mic2 }



Re: aucat problems

2015-07-28 Thread Stefan Berger
On Tue, Jul 28, 2015 at 10:53:26AM +0200, Alexandre Ratchov wrote:
 If it doesn't work, try to use the other mic:
 
 mixerctl record.adc-0:1_source=sel
 mixerctl record.adc-2:3_source=sel
 mixerctl record.adc-4:5_source=sel

Setting mixerctl to sel2 worked: 

mixerctl record.adc-0:1_source=sel2
mixerctl record.adc-2:3_source=sel2
mixerctl record.adc-4:5_source=sel2


Thank you for helping. 



Re: aucat problems

2015-07-27 Thread lists
  I am not sure which settings must be changed to record with the internal 
  microphone.  When i start aucat, I can't hear anything. 
 
 I've had the same trouble figuring out which set of settings control
 the selection of the internal and external microphone on my laptop.
 
 Wild guess it might be related to the way settings interact with
 each other, namely record, input select, ADC source, mix source etc.
 
 Probably these map 1:1 to the hardware features of the respective audio
 device but to me as a user that's a great riddle as well and no mixer
 program solved it for me yet (though I've not checked on that for a
 while).

Here is my audio device and mixer settings if you would like to compare
with the ones you try with:

OpenBSD 5.8 GENERIC.MP#1062 i386

azalia0 at pci0 dev 27 function 0 Intel 82801GB HD Audio rev 0x02: msi
azalia0: codecs: Realtek ALC269
audio0 at azalia0

$ mixerctl -av
inputs.dac-0:1=192,192 
inputs.dac-2:3=192,192 
record.adc-0:1_mute=off  [ off on ]
record.adc-0:1=125,125 
record.adc-2:3_mute=off  [ off on ]
record.adc-2:3=125,125 
inputs.mix_source=mic2,beep  { mic2 beep }
inputs.mix_mic2=0,0 
inputs.mix_beep=120,120 
inputs.mix2_source=dac-0:1,mix  { dac-0:1 mix }
inputs.mix3_source=dac-2:3,mix  { dac-2:3 mix }
outputs.spkr_source=mix3  [ mix2 mix3 ]
outputs.spkr_mute=off  [ off on ]
outputs.spkr_eapd=on  [ off on ]
outputs.hp_source=mix2  [ mix2 mix3 ]
outputs.hp_mute=off  [ off on ]
outputs.hp_boost=off  [ off on ]
outputs.hp_eapd=on  [ off on ]
outputs.mic2_source=mix2  [ mix2 mix3 ]
outputs.mic2_mute=on  [ off on ]
inputs.mic2=85,85 
outputs.mic2_dir=input-vr80  [ none output input input-vr0 input-vr50 
input-vr80 input-vr100 ]
record.adc-2:3_source=mic  [ mic2 beep mic mix ]
record.adc-0:1_source=mic2,beep,mix  { mic2 beep mix }
outputs.hp_sense=plugged  [ unplugged plugged ]
outputs.mic2_sense=plugged  [ unplugged plugged ]
outputs.spkr_muters=mic2  { hp mic2 }
outputs.master=255,255 
outputs.master.mute=off  [ off on ]
outputs.master.slaves=dac-0:1,dac-2:3,spkr,hp  { dac-0:1 dac-2:3 spkr hp mic2 }
record.volume=125,125 
record.volume.mute=off  [ off on ]
record.volume.slaves=adc-0:1,adc-2:3  { adc-0:1 adc-2:3 mic2 }

I would as well appreciate if somebody could tip which set of options
would define internal and then external microphone selection.

Reference manual is azalia(4)



Re: aucat problems

2015-07-27 Thread lists
 I am not sure which settings must be changed to record with the internal 
 microphone.  When i start aucat, I can't hear anything. 

I've had the same trouble figuring out which set of settings control
the selection of the internal and external microphone on my laptop.

Wild guess it might be related to the way settings interact with
each other, namely record, input select, ADC source, mix source etc.

Probably these map 1:1 to the hardware features of the respective audio
device but to me as a user that's a great riddle as well and no mixer
program solved it for me yet (though I've not checked on that for a
while).