pulseaudio stops responding after plugging Logitech webcam in

Bug #1007542 reported by Andrei Dziahel
22
This bug affects 4 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Incomplete
Medium
Unassigned

Bug Description

Repro: plug Logitech C270 (one I have) webcam in USB port (others with builtin microphone are affected most likely)

Expected: device hooks up and works properly
Actual behavior: pulseaudio becomes unresponsive (totem freezes, volume controls work with huge delay, sound is not played at all), dmesg becomes flooded with messages like "7:3:4: cannot set freq 48000 to ep 0x86"

After unplugging webcam pulseaudio becomes responsive again.

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: pulseaudio 1:1.1-0ubuntu15.1
ProcVersionSignature: Ubuntu 3.2.0-25.40-generic-pae 3.2.18
Uname: Linux 3.2.0-25-generic-pae i686
NonfreeKernelModules: nvidia
AlsaVersion: Advanced Linux Sound Architecture Driver Version 1.0.24.
ApportVersion: 2.0.1-0ubuntu8
Architecture: i386
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/pcmC1D0c: andy 17317 F...m pulseaudio
 /dev/snd/controlC2: andy 17317 F.... pulseaudio
 /dev/snd/controlC0: andy 17317 F.... pulseaudio
Card0.Amixer.info:
 Card hw:0 'SB'/'HDA ATI SB at 0xfbff4000 irq 16'
   Mixer name : 'Realtek ALC889'
   Components : 'HDA:10ec0889,14627388,00100004'
   Controls : 47
   Simple ctrls : 23
Card1.Amixer.info:
 Card hw:1 'U0x46d0x825'/'USB Device 0x46d:0x825 at usb-0000:00:12.2-2, high speed'
   Mixer name : 'USB Mixer'
   Components : 'USB046d:0825'
   Controls : 2
   Simple ctrls : 1
Card1.Amixer.values:
 Simple mixer control 'Mic',0
   Capabilities: cvolume cvolume-joined cswitch cswitch-joined penum
   Capture channels: Mono
   Limits: Capture 0 - 6144
   Mono: Capture 6144 [100%] [30.00dB] [off]
Card2.Amixer.info:
 Card hw:2 'NVidia'/'HDA NVidia at 0xfeafc000 irq 19'
   Mixer name : 'Nvidia GPU 16 HDMI/DP'
   Components : 'HDA:10de0016,10de0101,00100100'
   Controls : 25
   Simple ctrls : 5
Date: Fri Jun 1 19:48:01 2012
SourcePackage: pulseaudio
UpgradeStatus: Upgraded to precise on 2012-04-26 (35 days ago)
dmi.bios.date: 05/12/2010
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: V8.6
dmi.board.asset.tag: To Be Filled By O.E.M.
dmi.board.name: 770T-C45 (MS-7388)
dmi.board.vendor: MICRO-STAR INTERNATIONAL CO.,LTD
dmi.board.version: 3.0
dmi.chassis.asset.tag: To Be Filled By O.E.M.
dmi.chassis.type: 3
dmi.chassis.vendor: MICRO-STAR INTERNATIONAL CO.,LTD
dmi.chassis.version: 3.0
dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvrV8.6:bd05/12/2010:svnMICRO-STARINTERNATIONALCO.,LTD:pnMS-7388:pvr3.0:rvnMICRO-STARINTERNATIONALCO.,LTD:rn770T-C45(MS-7388):rvr3.0:cvnMICRO-STARINTERNATIONALCO.,LTD:ct3:cvr3.0:
dmi.product.name: MS-7388
dmi.product.version: 3.0
dmi.sys.vendor: MICRO-STAR INTERNATIONAL CO.,LTD

Revision history for this message
Andrei Dziahel (develop7) wrote :
visibility: public → private
visibility: private → public
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in pulseaudio (Ubuntu):
status: New → Confirmed
Revision history for this message
Raymond (superquad-vortex2) wrote :

> dmesg becomes flooded with messages like "7:3:4: cannot set freq 48000 to ep 0x86"

post the output of lsusb -vvvv of your Logitech webcam

does your Logitech webcam support 48000Hz ?

tags: added: amd64 quantal
Revision history for this message
Andrei Dziahel (develop7) wrote :

@raymond, thank you for response

> post the output of lsusb -vvvv of your Logitech webcam

check out lsusb.txt attached

> does your Logitech webcam support 48000Hz ?

How do I check it exactly?

Revision history for this message
Raymond (superquad-vortex2) wrote :
Download full text (5.7 KiB)

seem support mono S16_LE at 16000, 24000, 32000 and 48000Hz

try

arecord -D hw:1 -f S16_LE -c 1 -r 48000 | aplay -D plughw:0

and check any error message in system log

AudioStreaming Interface Descriptor:
        bLength 11
        bDescriptorType 36
        bDescriptorSubtype 2 (FORMAT_TYPE)
        bFormatType 1 (FORMAT_TYPE_I)
        bNrChannels 1
        bSubframeSize 2
        bBitResolution 16
        bSamFreqType 1 Discrete
        tSamFreq[ 0] 16000
      Endpoint Descriptor:
        bLength 9
        bDescriptorType 5
        bEndpointAddress 0x86 EP 6 IN
        bmAttributes 5
          Transfer Type Isochronous
          Synch Type Asynchronous
          Usage Type Data
        wMaxPacketSize 0x0044 1x 68 bytes
        bInterval 4
        bRefresh 0
        bSynchAddress 0
        AudioControl Endpoint Descriptor:
          bLength 7
          bDescriptorType 37
          bDescriptorSubtype 1 (EP_GENERAL)
          bmAttributes 0x01
            Sampling Frequency
          bLockDelayUnits 0 Undefined
          wLockDelay 0 Undefined
    Interface Descriptor:
      bLength 9
      bDescriptorType 4
      bInterfaceNumber 3
      bAlternateSetting 2
      bNumEndpoints 1
      bInterfaceClass 1 Audio
      bInterfaceSubClass 2 Streaming
      bInterfaceProtocol 0
      iInterface 0
      AudioStreaming Interface Descriptor:
        bLength 7
        bDescriptorType 36
        bDescriptorSubtype 1 (AS_GENERAL)
        bTerminalLink 3
        bDelay 1 frames
        wFormatTag 1 PCM
      AudioStreaming Interface Descriptor:
        bLength 11
        bDescriptorType 36
        bDescriptorSubtype 2 (FORMAT_TYPE)
        bFormatType 1 (FORMAT_TYPE_I)
        bNrChannels 1
        bSubframeSize 2
        bBitResolution 16
        bSamFreqType 1 Discrete
        tSamFreq[ 0] 24000
      Endpoint Descriptor:
        bLength 9
        bDescriptorType 5
        bEndpointAddress 0x86 EP 6 IN
        bmAttributes 5
          Transfer Type Isochronous
          Synch Type Asynchronous
          Usage Type Data
        wMaxPacketSize 0x0064 1x 100 bytes
        bInterval 4
        bRefresh 0
        bSynchAddress 0
        AudioControl Endpoint Descriptor:
          bLength 7
          bDescriptorType 37
          bDescriptorSubtype 1 (EP_GENERAL)
          bmAttributes 0x01
            Sampling Frequency
          bLockDelayUnits 0 Undefined
          wLockDelay 0 Undefined
    Interface Descriptor:
      bLength 9
      bDescriptorType 4
 ...

Read more...

Revision history for this message
Andrei Dziahel (develop7) wrote :

Ok, it seems like this bug is not reproduced every time I plug webcam. This time webcam was hooked up successfully, revealing following in `pactl list cards`:

Card #4
 Name: alsa_card.usb-046d_0825_FCE88FE0-02-U0x46d0x825
 Driver: module-alsa-card.c
 Owner Module: 26
 Properties:
  alsa.card = "2"
  alsa.card_name = "USB Device 0x46d:0x825"
  alsa.long_card_name = "USB Device 0x46d:0x825 at usb-0000:00:12.2-5, high speed"
  alsa.driver_name = "snd_usb_audio"
  device.bus_path = "pci-0000:00:12.2-usb-0:5:1.2"
  sysfs.path = "/devices/pci0000:00/0000:00:12.2/usb1/1-5/1-5:1.2/sound/card2"
  udev.id = "usb-046d_0825_FCE88FE0-02-U0x46d0x825"
  device.bus = "usb"
  device.vendor.id = "046d"
  device.vendor.name = "Logitech, Inc."
  device.product.id = "0825"
  device.product.name = "Webcam C270"
  device.serial = "046d_0825_FCE88FE0"
  device.form_factor = "webcam"
  device.string = "2"
  device.description = "Webcam C270"
  module-udev-detect.discovered = "1"
  device.icon_name = "camera-web-usb"
 Profiles:
  input:analog-mono: Analog Mono Input (sinks: 0, sources: 1, priority. 1)
  off: Off (sinks: 0, sources: 0, priority. 0)
 Active Profile: input:analog-mono
 Ports:
  analog-input-microphone: Microphone (priority: 8700)
   Part of profile(s): input:analog-mono

Nevertheless, kern.log had following after plugging webcam in:

Jan 6 20:52:44 t-rex kernel: [30006.048355] usb 1-5: new high-speed USB device number 6 using ehci_hcd
Jan 6 20:52:45 t-rex kernel: [30006.396631] usb 1-5: New USB device found, idVendor=046d, idProduct=0825
Jan 6 20:52:45 t-rex kernel: [30006.396644] usb 1-5: New USB device strings: Mfr=0, Product=0, SerialNumber=2
Jan 6 20:52:45 t-rex kernel: [30006.396652] usb 1-5: SerialNumber: FCE88FE0
Jan 6 20:52:45 t-rex kernel: [30006.398104] uvcvideo: Found UVC 1.00 device <unnamed> (046d:0825)
Jan 6 20:52:45 t-rex kernel: [30006.495377] input: UVC Camera (046d:0825) as /devices/pci0000:00/0000:00:12.2/usb1/1-5/1-5:1.0/input/input19
Jan 6 20:52:46 t-rex kernel: [30007.502483] 6:3:3: cannot set freq 32000 to ep 0x86

Note "32000" in last line instead of "48000" as in original issue.

Revision history for this message
Raymond (superquad-vortex2) wrote :
Revision history for this message
penalvch (penalvch) wrote :

Andrei Dziahel, this bug was reported a while ago and there hasn't been any activity in it recently. We were wondering if this is still an issue? If so, could you please test for this with the latest development release of Ubuntu? ISO images are available from http://cdimage.ubuntu.com/daily-live/current/ .

If it remains an issue, could you please run the following command in the development release from a Terminal (Applications->Accessories->Terminal), as it will automatically gather and attach updated debug information to this report:

apport-collect -p linux <replace-with-bug-number>

Also, could you please test the latest upstream kernel available following https://wiki.ubuntu.com/KernelMainlineBuilds ? It will allow additional upstream developers to examine the issue. Please do not test the daily folder, but the one all the way at the bottom. Once you've tested the upstream kernel, please comment on which kernel version specifically you tested. If this bug is fixed in the mainline kernel, please add the following tags:
kernel-fixed-upstream
kernel-fixed-upstream-VERSION-NUMBER

where VERSION-NUMBER is the version number of the kernel you tested. For example:
kernel-fixed-upstream-v3.11-rc5

This can be done by clicking on the yellow circle with a black pencil icon next to the word Tags located at the bottom of the bug description. As well, please remove the tag:
needs-upstream-testing

If the mainline kernel does not fix this bug, please add the following tags:
kernel-bug-exists-upstream
kernel-bug-exists-upstream-VERSION-NUMBER

As well, please remove the tag:
needs-upstream-testing

Once testing of the upstream kernel is complete, please mark this bug's Status as Confirmed. Please let us know your results. Thank you for your understanding.

tags: added: bios-outdated-8.7 needs-upstream-testing regression-potential
affects: pulseaudio (Ubuntu) → linux (Ubuntu)
Changed in linux (Ubuntu):
status: Confirmed → Incomplete
tags: added: raring
Changed in linux (Ubuntu):
importance: Undecided → Medium
Revision history for this message
Andrei Dziahel (develop7) wrote :

Christopher,

Yes, this still is an issue — though on raring it is reproduced not every time I plug camera.

I will try to repro it on latest kernel, but later on.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.