<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'><pre style="line-height: 21.2999992370605px; white-space: normal; font-family: 'Segoe UI', 'Segoe UI Web Regular', 'Segoe UI Symbol', 'Helvetica Neue', 'BBAlpha Sans', 'S60 Sans', Arial, sans-serif; color: rgb(68, 68, 68); font-size: 15px; background-color: rgb(255, 255, 255);"><span style="font-family: Calibri, sans-serif; font-size: 12pt;">> Subject: Re: [pulseaudio-discuss] How to disable HFP support of pulseaudio on Ubuntu 14.04 LTS</span></pre><div>> From: tanuk@iki.fi<br>> To: jdmc80@hotmail.com<br>> CC: pulseaudio-discuss@lists.freedesktop.org<br>> Date: Sat, 30 May 2015 12:29:16 +0300<br>> <br>> (Please avoid HTML emails on mailing lists, thanks.)<br>> <br>> On Thu, 2015-05-28 at 10:35 +0000, Joseph Codadeen wrote:<br>> > Hi,<br>> > I am a Ubuntu and audio newbie and I am trying to fix an audio problem<br>> > on Ubuntu 14.04 LTS that affects some tests I am working on.I would<br>> > like to know how to disable the HFP support of pulseaudio.<br>> > ProblemI am trying to get some legacy tests to work on Ubuntu 14.04<br>> > LTS, they already work on Ubuntu 12.04 LTS. I have managed to get all<br>> > but one test passing.<br>> > The test is a HFP audio test, it sends an audio file over bluetooth,<br>> > captures it and dumps it to file using hcidump (--audio), and then<br>> > tests the frequency peaks.<br>> > Looking at the output file (converted to .wav by adding a RIFF header)<br>> > we can see an additional channel embedded into the signal that has no<br>> > frequency and resulting in twice the duration, hence the test fails as<br>> > peaks are missing. Being a HFP file this should have only one channel<br>> > (mono) as it did on Ubuntu 12.04 LTS.<br>> > After a process of elimination we found that pulseaudio is to blame,<br>> > i.e. we uninstalled pulseaudio and the failing test passes.<br>> <br>> If the test works without pulseaudio, then apparently you're using some<br>> other way than pulseaudio to do the bluetooth audio streaming. In that<br>> case pulseaudio indeed can interfere with your setup, since pulseaudio<br>> will also manage the bluetooth audio. You can remove or comment out<br>> module-bluetooth-discover from /etc/pulse/default.pa to disable<br>> pulseaudio's bluetooth functionality. Or at runtime you can run "pactl<br>> unload-module module-bluetooth-discover".<br>> <br>> I don't know what product you're working on, so I don't know if<br>> disabling module-bluetooth-discover is an appropriate thing to do. If<br>> your "thing" is supposed to work on a regular Ubuntu user's system, you<br>> should do Bluetooth audio streaming with pulseaudio, not with whatever<br>> mechanism the test is currently using, because regular users expect<br>> pulseaudio's bluetooth functionality to work.<br>> </div><div><br></div><div><pre style="line-height: 21.2999992370605px; white-space: normal; font-family: 'Segoe UI', 'Segoe UI Web Regular', 'Segoe UI Symbol', 'Helvetica Neue', 'BBAlpha Sans', 'S60 Sans', Arial, sans-serif; color: rgb(68, 68, 68); font-size: 15px; background-color: rgb(255, 255, 255);">module-bluetooth-discover<span style="font-family: Calibri, sans-serif; font-size: 12pt;"> on Ubuntu 12.04 is enabled, same as on 14.04. We ended up changing the test to use the systems default (pulseaudio) HFP support which was fairly straight forward, i.e. '</span><i style="font-size: medium; font-family: arial, sans-serif;">arecord -f --format=FORMAT',</i><span style="font-family: Calibri, sans-serif; font-size: 12pt; line-height: 21.2999992370605px;"> set to '<i>-c1'</i> and an appropriate sampling rate '<i>-r'</i>, so all is fine now.</span></pre><pre style="line-height: 21.2999992370605px; white-space: normal; font-family: 'Segoe UI', 'Segoe UI Web Regular', 'Segoe UI Symbol', 'Helvetica Neue', 'BBAlpha Sans', 'S60 Sans', Arial, sans-serif; color: rgb(68, 68, 68); font-size: 15px; background-color: rgb(255, 255, 255);"><span style="font-family: Calibri, sans-serif; font-size: 12pt;">Thanks.</span></pre></div><div><span style="font-family: Calibri, sans-serif; font-size: 12pt;"><br></span></div><div><br>> > It seems to us that pulseaudio is overriding the HFP support provided<br>> > by oFono and this is causing the problem. I understand HFP support is<br>> > a new feature introduced in pulseaudio rel 3?<br>> <br>> No it's not a new feature in 3.0. And ofono is irrelevant for audio if<br>> you're not using bluez 5.<br>> <br>> -- <br>> Tanu<br>> <br></div>                                        </div></body>
</html>