Ticket #110 (assigned tracking)

Opened 1 year ago

Last modified 2 months ago

Reading USB name from HAL too quickly

Reported by: jonsmirl Assigned to: lennart (accepted)
Priority: normal Milestone:
Component: module-hal-detect Severity: normal
Keywords: Cc: avuton@gmail.com

Description

hal 0.5.9-1ubuntu2~feisty1

I'm getting USB devices with names like: alsa_output.usb_device_ffffffff_ffffffff_noserial_alsa_playback_0

When I look in HAL the name is: alsa_output.usb_device_471_155_noserial_if0_alsa_playback_0

My guess is that pulse is getting the name out of HAL before HAL has received the reply from the USB device describing it's USB ID.HAL probably starts the name off as FFFFFFFF and changes it when the USB device responds. Note the missing if0. HAL hasn't picked the USB device config to use yet.

This is happening pretty much every time I unplug/plug one of my USB devices.

Change History

08/26/07 04:16:37 changed by lennart

  • status changed from new to assigned.

This looks like a HAL bug to me. HAL shouldn't notify clients about devices that are not fully initialized. Please report this to HAL upstream.

03/28/08 17:15:21 changed by avuton

  • cc set to avuton@gmail.com.

Reporter, did you file / find the bug upstream yet?

03/28/08 18:43:07 changed by avuton

Not for nothing, but I think this is actually an ALSA issue; I have other applications that are getting confused by stuff changing on suspend as well, such as the kmix dock app (which crashes when the name changes, and I don't think that app uses HAL at all).

03/28/08 19:19:08 changed by lennart

  • component changed from daemon to module-hal-detect.

Hmm, actaully nowadays I think this is an ALSA issue too. Have you tried newest ALSA? If the problem persists with newest ALSA please file a bug to ALSA upstream.

03/28/08 20:41:42 changed by avuton

OK, to keep track, I just filed a bug. I'm not too technical on it, as I don't know too much of the internals, such as where HALD actually gets the information about the sound card. I grepped /sys and /proc and found nothing interesting there.

ALSA Bug 3873

06/21/08 18:15:10 changed by lennart

  • type changed from defect to tracking.