View Single Post
  #5   (View Single Post)  
Old 18th August 2009
backrow backrow is offline
Real Name: Anthony J. Bentley
Shell Scout
 
Join Date: Jul 2009
Location: Albuquerque, NM
Posts: 136
Default

Hi guys.
Quote:
Originally Posted by BSDfan666 View Post
You have a PCI device that takes precedence..

cmpci0 at pci0 dev 15 function 0 "C-Media Electronics CMI8738/C3DX Audio" rev 0x10: irq 9
audio0 at cmpci0


You can change the device nodes so that it uses your USB device instead..
# cd /dev; ln -s audio1 audio; ln -s audioctl1 audioctl; ln -s mixer1 mixer; ln -s sound1 sound

Other alternatives would be:
1) Disabling cmpci in UKC..
2) Disabling it in your BIOS (..if it's embedded), or physically removing the card.
3) Using -f /dev/{mixer1,audioctl1} when posting mixerctl/audioctl output.

Hope that helps.
I was unaware there was more than one mixer device… Guess I should read the documentation more carefully. Would I be right in thinking that mixer0/audio0 should not affect aucat at all when using -f /dev/audio1, then?

Here is the method I’m using to test recording:
Code:
Script started on Mon Aug 17 23:11:23 2009
$ dmesg | tail
softraid0 at root
root on wd0a swap on wd0b dump on wd0b
uaudio0 at uhub1 port 1 configuration 1 interface 0 "Creative Labs USB Audio" rev 1.10/1.00 addr 2
uaudio0: audio rev 1.00, 13 mixer controls
audio1 at uaudio0
audio1 detached
uaudio0 detached
uaudio0 at uhub1 port 1 configuration 1 interface 0 "Creative Labs USB Audio" rev 1.10/1.00 addr 2
uaudio0: audio rev 1.00, 13 mixer controls
audio1 at uaudio0
$ mixerctl
inputs.dac=192,192
inputs.dac.mute=off
inputs.fmsynth=192,192
inputs.fmsynth.mute=off
inputs.cd=0,0
inputs.cd.mute=on
inputs.line=0,0
inputs.line.mute=on
inputs.aux=0,0
inputs.aux.mute=on
inputs.mic=0
inputs.mic.mute=on
inputs.mic.preamp=off
inputs.spkr=128
record.source=
record.mic=0
playback.mode=dac
spdif.input=spdin1
spdif.input.phase=positive
spdif.output=playback
spdif.output.playback=wave
spdif.output.voltage=5V
spdif.monitor=off
outputs.master=128,128
outputs.rear=off
outputs.rear.individual=off
outputs.rear.reverse=off
outputs.surround=off
$ mixerctl outputs.{rear=on,rear.individual=on} # turning on headphones so i can hear
outputs.rear: off -> on
outputs.rear.individual: off -> on
$ mixerctl -f /dev/mixer1
record.sel8-i10i11i12=1
outputs.spkr.mute=off
outputs.spkr=255,255
record.mic.mute=off
record.mic=1
record.mic.agc=off
record.line.mute=off
record.line=1,1
record.aux.mute=off
inputs.mic.mute=off
inputs.mic=191
inputs.line.mute=on
inputs.line=191,191
$ mixerctl -f /dev/mixer1 inputs.line=255,255 inputs.line.mute=off
inputs.line: 191,191 -> 255,255
inputs.line.mute: on -> off
$ aucat -f /dev/audio1 -o test.raw
^C$ # while aucat ran the light on the sound card began to blink
$ aucat -i test.raw
$ # the above produced no sound
$ aucat -i /dev/urandom
^C^C$ # the above produced audible static
$ exit

Script done on Mon Aug 17 23:17:27 2009
From there I have tried:
mixerctl -f /dev/mixer1 record.line=255,255
mixerctl -f /dev/mixer1 record.sel8-i10i11i12=2
mixerctl -f /dev/mixer1 record.sel8-i10i11i12=3
(1, 2, and 3 are the only valid numbers)
, recording after each one, but I still get a silent audio file each time.
Reply With Quote