#926: usb soundcard does not work reliably in pulseaudio, but works otherwise
---------------------+------------------------------------------------------
  Reporter:  martin  |       Owner:  lennart
      Type:  defect  |      Status:  new    
 Milestone:          |   Component:  daemon 
Resolution:          |    Keywords:         
---------------------+------------------------------------------------------

Old description:

> I have a ThinkPad T23 with a M-Audio Sonica Theater sound card that
> doesn't work reliably with KDE 4.4.3 and Phonon Xine, while without
> PulseAudio it works. It happens at times, I did not make out a pattern,
> also after a hibernation cycle that the USB soundcard is greyed out in
> KDE multimedia system settings (for Phonon) and sound is switched to
> internal audio.
>
> And I have this in the syslog:
>
> Mar 27 12:27:44 localhost kernel: 2:2:4: usb_set_interface failed
> Mar 27 12:27:44 localhost kernel: 2:2:4: usb_set_interface failed
> Mar 27 12:27:44 localhost kernel: 2:2:4: usb_set_interface failed
> Mar 27 12:27:44 localhost kernel: 2:2:4: usb_set_interface failed
> Mar 27 12:27:44 localhost kernel: 2:2:4: usb_set_interface failed
> Mar 27 12:27:44 localhost kernel: 2:2:4: usb_set_interface failed
> Mar 27 12:27:44 localhost kernel: 2:2:4: usb_set_interface failed
> Mar 27 12:27:44 localhost kernel: 2:1:3: usb_set_interface failed
> Mar 27 12:27:44 localhost kernel: 2:1:3: usb_set_interface failed
> Mar 27 12:27:44 localhost kernel: 2:1:3: usb_set_interface failed
> Mar 27 12:27:44 localhost kernel: 2:1:3: usb_set_interface failed
>
> (lots more, strangely no feedback from pulseaudio daemon itself)
>
> But when I apt-get purge pulseaudio, replug the sound card I just get:
>
> {{{
> Mar 27 12:30:32 localhost kernel: usb 1-1: USB disconnect, address 2
> Mar 27 12:30:38 localhost kernel: usb 1-1: new full speed USB device
> using uhci_hcd and address 3
> Mar 27 12:30:39 localhost kernel: usb 1-1: New USB device found,
> idVendor=0763, idProduct=2007
> Mar 27 12:30:39 localhost kernel: usb 1-1: New USB device strings: Mfr=1,
> Product=2, SerialNumber=0
> Mar 27 12:30:39 localhost kernel: usb 1-1: Product: Sonica Theater
> Mar 27 12:30:39 localhost kernel: usb 1-1: Manufacturer: M-Audio
> }}}
>
> and everything works as expected. No errors regarding usb_set_interface
> failed at all.
>
> {{{
> martin@deepdance:~> lsusb
> Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
> Bus 005 Device 002: ID 046d:c001 Logitech, Inc. N48/M-BB48 [FirstMouse
> Plus]
> Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
> Bus 004 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 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
> Bus 001 Device 003: ID 0763:2007 Midiman M-Audio Sonica Theater
> Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
> }}}
>
> martin@deepdance:~> cat /proc/version
> Linux version 2.6.38.1-tp23 (martin@deepdance) (gcc version 4.4.5 (Debian
> 4.4.5-8) ) #2 PREEMPT Fri Mar 25 18:39:36 CET 2011
>
> Package versions:
>
> {{{
> martin@deepdance:~> cat /proc/version
> Linux version 2.6.38.1-tp23 (martin@deepdance) (gcc version 4.4.5 (Debian
> 4.4.5-8) ) #2 PREEMPT Fri Mar 25 18:39:36 CET 2011
> martin@deepdance:~> apt-show-versions | egrep
> "(pulseaudio|xine|phonon|alsa)"
> alsa-base/squeeze uptodate 1.0.23+dfsg-2
> alsa-oss/squeeze uptodate 1.0.17-4
> alsa-utils/squeeze uptodate 1.0.23-3
> gstreamer0.10-alsa/squeeze uptodate 0.10.30-1
> gstreamer0.10-pulseaudio/squeeze uptodate 0.10.24-1
> kde-config-phonon-xine/squeeze uptodate 4:4.4.5-1
> libphonon4/sid uptodate 4:4.6.0really4.4.4-3
> libsmokephonon3/squeeze uptodate 4:4.4.5-3
> libsox-fmt-alsa/squeeze uptodate 14.3.1-1
> libxine1/squeeze uptodate 1.1.19-2
> libxine1-bin/squeeze uptodate 1.1.19-2
> libxine1-console/squeeze uptodate 1.1.19-2
> libxine1-ffmpeg/squeeze uptodate 1.1.19-2
> libxine1-misc-plugins/squeeze uptodate 1.1.19-2
> libxine1-plugins/squeeze uptodate 1.1.19-2
> libxine1-x/squeeze uptodate 1.1.19-2
> libxinerama1/squeeze uptodate 2:1.1-3
> phonon/sid uptodate 4:4.6.0really4.4.4-3
> phonon-backend-gstreamer/sid uptodate 4:4.6.0really4.4.4-3
> phonon-backend-vlc/sid uptodate 0.3.2-3
> phonon-backend-vlc-dbg/sid uptodate 0.3.2-3
> phonon-backend-xine/sid uptodate 4:4.6.0really4.4.4-3
> pulseaudio-utils/sid uptodate 0.9.21-4
> xine-ui/squeeze uptodate 0.99.6-1
> }}}
>
> (pulseaudio was completely installed at version 0.9.21-4, above output is
> with purged pulseaudio, cause I just wanted to listen to music instead of
> fiddling around with things.)
>
> BTW replugging the sound card does not help when Pulseaudio is installed.
> But without pulseaudio playback is fine.
>
> I also have rtkit 10 installed which did seem to do what it should by
> giving out nice -11 for pulseaudio and RT 5 for its audio playback
> threads.
>
> I have a ThinkPad T42 where the M-Audio Sonica Theater worked to far.
> Also with Pulseaudio. I really want to use that soundcard, cause quality
> is so much better. I also tried with gstreamer backend, but also there
> the Sonica Theater was disabled.
>
> I have also pulseaudio 0.9.22 in Debian Experimental that I could try,
> but first I wait for a hint what could go wrong here.

New description:

 I have a ThinkPad T23 with a M-Audio Sonica Theater sound card that
 doesn't work reliably with KDE 4.4.3 and Phonon Xine, while without
 PulseAudio it works. It happens at times, I did not make out a pattern,
 also after a hibernation cycle that the USB soundcard is greyed out in KDE
 multimedia system settings (for Phonon) and sound is switched to internal
 audio.

 And I have this in the syslog:

 {{{
 Mar 27 12:27:44 localhost kernel: 2:2:4: usb_set_interface failed
 Mar 27 12:27:44 localhost kernel: 2:2:4: usb_set_interface failed
 Mar 27 12:27:44 localhost kernel: 2:2:4: usb_set_interface failed
 Mar 27 12:27:44 localhost kernel: 2:2:4: usb_set_interface failed
 Mar 27 12:27:44 localhost kernel: 2:2:4: usb_set_interface failed
 Mar 27 12:27:44 localhost kernel: 2:2:4: usb_set_interface failed
 Mar 27 12:27:44 localhost kernel: 2:2:4: usb_set_interface failed
 Mar 27 12:27:44 localhost kernel: 2:1:3: usb_set_interface failed
 Mar 27 12:27:44 localhost kernel: 2:1:3: usb_set_interface failed
 Mar 27 12:27:44 localhost kernel: 2:1:3: usb_set_interface failed
 Mar 27 12:27:44 localhost kernel: 2:1:3: usb_set_interface failed
 }}}

 (lots more, strangely no feedback from pulseaudio daemon itself)

 But when I apt-get purge pulseaudio, replug the sound card I just get:

 {{{
 Mar 27 12:30:32 localhost kernel: usb 1-1: USB disconnect, address 2
 Mar 27 12:30:38 localhost kernel: usb 1-1: new full speed USB device using
 uhci_hcd and address 3
 Mar 27 12:30:39 localhost kernel: usb 1-1: New USB device found,
 idVendor=0763, idProduct=2007
 Mar 27 12:30:39 localhost kernel: usb 1-1: New USB device strings: Mfr=1,
 Product=2, SerialNumber=0
 Mar 27 12:30:39 localhost kernel: usb 1-1: Product: Sonica Theater
 Mar 27 12:30:39 localhost kernel: usb 1-1: Manufacturer: M-Audio
 }}}

 and everything works as expected. No errors regarding usb_set_interface
 failed at all.

 {{{
 martin@deepdance:~> lsusb
 Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
 Bus 005 Device 002: ID 046d:c001 Logitech, Inc. N48/M-BB48 [FirstMouse
 Plus]
 Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
 Bus 004 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 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
 Bus 001 Device 003: ID 0763:2007 Midiman M-Audio Sonica Theater
 Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
 }}}

 martin@deepdance:~> cat /proc/version
 Linux version 2.6.38.1-tp23 (martin@deepdance) (gcc version 4.4.5 (Debian
 4.4.5-8) ) #2 PREEMPT Fri Mar 25 18:39:36 CET 2011

 Package versions:

 {{{
 martin@deepdance:~> cat /proc/version
 Linux version 2.6.38.1-tp23 (martin@deepdance) (gcc version 4.4.5 (Debian
 4.4.5-8) ) #2 PREEMPT Fri Mar 25 18:39:36 CET 2011
 martin@deepdance:~> apt-show-versions | egrep
 "(pulseaudio|xine|phonon|alsa)"
 alsa-base/squeeze uptodate 1.0.23+dfsg-2
 alsa-oss/squeeze uptodate 1.0.17-4
 alsa-utils/squeeze uptodate 1.0.23-3
 gstreamer0.10-alsa/squeeze uptodate 0.10.30-1
 gstreamer0.10-pulseaudio/squeeze uptodate 0.10.24-1
 kde-config-phonon-xine/squeeze uptodate 4:4.4.5-1
 libphonon4/sid uptodate 4:4.6.0really4.4.4-3
 libsmokephonon3/squeeze uptodate 4:4.4.5-3
 libsox-fmt-alsa/squeeze uptodate 14.3.1-1
 libxine1/squeeze uptodate 1.1.19-2
 libxine1-bin/squeeze uptodate 1.1.19-2
 libxine1-console/squeeze uptodate 1.1.19-2
 libxine1-ffmpeg/squeeze uptodate 1.1.19-2
 libxine1-misc-plugins/squeeze uptodate 1.1.19-2
 libxine1-plugins/squeeze uptodate 1.1.19-2
 libxine1-x/squeeze uptodate 1.1.19-2
 libxinerama1/squeeze uptodate 2:1.1-3
 phonon/sid uptodate 4:4.6.0really4.4.4-3
 phonon-backend-gstreamer/sid uptodate 4:4.6.0really4.4.4-3
 phonon-backend-vlc/sid uptodate 0.3.2-3
 phonon-backend-vlc-dbg/sid uptodate 0.3.2-3
 phonon-backend-xine/sid uptodate 4:4.6.0really4.4.4-3
 pulseaudio-utils/sid uptodate 0.9.21-4
 xine-ui/squeeze uptodate 0.99.6-1
 }}}

 (pulseaudio was completely installed at version 0.9.21-4, above output is
 with purged pulseaudio, cause I just wanted to listen to music instead of
 fiddling around with things.)

 BTW replugging the sound card does not help when Pulseaudio is installed.
 But without pulseaudio playback is fine.

 I also have rtkit 10 installed which did seem to do what it should by
 giving out nice -11 for pulseaudio and RT 5 for its audio playback
 threads.

 I have a ThinkPad T42 where the M-Audio Sonica Theater worked to far. Also
 with Pulseaudio. I really want to use that soundcard, cause quality is so
 much better. I also tried with gstreamer backend, but also there the
 Sonica Theater was disabled.

 I have also pulseaudio 0.9.22 in Debian Experimental that I could try, but
 first I wait for a hint what could go wrong here.

--

Comment(by coling):

 Interesting.

 You gave a lot of info there, so thanks for such a detailed report.

 One thing I'm not 100% clear on is this:
  Does it just not work at all with PulseAudio, or does it just sometimes
 fail? If the latter, am I right in saying that it is only after some
 suspend-resume cycles that it fails and not after every time?

 If so, I suspect this is a problem reconnecting to the dbus after resume.
 When this happens we can no longer work with the "audio device reservation
 protocol" that we support (mainly for graceful handover to Jack) and that
 has the knock on effect of breaking things.

 When this error state is present, can you run "pacmd list" and attach the
 output to this bug.

 Thanks :)

-- 
Ticket URL: <http://pulseaudio.org/ticket/926#comment:1>
PulseAudio <http://pulseaudio.org/>
The PulseAudio Sound Server
_______________________________________________
pulseaudio-tickets mailing list
pulseaudio-tickets@mail.0pointer.de
https://tango.0pointer.de/mailman/listinfo/pulseaudio-tickets

Reply via email to