[pulseaudio-tickets] [PulseAudio] #211: bluetooth headset makes cpu go to 100%

PulseAudio trac-noreply at tango.0pointer.de
Mon Jan 7 18:05:35 PST 2008


#211: bluetooth headset makes cpu go to 100%
--------------------+-------------------------------------------------------
 Reporter:  jbrnd   |       Owner:  lennart
     Type:  defect  |      Status:  new    
 Priority:  normal  |   Milestone:         
Component:  daemon  |    Severity:  normal 
 Keywords:          |  
--------------------+-------------------------------------------------------
 I'm using PulseAudio 0.9.8 on Ubuntu kernel 2.6.24-2-generic, along with
 bluez version 3.24.

 If I load Pulse without any bluetooth lines in /etc/pulse/default.pa,
 everything works normally. However, when I add

 load-module module-alsa-sink device=head_blz sink_name=head_pulse
 load-module module-alsa-source device=head_blz source_name=head_pulse_src

 then CPU usage goes to 100% immediately on Pulse startup, even if no sound
 is playing. Pulse still works and plays the sound, though. The ~/.asoundrc
 that defines the head_blz device is

 pcm.head_blz_hw {
    type bluetooth
    device XX:XX:XX:XX:XX:XX
 }

 ctl.head_blz {
    type bluetooth
    device XX:XX:XX:XX:XX:XX
 }

 pcm.head_blz {
     type plug
     slave.pcm "head_blz_hw"
 }

 pcm.pulse {
     type pulse
 }

 ctl.pulse {
     type pulse
 }


 If I attach gdb to pulse at 100% cpu usage, I get a backtrace like

 0x00002b29e9bedaa6 in poll () from /lib/libc.so.6
 (gdb) bt
 #0  0x00002b29e9bedaa6 in poll () from /lib/libc.so.6
 #1  0x00002b29e82dd2bc in pa_mainloop_poll () from
 /usr/lib/libpulsecore.so.5
 #2  0x00002b29e82de108 in pa_mainloop_iterate ()
    from /usr/lib/libpulsecore.so.5
 #3  0x00002b29e82de1a0 in pa_mainloop_run () from
 /usr/lib/libpulsecore.so.5
 #4  0x000000000040752d in main ()

-- 
Ticket URL: <http://www.pulseaudio.org/ticket/211>
PulseAudio <http://pulseaudio.org/>
The PulseAudio Sound Server


More information about the pulseaudio-bugs mailing list