<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'><div><p style="margin-bottom: 1em; border: 0px; font-size: 15px; clear: both; color: rgb(17, 17, 17); font-family: Ubuntu, Arial, 'libra sans', sans-serif; line-height: 19.5px; background-color: rgb(255, 255, 255);">Hi,</p><p style="margin-bottom: 1em; border: 0px; font-size: 15px; clear: both; color: rgb(17, 17, 17); font-family: Ubuntu, Arial, 'libra sans', sans-serif; line-height: 19.5px; background-color: rgb(255, 255, 255);"><br></p><p style="margin-bottom: 1em; border: 0px; font-size: 15px; clear: both; color: rgb(17, 17, 17); font-family: Ubuntu, Arial, 'libra sans', sans-serif; line-height: 19.5px; background-color: rgb(255, 255, 255);">I am a Ubuntu and audio newbie and I am trying to fix an audio problem on Ubuntu 14.04 LTS that affects some tests I am working on.</p><p style="margin-bottom: 1em; border: 0px; font-size: 15px; clear: both; color: rgb(17, 17, 17); font-family: Ubuntu, Arial, 'libra sans', sans-serif; line-height: 19.5px; background-color: rgb(255, 255, 255);">I would like to know how to disable the HFP support of pulseaudio.</p><p style="margin-bottom: 1em; border: 0px; font-size: 15px; clear: both; color: rgb(17, 17, 17); font-family: Ubuntu, Arial, 'libra sans', sans-serif; line-height: 19.5px; background-color: rgb(255, 255, 255);"><br></p><h1 style="margin: 0px 0px 1em; padding: 0px; border: 0px; font-size: 21px; line-height: 1.3; word-wrap: break-word; color: rgb(17, 17, 17); font-family: Ubuntu, Arial, 'libra sans', sans-serif; background-color: rgb(255, 255, 255);">Problem</h1><p style="margin-bottom: 1em; border: 0px; font-size: 15px; clear: both; color: rgb(17, 17, 17); font-family: Ubuntu, Arial, 'libra sans', sans-serif; line-height: 19.5px; background-color: rgb(255, 255, 255);">I am trying to get some legacy tests to work on Ubuntu 14.04 LTS, they already work on Ubuntu 12.04 LTS. I have managed to get all but one test passing.</p><p style="margin-bottom: 1em; border: 0px; font-size: 15px; clear: both; color: rgb(17, 17, 17); font-family: Ubuntu, Arial, 'libra sans', sans-serif; line-height: 19.5px; background-color: rgb(255, 255, 255);"><br></p><p style="margin-bottom: 1em; border: 0px; font-size: 15px; clear: both; color: rgb(17, 17, 17); font-family: Ubuntu, Arial, 'libra sans', sans-serif; line-height: 19.5px; background-color: rgb(255, 255, 255);">The test is a HFP audio test, it sends an audio file over bluetooth, captures it and dumps it to file using hcidump (--audio), and then tests the frequency peaks.</p><p style="margin-bottom: 1em; border: 0px; font-size: 15px; clear: both; color: rgb(17, 17, 17); font-family: Ubuntu, Arial, 'libra sans', sans-serif; line-height: 19.5px; background-color: rgb(255, 255, 255);"><br></p><p style="margin-bottom: 1em; border: 0px; font-size: 15px; clear: both; color: rgb(17, 17, 17); font-family: Ubuntu, Arial, 'libra sans', sans-serif; line-height: 19.5px; background-color: rgb(255, 255, 255);">Looking at the output file (converted to .wav by adding a RIFF header) we can see an additional channel embedded into the signal that has no frequency and resulting in twice the duration, hence the test fails as peaks are missing. Being a HFP file this should have only one channel (mono) as it did on Ubuntu 12.04 LTS.</p><p style="margin-bottom: 1em; border: 0px; font-size: 15px; clear: both; color: rgb(17, 17, 17); font-family: Ubuntu, Arial, 'libra sans', sans-serif; line-height: 19.5px; background-color: rgb(255, 255, 255);"><br></p><p style="margin-bottom: 1em; border: 0px; font-size: 15px; clear: both; color: rgb(17, 17, 17); font-family: Ubuntu, Arial, 'libra sans', sans-serif; line-height: 19.5px; background-color: rgb(255, 255, 255);">After a process of elimination we found that pulseaudio is to blame, i.e. we uninstalled pulseaudio and the failing test passes.</p><p style="margin-bottom: 1em; border: 0px; font-size: 15px; clear: both; color: rgb(17, 17, 17); font-family: Ubuntu, Arial, 'libra sans', sans-serif; line-height: 19.5px; background-color: rgb(255, 255, 255);">It seems to us that pulseaudio is overriding the HFP support provided by oFono and this is causing the problem. I understand HFP support is a new feature introduced in pulseaudio rel 3?</p><p style="margin-bottom: 1em; border: 0px; font-size: 15px; clear: both; color: rgb(17, 17, 17); font-family: Ubuntu, Arial, 'libra sans', sans-serif; line-height: 19.5px; background-color: rgb(255, 255, 255);"><br></p><p style="margin-bottom: 1em; border: 0px; font-size: 15px; clear: both; color: rgb(17, 17, 17); font-family: Ubuntu, Arial, 'libra sans', sans-serif; line-height: 19.5px; background-color: rgb(255, 255, 255);">Looking in the config files and comparing them to 12.04 we also noticed a change to the jackdbus config line in the /etc/pulse/default.pa file;</p><pre style="margin-top: 0px; padding: 5px; border: 0px; font-size: 13px; overflow: auto; width: auto; max-height: 600px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif; word-wrap: normal; color: rgb(17, 17, 17); background-color: rgb(238, 238, 238);">load-module module-jackdbus-detect channels=2
</pre><p style="margin-bottom: 1em; border: 0px; font-size: 15px; clear: both; color: rgb(17, 17, 17); font-family: Ubuntu, Arial, 'libra sans', sans-serif; line-height: 19.5px; background-color: rgb(255, 255, 255);">Removing the channels=2 and retesting resulted in the test sometimes passing, i.e. the sample HFP was as expected, no additional channel, however at other times it would include the additional channel, so this is not a stable fix. Looking at the release notes there seem to be several pulseaudio and jack fixes, so this could be the culprit but I am unsure how to get around this problem.</p><p style="margin-bottom: 1em; border: 0px; font-size: 15px; clear: both; color: rgb(17, 17, 17); font-family: Ubuntu, Arial, 'libra sans', sans-serif; line-height: 19.5px; background-color: rgb(255, 255, 255);"><br></p><p style="margin-bottom: 1em; border: 0px; font-size: 15px; clear: both; color: rgb(17, 17, 17); font-family: Ubuntu, Arial, 'libra sans', sans-serif; line-height: 19.5px; background-color: rgb(255, 255, 255);">We have also tried to downgrade pulseaudio to the 12.04 LTS version, but this introduces a whole new set of problems, i.e. compatibility issues.</p><p style="margin-bottom: 1em; border: 0px; font-size: 15px; clear: both; color: rgb(17, 17, 17); font-family: Ubuntu, Arial, 'libra sans', sans-serif; line-height: 19.5px; background-color: rgb(255, 255, 255);">I have found some information here but how do I set these attribute values for module-bluetooth-discover? I know the module is used in pulseaudio's default.pa.<a href="http://www.freedesktop.org/wiki/Software/PulseAudio/Documentation/User/Modules/#index6h2" rel="nofollow" style="margin: 0px; padding: 0px; border: 0px; text-decoration: none; cursor: pointer; color: rgb(150, 45, 12);">http://www.freedesktop.org/wiki/Software/PulseAudio/Documentation/User/Modules/#index6h2</a></p><p style="margin-bottom: 1em; border: 0px; font-size: 15px; clear: both; color: rgb(17, 17, 17); font-family: Ubuntu, Arial, 'libra sans', sans-serif; line-height: 19.5px; background-color: rgb(255, 255, 255);"><br></p><p style="margin-bottom: 1em; border: 0px; font-size: 15px; clear: both; color: rgb(17, 17, 17); font-family: Ubuntu, Arial, 'libra sans', sans-serif; line-height: 19.5px; background-color: rgb(255, 255, 255);">I found some more information here that talks about sco_sink and sco_source but I'm not sure it helps; <a href="http://lists.freedesktop.org/archives/pulseaudio-discuss/2011-June/010297.html" rel="nofollow" style="margin: 0px; padding: 0px; border: 0px; text-decoration: none; cursor: pointer; color: rgb(150, 45, 12);">http://lists.freedesktop.org/archives/pulseaudio-discuss/2011-June/010297.html</a></p><p style="margin-bottom: 1em; border: 0px; font-size: 15px; clear: both; color: rgb(17, 17, 17); font-family: Ubuntu, Arial, 'libra sans', sans-serif; line-height: 19.5px; background-color: rgb(255, 255, 255);"><br></p><p style="margin-bottom: 1em; border: 0px; font-size: 15px; clear: both; color: rgb(17, 17, 17); font-family: Ubuntu, Arial, 'libra sans', sans-serif; line-height: 19.5px; background-color: rgb(255, 255, 255);">HFP moved to oFono from BlueZ, not sure which version this is talking about though; //www.bluez.org/profiles/</p><p style="margin-bottom: 1em; border: 0px; font-size: 15px; clear: both; color: rgb(17, 17, 17); font-family: Ubuntu, Arial, 'libra sans', sans-serif; line-height: 19.5px; background-color: rgb(255, 255, 255);"><br></p><p style="margin-bottom: 1em; border: 0px; font-size: 15px; clear: both; color: rgb(17, 17, 17); font-family: Ubuntu, Arial, 'libra sans', sans-serif; line-height: 19.5px; background-color: rgb(255, 255, 255);">oFono can be found here; //01.org/ofono</p><p style="margin-bottom: 1em; border: 0px; font-size: 15px; clear: both; color: rgb(17, 17, 17); font-family: Ubuntu, Arial, 'libra sans', sans-serif; line-height: 19.5px; background-color: rgb(255, 255, 255);"><br></p><h1 style="margin: 0px 0px 1em; padding: 0px; border: 0px; font-size: 21px; line-height: 1.3; word-wrap: break-word; color: rgb(17, 17, 17); font-family: Ubuntu, Arial, 'libra sans', sans-serif; background-color: rgb(255, 255, 255);">Configuration</h1><pre style="margin-top: 0px; padding: 5px; border: 0px; font-size: 13px; overflow: auto; width: auto; max-height: 600px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif; word-wrap: normal; color: rgb(17, 17, 17); background-color: rgb(238, 238, 238);">Ubuntu 12.04
------------
$ dpkg --status ofono | grep '^Version:'
Version: 1.9-1ubuntu1
$ dpkg --status bluez-hcidump | grep '^Version:'
Version: 2.2-1
$ dpkg --status bluez | grep '^Version:'
Version: 4.98-2ubuntu7.2
$ dpkg --status pulseaudio | grep '^Version:'
Version: 1:1.1-0ubuntu15.4
$ dpkg --status libpulse0 | grep '^Version:'
Version: 1:1.1-0ubuntu15.4
Ubuntu 14.04
------------
$ dpkg --status ofono | grep '^Version:'
Version: 1.12.bzr6858+14.04.20140318-0ubuntu1
$ dpkg --status bluez-hcidump | grep '^Version:'
Version: 2.5-1
$ dpkg --status bluez | grep '^Version:'
Version: 4.101-0ubuntu13.1
$ dpkg --status pulseaudio | grep '^Version:'
Version: 1:4.0-0ubuntu11.1
$ dpkg --status libpulse0 | grep '^Version:'
Version: 1:4.0-0ubuntu11.1</pre></div><div><br></div><div>I have also posted the question here;</div><div><a href="http://askubuntu.com/questions/629008/how-to-disable-hfp-support-of-pulseaudio-on-ubuntu-14-04-lts" target="_blank">http://askubuntu.com/questions/629008/how-to-disable-hfp-support-of-pulseaudio-on-ubuntu-14-04-lts</a></div><div><br></div><div><br></div><div><br></div> </div></body>
</html>