LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices



Reply
 
Search this Thread
Old 12-11-2010, 04:14 AM   #1
Tomasfuego
Member
 
Registered: Nov 2002
Location: USA
Distribution: Lenny at work
Posts: 168

Rep: Reputation: 30
Unhappy My USB Microphone no worky with Mythbuntu


Been trying to get USB microphone on my webcam to work but no luck. Using Mythbuntu (Ubuntu 10.10/2.6.35 Alsa 1.0.23)

Command being used:
arecord -vv -D plughw:1,0 -f S16_LE -d 1 /dev/null

Output:
Recording WAVE '/dev/null' : Signed 16 bit Little Endian, Rate 8000 Hz, Mono
Plug PCM: Hardware PCM card 1 'USB Device 0x46d:0x8b2' device 0 subdevice 0
Its setup is:
stream : CAPTURE
access : RW_INTERLEAVED
format : S16_LE
subformat : STD
channels : 1
rate : 8000
exact rate : 8000 (8000/1)
msbits : 16
buffer_size : 4000
period_size : 1000
period_time : 125000
tstamp_mode : NONE
period_step : 1
avail_min : 1000
period_event : 0
start_threshold : 1
stop_threshold : 4000
silence_threshold: 0
silence_size : 0
boundary : 2097152000
appl_ptr : 0
hw_ptr : 0
arecord: pcm_read:1692: read error: Input/output error

dmesg | tail
[ 2183.810982] ALSA sound/usb/pcm.c:226: setting usb interface 2:4
[ 2183.810992] ALSA sound/usb/clock.c:216: 3:2:4: endpoint lacks sample rate attribute bit, cannot set.
[ 2283.808023] ALSA sound/core/pcm_lib.c:1752: capture write error (DMA or IRQ trouble?)

Hardware:
ASUS AT5IONT-I (Atom D525 w/NVIDIA ION2)
Logitech, Inc. QuickCam Pro 4000 (ID 046d:08b2)

I also have a Logitech QuickCam web but it shows the same capture write error in dmesg

Wish I knew what knobs could affect DMA/IRQ ...

cat /proc/dma
4: cascade

cat /proc/interrupts
CPU0
0: 38 XT-PIC-XT timer
1: 2 XT-PIC-XT i8042
2: 0 XT-PIC-XT cascade
8: 1 XT-PIC-XT rtc0
9: 0 XT-PIC-XT acpi
10: 74 XT-PIC-XT uhci_hcd:usb3, xhci_hcd:usb6, saa7164[0]
11: 34047 XT-PIC-XT uhci_hcd:usb4, ahci, hda_intel, nvidia
12: 4 XT-PIC-XT i8042
14: 4 XT-PIC-XT ehci_hcd:usb1, uhci_hcd:usb2
15: 10431 XT-PIC-XT uhci_hcd:usb5, hda_intel
16: 0 PCI-MSI-edge pciehp
17: 0 PCI-MSI-edge pciehp
18: 0 PCI-MSI-edge pciehp
19: 0 PCI-MSI-edge pciehp
23: 1116 PCI-MSI-edge eth0
24: 5788 PCI-MSI-edge ahci
NMI: 0 Non-maskable interrupts
LOC: 52947 Local timer interrupts
SPU: 0 Spurious interrupts
PMI: 0 Performance monitoring interrupts
PND: 0 Performance pending work
RES: 0 Rescheduling interrupts
CAL: 0 Function call interrupts
TLB: 0 TLB shootdowns
TRM: 0 Thermal event interrupts
THR: 0 Threshold APIC interrupts
MCE: 0 Machine check exceptions
MCP: 2 Machine check polls
ERR: 0
MIS: 0

Last edited by Tomasfuego; 12-11-2010 at 04:17 AM.
 
Old 12-11-2010, 09:41 AM   #2
Drakeo
Senior Member
 
Registered: Jan 2008
Location: Urbana IL
Distribution: Slackware, Slacko,
Posts: 2,658
Blog Entries: 3

Rep: Reputation: 224Reputation: 224Reputation: 224
well this has been around a while here is the manual it basically say open a terminal run gnome-alsamixer and select input your mic then enable capture and also mic boost. good luck.
Quote:
arecord: pcm_read:1692: read error: Input/output error
and
Quote:
[ 2283.808023] ALSA sound/core/pcm_lib.c:1752: capture write error (DMA or IRQ trouble?)

Last edited by Drakeo; 12-11-2010 at 09:42 AM.
 
1 members found this post helpful.
Old 12-11-2010, 01:34 PM   #3
Tomasfuego
Member
 
Registered: Nov 2002
Location: USA
Distribution: Lenny at work
Posts: 168

Original Poster
Rep: Reputation: 30
Thanks! Your suggestion worked. That saved me a couple sleepless nights. I was literally inspecting kernel code to see what the problem could be.

gnome-alsamixer isn't installed by default apparently. The Rec check box is what did the trick. I had been using alsamixer did not see its equivalent. Also, apparently the older webcam may be broken in hw or in kernel.

Your link enlightened me to amixer ... to do what I did in gnome-alsamixer, its
amixer -c 1 sset 'Mic' toggle.

Though, scratching my head a bit as to why google didnt give me much help on this one ... oh well, others may benefit from my ignorance now.
 
Old 12-12-2010, 09:30 PM   #4
Drakeo
Senior Member
 
Registered: Jan 2008
Location: Urbana IL
Distribution: Slackware, Slacko,
Posts: 2,658
Blog Entries: 3

Rep: Reputation: 224Reputation: 224Reputation: 224
sudo apt-get install libv4l-0 for the old gspca cams for skype and do this. as in the skype and ubuntu manual. in a termial run .
Quote:
LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so skype
if running 64 bit UBUNTU sudo apt-get lib32v4l-0
Quote:
LD_PRELOAD=/usr/lib32/libv4l/v4l1compat.so skype
then you also need or do as I did edited my programs even my browsers so I could use my old cam in my browser or in skype. Been doing that since the 2.6.27 kernel when we went to v4l2 .
good luck

Last edited by Drakeo; 12-12-2010 at 09:47 PM.
 
  


Reply

Tags
alsa, microphone, usb


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
usb microphone storywizard Suse/Novell 0 08-17-2006 12:00 AM
USB Desktop Microphone carnold Suse/Novell 1 06-27-2006 08:20 AM
USB webcam/microphone squimmy Linux - Hardware 3 02-05-2006 07:33 PM
USB-Microphone Crash toomsie Linux - Hardware 0 09-21-2004 07:34 AM
usb desktop microphone cpukiller Linux - Hardware 0 08-09-2004 08:48 AM


All times are GMT -5. The time now is 11:20 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration