You are not logged in.

#1 2009-06-24 15:08:15

Shapeshifter
Member
Registered: 2008-03-11
Posts: 230

Can't record from USB webcam microphone (neither ASLA nor OSS)

Hi.

I prefer to use OSS, so I'll go with that first:

The mic shows up in ossinfo as device number 9, but when I try to reecord something using ossrecord, this happens:

$ ossrecord -Old /dev/dsp9 -c 1 /home/lucullus/test.wav
/dev/dsp9: Input/output error

I also tried recording in Audacity from /dev/dsp9 but while the light turns on and stays on, Audacity freezes and I have to kill it.

When I run ossxmix and go to the "USB Sound Device" Tab, there's the mic control, but when I use the slider, I get lots of output in the terminal like this:

vol
SNDCTL_MIX_WRITE: Broken pipe
vol
SNDCTL_MIX_WRITE: Broken pipe

for every step of the slider. Same if I press the mute box, just with "mute" instead of "vol". and it doesn't get ticked. Similarly, the slider is back to 0 when I rerun ossxmix.

I tried ALSA as well, everything seems fine, but the device gets named [default     ] by ALSA, which usually means trouble. I can do arecord -Dplughw:1,0 -f cd -vv somefile and the light goes on, but there are no volume bars at the bottom and if I play the file, it's just silence. Messed a lot with ALSA but got nowhere. Anyways I prefer OSS.

Oh and most annoying thing: The mic used to work without problems a couple of days ago when this machine was still running Ubuntu 9.04 >.<. The moment I got here, I wiped it and put Arch on it, everything is fine, but the damn mic won't work anymore. I also tried it on my Arch lap top, excatly the same problem. There must be some underlying issue here as both ALSA and OSS have problems with the mic in Arch, but in Ubuntu it worked.

Any help would be greatly appreciated!

Here's my soundon.log, ossinfo, lspci -vnn and ossmix:

soundon.log: http://pastebin.archlinux.fr/350923

[lucullus@schatzkiste ~]$ ossinfo 
Version info: OSS 4.1 (b 1052b/200905252233) (0x00040100) GPL
Platform: Linux/i686 2.6.30-ARCH #1 SMP PREEMPT Fri Jun 19 21:25:17 UTC 2009 (schatzkiste)

Number of audio devices:    10
Number of audio engines:    14
Number of mixer devices:    2


Device objects
 0: osscore0 OSS core services
 1: oss_hdaudio0 nVidia HD Audio interrupts=1023998 (1023999)
    HD Audio controller nVidia HD Audio
    Vendor ID    0x10de0774
    Subvendor ID 0x1043829f
     Codec  0: ALC883 (0x10ec0883/0x1043829f)
     Codec  3: Unknown (0x10de0002/0x10de0101)
 2: oss_usb0 USB audio core services
 3: usb06f83007-0 USB sound device
 4: usb06f83007-1 USB sound device


Mixer devices
 0: High Definition Audio ALC883 (Mixer 0 of device object 1)
 1: USB sound device (Mixer 0 of device object 3)

Audio devices
HD Audio play front               /dev/oss/oss_hdaudio0/pcm0  (device index 0)
HD Audio play rear                /dev/oss/oss_hdaudio0/pcm1  (device index 1)
HD Audio play center/LFE          /dev/oss/oss_hdaudio0/pcm2  (device index 2)
HD Audio play side                /dev/oss/oss_hdaudio0/pcm3  (device index 3)
HD Audio play pcm4                /dev/oss/oss_hdaudio0/pcm4  (device index 4)
HD Audio play spdif-out           /dev/oss/oss_hdaudio0/spdout0  (device index 5)
HD Audio play spdifout            /dev/oss/oss_hdaudio0/spdout1  (device index 6)
HD Audio rec mix                  /dev/oss/oss_hdaudio0/pcmin0  (device index 7)
HD Audio rec mix                  /dev/oss/oss_hdaudio0/pcmin1  (device index 8)
USB sound device rec              /dev/oss/usb06f83007-1/pcmin0  (device index 9)

  /dev/dsp -> /dev/oss/oss_hdaudio0/pcm0
  /dev/dsp_in -> /dev/oss/oss_hdaudio0/pcm0
  /dev/dsp_out -> /dev/oss/oss_hdaudio0/pcm0
  /dev/dsp_ac3 -> /dev/oss/oss_hdaudio0/spdout0
  /dev/dsp_mmap -> /dev/oss/oss_hdaudio0/pcm0
  /dev/dsp_multich -> /dev/oss/oss_hdaudio0/pcm0
[lucullus@schatzkiste ~]$ lspci -vnn
00:00.0 RAM memory [0500]: nVidia Corporation MCP78S [GeForce 8200] Memory Controller [10de:0754] (rev a2)
    Subsystem: ASUSTeK Computer Inc. Device [1043:82f2]
    Flags: bus master, 66MHz, fast devsel, latency 0
    Capabilities: <access>

00:01.0 ISA bridge [0601]: nVidia Corporation MCP78S [GeForce 8200] LPC Bridge [10de:075c] (rev a2)
    Subsystem: ASUSTeK Computer Inc. Device [1043:82f2]
    Flags: bus master, 66MHz, fast devsel, latency 0
    I/O ports at 0900 [size=256]

00:01.1 SMBus [0c05]: nVidia Corporation MCP78S [GeForce 8200] SMBus [10de:0752] (rev a1)
    Subsystem: ASUSTeK Computer Inc. Device [1043:82f2]
    Flags: 66MHz, fast devsel, IRQ 11
    I/O ports at 0e00 [size=64]
    I/O ports at 0600 [size=64]
    I/O ports at 0700 [size=64]
    Capabilities: <access>
    Kernel driver in use: nForce2_smbus
    Kernel modules: i2c-nforce2

00:01.2 RAM memory [0500]: nVidia Corporation MCP78S [GeForce 8200] Memory Controller [10de:0751] (rev a1)
    Subsystem: ASUSTeK Computer Inc. Device [1043:82f2]
    Flags: 66MHz, fast devsel

00:01.3 Co-processor [0b40]: nVidia Corporation MCP78S [GeForce 8200] Co-Processor [10de:0753] (rev a2)
    Subsystem: ASUSTeK Computer Inc. Device [1043:82f2]
    Flags: bus master, 66MHz, fast devsel, latency 0, IRQ 10
    Memory at fcf80000 (32-bit, non-prefetchable) [size=512K]

00:01.4 RAM memory [0500]: nVidia Corporation MCP78S [GeForce 8200] Memory Controller [10de:0568] (rev a1)
    Subsystem: ASUSTeK Computer Inc. Device [1043:82f2]
    Flags: 66MHz, fast devsel

00:02.0 USB Controller [0c03]: nVidia Corporation MCP78S [GeForce 8200] OHCI USB 1.1 Controller [10de:077b] (rev a1) (prog-if 10 [OHCI])
    Subsystem: ASUSTeK Computer Inc. Device [1043:82f2]
    Flags: bus master, 66MHz, fast devsel, latency 0, IRQ 20
    Memory at fcf7e000 (32-bit, non-prefetchable) [size=4K]
    Capabilities: <access>
    Kernel driver in use: ohci_hcd
    Kernel modules: ohci-hcd

00:02.1 USB Controller [0c03]: nVidia Corporation MCP78S [GeForce 8200] EHCI USB 2.0 Controller [10de:077c] (rev a1) (prog-if 20 [EHCI])
    Subsystem: ASUSTeK Computer Inc. Device [1043:82f2]
    Flags: bus master, 66MHz, fast devsel, latency 0, IRQ 22
    Memory at fcf7fc00 (32-bit, non-prefetchable) [size=256]
    Capabilities: <access>
    Kernel driver in use: ehci_hcd
    Kernel modules: ehci-hcd

00:04.0 USB Controller [0c03]: nVidia Corporation MCP78S [GeForce 8200] OHCI USB 1.1 Controller [10de:077d] (rev a1) (prog-if 10 [OHCI])
    Subsystem: ASUSTeK Computer Inc. Device [1043:82f2]
    Flags: bus master, 66MHz, fast devsel, latency 0, IRQ 23
    Memory at fcf7d000 (32-bit, non-prefetchable) [size=4K]
    Capabilities: <access>
    Kernel driver in use: ohci_hcd
    Kernel modules: ohci-hcd

00:04.1 USB Controller [0c03]: nVidia Corporation MCP78S [GeForce 8200] EHCI USB 2.0 Controller [10de:077e] (rev a1) (prog-if 20 [EHCI])
    Subsystem: ASUSTeK Computer Inc. Device [1043:82f2]
    Flags: bus master, 66MHz, fast devsel, latency 0, IRQ 21
    Memory at fcf7f800 (32-bit, non-prefetchable) [size=256]
    Capabilities: <access>
    Kernel driver in use: ehci_hcd
    Kernel modules: ehci-hcd

00:06.0 IDE interface [0101]: nVidia Corporation MCP78S [GeForce 8200] IDE [10de:0759] (rev a1) (prog-if 8a [Master SecP PriP])
    Subsystem: ASUSTeK Computer Inc. Device [1043:82f2]
    Flags: bus master, 66MHz, fast devsel, latency 0
    [virtual] Memory at 000001f0 (32-bit, non-prefetchable) [size=8]
    [virtual] Memory at 000003f0 (type 3, non-prefetchable) [size=1]
    [virtual] Memory at 00000170 (32-bit, non-prefetchable) [size=8]
    [virtual] Memory at 00000370 (type 3, non-prefetchable) [size=1]
    I/O ports at ffa0 [size=16]
    Capabilities: <access>
    Kernel driver in use: pata_amd
    Kernel modules: pata_amd, amd74xx

00:07.0 Audio device [0403]: nVidia Corporation MCP78S [GeForce 8200] High Definition Audio [10de:0774] (rev a1)
    Subsystem: ASUSTeK Computer Inc. Device [1043:829f]
    Flags: bus master, 66MHz, fast devsel, latency 0, IRQ 20
    Memory at fcf78000 (32-bit, non-prefetchable) [size=16K]
    Capabilities: <access>
    Kernel driver in use: oss_hdaudio

00:08.0 PCI bridge [0604]: nVidia Corporation MCP78S [GeForce 8200] PCI Bridge [10de:075a] (rev a1) (prog-if 01 [Subtractive decode])
    Flags: bus master, 66MHz, fast devsel, latency 0
    Bus: primary=00, secondary=01, subordinate=01, sec-latency=64
    Capabilities: <access>

00:09.0 SATA controller [0106]: nVidia Corporation MCP78S [GeForce 8200] AHCI Controller [10de:0ad4] (rev a2) (prog-if 01 [AHCI 1.0])
    Subsystem: ASUSTeK Computer Inc. Device [1043:82f2]
    Flags: bus master, 66MHz, fast devsel, latency 0, IRQ 26
    I/O ports at d480 [size=8]
    I/O ports at d400 [size=4]
    I/O ports at d080 [size=8]
    I/O ports at d000 [size=4]
    I/O ports at cc00 [size=16]
    Memory at fcf76000 (32-bit, non-prefetchable) [size=8K]
    Capabilities: <access>
    Kernel driver in use: ahci
    Kernel modules: ahci

00:0a.0 Ethernet controller [0200]: nVidia Corporation MCP78S [GeForce 8200] Ethernet [10de:0760] (rev a2)
    Subsystem: ASUSTeK Computer Inc. Device [1043:82f2]
    Flags: bus master, 66MHz, fast devsel, latency 0, IRQ 27
    Memory at fcf7c000 (32-bit, non-prefetchable) [size=4K]
    I/O ports at c880 [size=8]
    Memory at fcf7f400 (32-bit, non-prefetchable) [size=256]
    Memory at fcf7f000 (32-bit, non-prefetchable) [size=16]
    Capabilities: <access>
    Kernel driver in use: forcedeth
    Kernel modules: forcedeth

00:0b.0 PCI bridge [0604]: nVidia Corporation MCP78S [GeForce 8200] PCI Express Bridge [10de:0569] (rev a1) (prog-if 00 [Normal decode])
    Flags: bus master, fast devsel, latency 0
    Bus: primary=00, secondary=02, subordinate=02, sec-latency=0
    I/O behind bridge: 0000e000-0000efff
    Memory behind bridge: fd000000-febfffff
    Prefetchable memory behind bridge: 00000000ce000000-00000000dfffffff
    Capabilities: <access>
    Kernel modules: shpchp

00:10.0 PCI bridge [0604]: nVidia Corporation MCP78S [GeForce 8200] PCI Express Bridge [10de:0778] (rev a1) (prog-if 00 [Normal decode])
    Flags: bus master, fast devsel, latency 0
    Bus: primary=00, secondary=03, subordinate=03, sec-latency=0
    Capabilities: <access>
    Kernel driver in use: pcieport-driver
    Kernel modules: shpchp

00:12.0 PCI bridge [0604]: nVidia Corporation MCP78S [GeForce 8200] PCI Express Bridge [10de:075b] (rev a1) (prog-if 00 [Normal decode])
    Flags: bus master, fast devsel, latency 0
    Bus: primary=00, secondary=04, subordinate=04, sec-latency=0
    Capabilities: <access>
    Kernel driver in use: pcieport-driver
    Kernel modules: shpchp

00:18.0 Host bridge [0600]: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] HyperTransport Technology Configuration [1022:1100]
    Flags: fast devsel
    Capabilities: <access>

00:18.1 Host bridge [0600]: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Address Map [1022:1101]
    Flags: fast devsel

00:18.2 Host bridge [0600]: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] DRAM Controller [1022:1102]
    Flags: fast devsel

00:18.3 Host bridge [0600]: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Miscellaneous Control [1022:1103]
    Flags: fast devsel
    Capabilities: <access>
    Kernel driver in use: k8temp
    Kernel modules: k8temp

02:00.0 VGA compatible controller [0300]: nVidia Corporation GeForce 8200 [10de:0849] (rev a2) (prog-if 00 [VGA controller])
    Subsystem: ASUSTeK Computer Inc. Device [1043:82f2]
    Flags: bus master, fast devsel, latency 0, IRQ 21
    Memory at fd000000 (32-bit, non-prefetchable) [size=16M]
    Memory at d0000000 (64-bit, prefetchable) [size=256M]
    Memory at ce000000 (64-bit, prefetchable) [size=32M]
    I/O ports at ec00 [size=128]
    [virtual] Expansion ROM at febe0000 [disabled] [size=128K]
    Capabilities: <access>
    Kernel driver in use: nvidia
    Kernel modules: nvidia, nvidiafb
[lucullus@schatzkiste ~]$ ossmix
Selected mixer 0/High Definition Audio ALC883
Known controls are:
codec1.jack.green.mode <front> (currently front)
codec1.jack.green [<leftvol>:<rightvol>] (currently 29.9:29.9 dB)
codec1.jack.green.mute ON|OFF (currently OFF)
codec1.jack.black.mode <front> (currently center/LFE)
codec1.jack.black [<leftvol>:<rightvol>] (currently 29.9:29.9 dB)
codec1.jack.black.mute ON|OFF (currently OFF)
codec1.jack.orange.mode <front> (currently rear)
codec1.jack.orange [<leftvol>:<rightvol>] (currently 29.9:29.9 dB)
codec1.jack.orange.mute ON|OFF (currently OFF)
codec1.jack.gray.mode <front> (currently pcm4)
codec1.jack.gray [<leftvol>:<rightvol>] (currently 29.9:29.9 dB)
codec1.jack.gray.mute ON|OFF (currently OFF)
codec1.jack.pink.mode <front> (currently front)
codec1.jack.pink [<leftvol>:<rightvol>] (currently 29.9:29.9 dB)
codec1.jack.pink.mute ON|OFF (currently OFF)
codec1.jack.fp-pink.mode <front> (currently front)
codec1.jack.fp-pink [<leftvol>:<rightvol>] (currently 29.9:29.9 dB)
codec1.jack.fp-pink.mute ON|OFF (currently OFF)
codec1.jack.blue.mode <front> (currently input)
codec1.jack.blue [<leftvol>:<rightvol>] (currently 29.9:29.9 dB)
codec1.jack.blue.mute ON|OFF (currently OFF)
codec1.jack.fp-green.mode <front> (currently front)
codec1.jack.fp-green [<leftvol>:<rightvol>] (currently 29.9:29.9 dB)
codec1.jack.fp-green.mute ON|OFF (currently OFF)
codec1.record.mix.mute.mic1 ON|OFF (currently OFF)
codec1.record.mix.mute.fp-mic1 ON|OFF (currently OFF)
codec1.record.mix.mute.linein1 ON|OFF (currently OFF)
codec1.record.mix.mute.fp-head1 ON|OFF (currently OFF)
codec1.record.mix.mute.green1 ON|OFF (currently OFF)
codec1.record.mix.mute.black1 ON|OFF (currently OFF)
codec1.record.mix.mute.orange1 ON|OFF (currently OFF)
codec1.record.mix.mute.gray1 ON|OFF (currently OFF)
codec1.record.mix.mute.input-m1 ON|OFF (currently OFF)
codec1.record.mix1 [<leftvol>:<rightvol>] (currently 38.9:38.9 dB)
codec1.record.mix.mute.mic2 ON|OFF (currently OFF)
codec1.record.mix.mute.fp-mic2 ON|OFF (currently OFF)
codec1.record.mix.mute.linein2 ON|OFF (currently OFF)
codec1.record.mix.mute.fp-head2 ON|OFF (currently OFF)
codec1.record.mix.mute.green2 ON|OFF (currently OFF)
codec1.record.mix.mute.black2 ON|OFF (currently OFF)
codec1.record.mix.mute.orange2 ON|OFF (currently OFF)
codec1.record.mix.mute.gray2 ON|OFF (currently OFF)
codec1.record.mix.mute.input-m2 ON|OFF (currently OFF)
codec1.record.mix2 [<leftvol>:<rightvol>] (currently 38.9:38.9 dB)
codec1.misc.mic [<leftvol>:<rightvol>] (currently 38.9:38.9 dB)
codec1.misc.fp-mic [<leftvol>:<rightvol>] (currently 38.9:38.9 dB)
codec1.misc.linein [<leftvol>:<rightvol>] (currently 38.9:38.9 dB)
codec1.misc.fp-headphone [<leftvol>:<rightvol>] (currently 38.9:38.9 dB)
codec1.misc.green [<leftvol>:<rightvol>] (currently 38.9:38.9 dB)
codec1.misc.black [<leftvol>:<rightvol>] (currently 38.9:38.9 dB)
codec1.misc.orange [<leftvol>:<rightvol>] (currently 38.9:38.9 dB)
codec1.misc.gray [<leftvol>:<rightvol>] (currently 38.9:38.9 dB)
codec1.misc.input-mix <mic> (currently mic)
codec1.misc.front-mute ON|OFF (currently OFF)
codec1.misc.input-mix-mute1 ON|OFF (currently OFF)
codec1.misc.front1 [<leftvol>:<rightvol>] (currently 38.9:38.9 dB)
codec1.misc.front2 <front> (currently front)
codec1.misc.rear-mute ON|OFF (currently OFF)
codec1.misc.input-mix-mute2 ON|OFF (currently OFF)
codec1.misc.rear1 [<leftvol>:<rightvol>] (currently 38.9:38.9 dB)
codec1.misc.rear2 <rear> (currently rear)
codec1.misc.center/lfe-mute ON|OFF (currently OFF)
codec1.misc.input-mix-mute3 ON|OFF (currently OFF)
codec1.misc.center/lfe1 [<leftvol>:<rightvol>] (currently 38.9:38.9 dB)
codec1.misc.center/lfe2 <center> (currently center/LFE)
codec1.misc.side-mute ON|OFF (currently OFF)
codec1.misc.input-mix-mute4 ON|OFF (currently OFF)
codec1.misc.side1 [<leftvol>:<rightvol>] (currently 38.9:38.9 dB)
codec1.misc.side2 <side> (currently side)
codec1.misc.pcm4-mute ON|OFF (currently OFF)
codec1.misc.input-mix-mute5 ON|OFF (currently OFF)
codec1.misc.pcm41 [<leftvol>:<rightvol>] (currently 38.9:38.9 dB)
codec1.misc.pcm42 <pcm4> (currently pcm4)
vmix0-enable ON|OFF (currently ON)
vmix0-rate <decimal> (currently 48000) (Read-only)
vmix0-channels <Stereo> (currently Stereo)
vmix0-src <Fast> (currently Fast)
vmix0-outvol <monovol> (currently 23.7 dB)
vmix0-invol <monovol> (currently 25.0 dB)
vmix0.pcm9 [<leftvol>:<rightvol>] (currently 25.0:25.0 dB)
vmix0.pcm10 [<leftvol>:<rightvol>] (currently 25.0:25.0 dB) ("mplayer")
vmix0.pcm11 [<leftvol>:<rightvol>] (currently 25.0:25.0 dB)
vmix0.pcm12 [<leftvol>:<rightvol>] (currently 25.0:25.0 dB)

Last edited by Shapeshifter (2009-06-24 15:11:53)

Offline

#2 2009-06-26 12:21:25

Shapeshifter
Member
Registered: 2008-03-11
Posts: 230

Re: Can't record from USB webcam microphone (neither ASLA nor OSS)

I filed a bug at OSS and I received the message that USB recording through OSS is officially broken and will probably not get fixed in a long time.

Offline

Board footer

Powered by FluxBB