[pulseaudio-discuss] Assertion failed while switching card profiles

Iskren Hadzhinedev i.hadzhinedev at gmail.com
Fri Jan 24 14:43:05 PST 2014


I have a Marmitek BoomBoom 540 bluetooth headset.
I connected it with the hsp profile and setup the microphone to be the 
preferred recording device in KDE sound settings. Then I switched the profile 
to a2dp for high-quality audio. When the Bluetooth microphone is unavailable 
KDE falls back to the integrated one in the laptop.
When I fire a recording application it's playing through the Bluetooth headset 
while using the integrated laptop microphone. When I switch the profile from 
a2dp to hsp the bluetooth microphone gets re-registered and KDE switches 
automatically to the preferred device and that's where the assertion failed 
message pops and pulseaudio stops. I can switch to hsp before running a 
recording application and after launching it, it's using the headset 
microphone without issues. I can switch from hsp to a2dp in that case and it 
switches to the laptop mic as expected, but reverting from a2dp back to hsp 
aborts the daemon again.
I'm attaching a backtrace as per instructions from
http://www.freedesktop.org/wiki/Software/PulseAudio/Documentation/User/Community/
If there's something I'm missing please tell me so I can provide more 
information.
Thank you for your time!

Kind regards,
Iskren.


On Friday 24 January 2014 23:13:48 Tanu Kaskinen wrote:
> On Fri, 2014-01-24 at 15:51 +0200, Iskren Hadzhinedev wrote:
> > Hello everyone!
> > I have an issue with Pulseaudio 4.0 and a bluetooth headset.
> > Whenever I change the profile from a2dp to hsp while a program is using
> > the
> > microphone, pulseaudio aborts with the following message:
> > 
> > [pulseaudio] source.c: Assertion 'PA_SOURCE_IS_LINKED(s->state)' failed at
> > pulsecore/source.c:734, function pa_source_update_status(). Aborting.
> > 
> > If microphone is not used profiles change without any issues.
> > 
> > Tried with skype, viber and `parec | pacat' - same result in each case.
> 
> Does just "parec --device=name_of_the_microphone_source > /dev/null" do
> the trick too?
> 
> > Is there a way to fix this? Thanks in advance.
> 
> If you could provide a backtrace with gdb, that would be useful.
> 
> What microphone do you mean? You said that the bluetooth card profile is
> initially a2dp and then you switch to hsp. Since you can't use the
> headset microphone in the a2dp mode, you're apparently talking about
> some other microphone.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pa-bt.log
Type: text/x-log
Size: 11071 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/pulseaudio-discuss/attachments/20140125/22f4897f/attachment.bin>


More information about the pulseaudio-discuss mailing list