I have a Lenovo X1 Carbon Thinkpad (gen 9 I think) which has microphone
hardware not supported by OpenBSD.  I purchased an inexpensive USB
microphone with displays the following dmesg entry:

uaudio0 at uhub1 port 1 configuration 1 interface 1 "C-Media Electronics
Inc. USB PnP Sound Device" rev 1.10/1.00 addr 5
uaudio0: class v1, full-speed, sync, channels: 0 play, 1 rec, 3 ctls
audio1 at uaudio0
uhidev0 at uhub1 port 1 configuration 1 interface 2 "C-Media Electronics
Inc. USB PnP Sound Device" rev 1.10/1.00 addr 5
uhidev0: iclass 3/0
ucc0 at uhidev0: 10 usages, 3 keys, enum
wskbd1 at ucc0 mux 1
wskbd1: connecting to wsdisplay0


Unfortunately, it doesn't seem to work with OBSD.  Recording a test message
with aucat -o file.wav produces a wave file, but aucat -i file.wav
is silent.  If I plug a headphone into the speaker jack, it works fine with
aucat and in actual use.

Am I missing something?  Sndioctl produces

input.level=1.000
input.mute=0
output.level=1.000
output.mute=0
server.device=0(azalia0)
app/aucat0.level=1.000
app/audacio0.level=1.000
app/firefox0.level=1.000
app/firefox1.level=1.000
app/iridium0.level=1.000
app/iridium1.level=1.000
app/iridium2.level=1.000
app/iridium3.level=1.000

for both the USB microphone and the headset and with nothing plugged in.

Mixerctl produces

penguin# cat null.txt
inputs.dac-2:3=174,174
inputs.dac-0:1=174,174
record.adc-0:1_mute=off
record.adc-0:1=252,252
record.adc-2:3_mute=off
record.adc-2:3=252,252
outputs.spkr_source=dac-2:3
outputs.spkr_mute=off
outputs.spkr_eapd=on
outputs.spkr2_source=dac-2:3
outputs.spkr2_mute=off
outputs.spkr2_boost=off
inputs.mic=85,85
outputs.mic_dir=input-vr80
outputs.hp_source=dac-0:1
outputs.hp_mute=off
outputs.hp_boost=off
outputs.hp_eapd=on
record.adc-2:3_source=mic
record.adc-0:1_source=mic
outputs.mic_sense=unplugged
outputs.hp_sense=unplugged
outputs.spkr_muters=hp
outputs.master=255,255
outputs.master.mute=off
outputs.master.slaves=dac-2:3,dac-0:1,spkr,spkr2,hp
record.volume=255,255
record.volume.mute=off
record.volume.slaves=adc-0:1,adc-2:3
record.enable=sysctl

if nothing is plugged in.  The USB microphone doesn't change this
result at all.  However, the headphone changes a few things in the mixerctl
output as illustrated by this diff:

penguin# diff null.txt headphone.txt
8c8
< outputs.spkr_mute=off
---
> outputs.spkr_mute=on
11c11
< outputs.spkr2_mute=off
---
> outputs.spkr2_mute=on
21,22c21,22
< outputs.mic_sense=unplugged
< outputs.hp_sense=unplugged
---
> outputs.mic_sense=plugged
> outputs.hp_sense=plugged

I think this just reflects the change from an internal device to one
plugged into the headphone jack.

Am I doing something wrong or are we just dealing with an unsupported
device?  In the latter case, any suggestions for a compact microphone that
can be plugged in when needed?  As far as I am concerned this could plug
into either a USB port or the headphone jack.

Thanks for any help that can be offered.

Dave

David J. Raymond
david.raym...@nmt.edu
http://kestrel.nmt.edu/~raymond

Reply via email to