UA-101, ALSA playback was disrupted when disconnecting an already unmounted USB hard disk
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ALSA driver |
Invalid
|
Undecided
|
Unassigned | ||
Linux |
New
|
Undecided
|
Unassigned | ||
linux (Ubuntu) |
Incomplete
|
Undecided
|
Unassigned |
Bug Description
While VLC was playing video with sound via ALSA, I have disconnected an USB hard drive (after I have unmounted the file system). Then the sound stopped working while VLC was still playing video.
The USB-LED on the device was blinking green (error condition), while normally it lights red when the device is ready to use.
Also the pulseaudio system which uses the UA-101 via ALSA was hanging.
I had do turn the UA-101 off to stop pulseaudio hanging and let apport-bug continue to finish creating the bug report.
apport-bug then suggested the bug title "UA-101 - UA-101, playback Pulseaudio fails to detect card", but this is not the bug to be reported here.
Note: Such a bug in pulseaudio exists: see https:/
The bug to be reported here is that the USB connection to the UA-101 got out of sync, because another device has been disconnected.
This seems to be an issue with ALSA and USB.
Dmesg showed these lines:
[173549.193823] NVRM: os_pci_init_handle: invalid context!
[173549.193829] NVRM: os_pci_init_handle: invalid context!
[173549.193838] NVRM: os_map_
[173549.193842] NVRM: os_pci_init_handle: invalid context!
[173592.474016] NVRM: os_pci_init_handle: invalid context!
[173592.474022] NVRM: os_pci_init_handle: invalid context!
[173592.474032] NVRM: os_map_
[173592.474036] NVRM: os_pci_init_handle: invalid context!
[173759.693800] NVRM: os_pci_init_handle: invalid context!
[173759.693805] NVRM: os_pci_init_handle: invalid context!
[173759.693814] NVRM: os_map_
[173759.693818] NVRM: os_pci_init_handle: invalid context!
[173888.314092] NVRM: os_pci_init_handle: invalid context!
[173888.314096] NVRM: os_pci_init_handle: invalid context!
[173888.314105] NVRM: os_map_
[173888.314107] NVRM: os_pci_init_handle: invalid context!
[174010.113854] NVRM: os_pci_init_handle: invalid context!
[174010.113858] NVRM: os_pci_init_handle: invalid context!
[174010.113867] NVRM: os_map_
[174010.113869] NVRM: os_pci_init_handle: invalid context!
[174341.656866] usb 1-3: USB disconnect, device number 5
[174488.916110] usb 1-4: interface reset failed; error -110: unknown error
[174493.916106] usb 1-4: interface reset failed; error -110: unknown error
[174498.948113] usb 1-4: interface reset failed; error -110: unknown error
[174503.948110] usb 1-4: interface reset failed; error -110: unknown error
[174508.972116] usb 1-4: interface reset failed; error -110: unknown error
[174513.972118] usb 1-4: interface reset failed; error -110: unknown error
[174518.996111] usb 1-4: interface reset failed; error -110: unknown error
[174523.996113] usb 1-4: interface reset failed; error -110: unknown error
[174529.020119] usb 1-4: interface reset failed; error -110: unknown error
[174534.020124] usb 1-4: interface reset failed; error -110: unknown error
[174539.044123] usb 1-4: interface reset failed; error -110: unknown error
[174544.044125] usb 1-4: interface reset failed; error -110: unknown error
...
michael@
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 008 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 002: ID 0582:007d Roland Corp. EDIROL UA-101
Bus 005 Device 002: ID 046a:0001 Cherry GmbH My3000 Keyboard
Bus 008 Device 003: ID 046d:c050 Logitech, Inc. RX 250 Optical Mouse
After turning the UA-101 off and on again, dmesg showed these lines and the unknown error lines didn't occur again:
[175170.560164] usb 1-4: interface reset failed; error -110: unknown error
[175175.560163] usb 1-4: interface reset failed; error -110: unknown error
[175180.576167] usb 1-4: interface reset failed; error -110: unknown error
[175184.800815] usb 1-4: USB disconnect, device number 2
[175210.512024] usb 1-4: new high-speed USB device number 6 using ehci_hcd
---
AlsaVersion: Advanced Linux Sound Architecture Driver Version 1.0.24.
ApportVersion: 2.0.1-0ubuntu11
Architecture: i386
AudioDevicesInUse:
USER PID ACCESS COMMAND
/dev/snd/
/dev/snd/
CRDA: Error: command ['iw', 'reg', 'get'] failed with exit code 1: nl80211 not found.
Card0.Amixer.info:
Card hw:0 'UA101'/'EDIROL UA-101 (serial ZT82634), 192000 Hz at usb-0000:00:1a.7-4, high speed'
Mixer name : ''
Components : ''
Controls : 1
Simple ctrls : 1
Card0.Amixer.
Simple mixer control 'MIDI Input Mode',0
Capabilities: enum
Items: 'High Load' 'Light Load'
Item0: 'Light Load'
Card1.Amixer.info:
Card hw:1 'Intel'/'HDA Intel at 0xf6ff8000 irq 44'
Mixer name : 'Realtek ALC883'
Components : 'HDA:10ec0883,
Controls : 45
Simple ctrls : 21
Card2.Amixer.info:
Card hw:2 'CX8811'/'Conexant CX8811 at 0xfb000000'
Mixer name : 'CX88'
Components : ''
Controls : 3
Simple ctrls : 2
DistroRelease: Ubuntu 12.04
HibernationDevice: RESUME=
InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Release i386 (20120423)
IwConfig:
lo no wireless extensions.
eth0 no wireless extensions.
MachineType: System manufacturer P5K
NonfreeKernelMo
Package: linux (not installed)
ProcEnviron:
TERM=xterm
PATH=(custom, no user)
LANG=en_US.UTF-8
SHELL=/bin/bash
ProcFB: 0 EFI VGA
ProcKernelCmdLine: BOOT_IMAGE=
ProcVersionSign
RelatedPackageV
linux-
linux-
linux-firmware 1.79
RfKill:
Tags: precise running-unity precise running-unity
Uname: Linux 3.2.0-27-
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo
dmi.bios.date: 10/14/2008
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: 1201
dmi.board.
dmi.board.name: P5K
dmi.board.vendor: ASUSTeK Computer INC.
dmi.board.version: Rev 1.xx
dmi.chassis.
dmi.chassis.type: 3
dmi.chassis.vendor: Chassis Manufacture
dmi.chassis.
dmi.modalias: dmi:bvnAmerican
dmi.product.name: P5K
dmi.product.
dmi.sys.vendor: System manufacturer
When audio was disrupted, VLC was playing with ALSA directly, bypassing Pulseaudio, thus it is very unlikely a pulseaudio-bug.