<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:SimSun;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:SimSun;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        text-align:justify;
        text-justify:inter-ideograph;
        font-size:10.5pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
p
        {mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:SimSun;}
pre
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:SimSun;}
span.EmailStyle19
        {mso-style-type:personal-compose;
        font-family:Arial;
        color:windowtext;}
/* Page Definitions */
@page Section1
        {size:595.3pt 841.9pt;
        margin:72.0pt 90.0pt 72.0pt 90.0pt;
        layout-grid:15.6pt;}
div.Section1
        {page:Section1;}
-->
</style>
</head>
<body lang=ZH-CN link=blue vlink=purple style='text-justify-trim:punctuation'>
<div class=Section1 style='layout-grid:15.6pt'>
<p class=MsoNormal><font size=2 face="Times New Roman"><span lang=EN-US
style='font-size:10.5pt'>Hi, I found below letter and met same problem with new
BT module “module-bluetooth-device”.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face="Times New Roman"><span lang=EN-US
style='font-size:10.5pt'>Mplayer play stream as <o:p></o:p></span></font></p>
<p class=MsoNormal style='text-indent:21.0pt'><font size=2
face="Times New Roman"><span lang=EN-US style='font-size:10.5pt'>AO: [alsa]
44100HZ 2ch s16le (2 bytes per sample)<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face="Times New Roman"><span lang=EN-US
style='font-size:10.5pt'>And BT headset works fine in ALSA.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face="Times New Roman"><span lang=EN-US><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face="Times New Roman"><span lang=EN-US
style='font-size:10.5pt'>When I choose to PA by <o:p></o:p></span></font></p>
<p class=MsoNormal style='text-indent:21.0pt'><font size=2
face="Times New Roman"><span lang=EN-US style='font-size:10.5pt'>Load-module
module-bluetooth-device sink_name=bt address=xx.xx.xx.xx.xx.xx profile=a2dp<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face="Times New Roman"><span lang=EN-US
style='font-size:10.5pt'>the stream played at least 2x the speed as the letter
said. The module picks up configure correctly as<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face="Times New Roman"><span lang=EN-US
style='font-size:10.5pt'> monitor source: 2<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face="Times New Roman"><span lang=EN-US
style='font-size:10.5pt'> sample spec: s16le 2ch 44100Hz<o:p></o:p></span></font></p>
<p class=MsoNormal style='text-indent:21.0pt'><font size=2
face="Times New Roman"><span lang=EN-US style='font-size:10.5pt'>channel map:
front-left,front-right<o:p></o:p></span></font></p>
<pre><font size=3 face=宋体><span lang=EN-US style='font-size:12.0pt'>so I want to know is it a blueZ bug or PA bug due to Lennart said it’s a BT bug <o:p></o:p></span></font></pre><pre><font
size=3 face=宋体><span lang=EN-US style='font-size:12.0pt'>in reply to below letter.<o:p></o:p></span></font></pre>
<p class=MsoNormal><font size=2 face="Times New Roman"><span lang=EN-US><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=1 face=Arial><span lang=EN-US style='font-size:
9.0pt;font-family:Arial'><o:p> </o:p></span></font></p>
<pre><font size=3 face=宋体><span lang=EN-US style='font-size:12.0pt'><o:p> </o:p></span></font></pre><pre
style='margin-left:31.5pt;mso-para-margin-left:3.0gd'><font size=3 face=宋体><span
lang=EN-US style='font-size:12.0pt'>I suspect this is some type of resampler problem rather than an actual<o:p></o:p></span></font></pre><pre
style='margin-left:31.5pt;mso-para-margin-left:3.0gd'><font size=3 face=宋体><span
lang=EN-US style='font-size:12.0pt'>connection problem. The headset is a GN6210H (which is a phone headset,<o:p></o:p></span></font></pre><pre
style='margin-left:31.5pt;mso-para-margin-left:3.0gd'><font size=3 face=宋体><span
lang=EN-US style='font-size:12.0pt'>so mono earpiece and mono mic). The only other oddity is that apart<o:p></o:p></span></font></pre><pre
style='margin-left:31.5pt;mso-para-margin-left:3.0gd'><font size=3 face=宋体><span
lang=EN-US style='font-size:12.0pt'>from having only one channel, its sample rate is 8000Hz.<o:p></o:p></span></font></pre><pre
style='margin-left:31.5pt;mso-para-margin-left:3.0gd'><font size=3 face=宋体><span
lang=EN-US style='font-size:12.0pt'><o:p> </o:p></span></font></pre><pre
style='margin-left:31.5pt;mso-para-margin-left:3.0gd'><font size=3 face=宋体><span
lang=EN-US style='font-size:12.0pt'>I have it all correctly plumbed into alsa using bluez and if I just use<o:p></o:p></span></font></pre><pre
style='margin-left:31.5pt;mso-para-margin-left:3.0gd'><font size=3 face=宋体><span
lang=EN-US style='font-size:12.0pt'>alsa, I can send sound to it with mplayer using<o:p></o:p></span></font></pre><pre
style='margin-left:31.5pt;mso-para-margin-left:3.0gd'><font size=3 face=宋体><span
lang=EN-US style='font-size:12.0pt'><o:p> </o:p></span></font></pre><pre
style='margin-left:31.5pt;mso-para-margin-left:3.0gd'><font size=3 face=宋体><span
lang=EN-US style='font-size:12.0pt'>mplayer -ao alsa:device=headset<o:p></o:p></span></font></pre><pre
style='margin-left:31.5pt;mso-para-margin-left:3.0gd'><font size=3 face=宋体><span
lang=EN-US style='font-size:12.0pt'><o:p> </o:p></span></font></pre><pre
style='margin-left:31.5pt;mso-para-margin-left:3.0gd'><font size=3 face=宋体><span
lang=EN-US style='font-size:12.0pt'>Since mplayer sees the device directly, it sends the sound stream as<o:p></o:p></span></font></pre><pre
style='margin-left:31.5pt;mso-para-margin-left:3.0gd'><font size=3 face=宋体><span
lang=EN-US style='font-size:12.0pt'><o:p> </o:p></span></font></pre><pre
style='margin-left:31.5pt;mso-para-margin-left:3.0gd'><font size=3 face=宋体><span
lang=EN-US style='font-size:12.0pt'>AO: [alsa] 800Hz 1ch s16le (2 bytes per sample)<o:p></o:p></span></font></pre><pre
style='margin-left:31.5pt;mso-para-margin-left:3.0gd'><font size=3 face=宋体><span
lang=EN-US style='font-size:12.0pt'><o:p> </o:p></span></font></pre><pre
style='margin-left:31.5pt;mso-para-margin-left:3.0gd'><font size=3 face=宋体><span
lang=EN-US style='font-size:12.0pt'>And everything sounds fine.<o:p></o:p></span></font></pre><pre
style='margin-left:31.5pt;mso-para-margin-left:3.0gd'><font size=3 face=宋体><span
lang=EN-US style='font-size:12.0pt'><o:p> </o:p></span></font></pre><pre
style='margin-left:31.5pt;mso-para-margin-left:3.0gd'><font size=3 face=宋体><span
lang=EN-US style='font-size:12.0pt'>When I plug it into pulseaudio with<o:p></o:p></span></font></pre><pre
style='margin-left:31.5pt;mso-para-margin-left:3.0gd'><font size=3 face=宋体><span
lang=EN-US style='font-size:12.0pt'><o:p> </o:p></span></font></pre><pre
style='margin-left:31.5pt;mso-para-margin-left:3.0gd'><font size=3 face=宋体><span
lang=EN-US style='font-size:12.0pt'>pactl load-module module-alsa-sink device=headset<o:p></o:p></span></font></pre><pre
style='margin-left:31.5pt;mso-para-margin-left:3.0gd'><font size=3 face=宋体><span
lang=EN-US style='font-size:12.0pt'><o:p> </o:p></span></font></pre><pre
style='margin-left:31.5pt;mso-para-margin-left:3.0gd'><font size=3 face=宋体><span
lang=EN-US style='font-size:12.0pt'>It correctly picks up the sample rate and channels. However, trying to<o:p></o:p></span></font></pre><pre
style='margin-left:31.5pt;mso-para-margin-left:3.0gd'><font size=3 face=宋体><span
lang=EN-US style='font-size:12.0pt'>switch an application to it results in dramatic speed increases and the<o:p></o:p></span></font></pre><pre
style='margin-left:31.5pt;mso-para-margin-left:3.0gd'><font size=3 face=宋体><span
lang=EN-US style='font-size:12.0pt'>output being chopped to pieces. If I set up pulseaudio only to have<o:p></o:p></span></font></pre><pre
style='margin-left:31.5pt;mso-para-margin-left:3.0gd'><font size=3 face=宋体><span
lang=EN-US style='font-size:12.0pt'>this device and nothing else, mplayer plays the sound file at at least<o:p></o:p></span></font></pre><pre
style='margin-left:31.5pt;mso-para-margin-left:3.0gd'><font size=3 face=宋体><span
lang=EN-US style='font-size:12.0pt'>2x the usual speed.<o:p></o:p></span></font></pre><pre
style='margin-left:31.5pt;mso-para-margin-left:3.0gd'><font size=3 face=宋体><span
lang=EN-US style='font-size:12.0pt'><o:p> </o:p></span></font></pre><pre
style='margin-left:31.5pt;mso-para-margin-left:3.0gd'><font size=3 face=宋体><span
lang=EN-US style='font-size:12.0pt'>Since the output has this:<o:p></o:p></span></font></pre><pre
style='margin-left:31.5pt;mso-para-margin-left:3.0gd'><font size=3 face=宋体><span
lang=EN-US style='font-size:12.0pt'><o:p> </o:p></span></font></pre><pre
style='margin-left:31.5pt;mso-para-margin-left:3.0gd'><font size=3 face=宋体><span
lang=EN-US style='font-size:12.0pt'>AO: [pulse] 44100Hz 2ch s16le (2 bytes per sample)<o:p></o:p></span></font></pre><pre
style='margin-left:31.5pt;mso-para-margin-left:3.0gd'><font size=3 face=宋体><span
lang=EN-US style='font-size:12.0pt'><o:p> </o:p></span></font></pre><pre
style='margin-left:31.5pt;mso-para-margin-left:3.0gd'><font size=3 face=宋体><span
lang=EN-US style='font-size:12.0pt'>I suspect the problem is somewhere in the pulseaudio resampling down<o:p></o:p></span></font></pre><pre
style='margin-left:31.5pt;mso-para-margin-left:3.0gd'><font size=3 face=宋体><span
lang=EN-US style='font-size:12.0pt'>from 2 channels at 44100Hz to a single channel at 8000Hz. I've tried<o:p></o:p></span></font></pre><pre
style='margin-left:31.5pt;mso-para-margin-left:3.0gd'><font size=3 face=宋体><span
lang=EN-US style='font-size:12.0pt'>forcing different resampling methods with slightly different sounding<o:p></o:p></span></font></pre><pre
style='margin-left:31.5pt;mso-para-margin-left:3.0gd'><font size=3 face=宋体><span
lang=EN-US style='font-size:12.0pt'>results but still playing at at least 2x the speed.<o:p></o:p></span></font></pre><pre
style='margin-left:31.5pt;mso-para-margin-left:3.0gd'><font size=3 face=宋体><span
lang=EN-US style='font-size:12.0pt'><o:p> </o:p></span></font></pre><pre
style='margin-left:31.5pt;mso-para-margin-left:3.0gd'><font size=3 face=宋体><span
lang=EN-US style='font-size:12.0pt'>James<o:p></o:p></span></font></pre><pre><font
size=3 face=宋体><span lang=EN-US style='font-size:12.0pt'><o:p> </o:p></span></font></pre>
<p class=MsoNormal><font size=1 face=Arial><span lang=EN-US style='font-size:
9.0pt;font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face="Times New Roman"><span lang=EN-US
style='font-size:10.0pt'>Zhang Xin(Wing)</span></font><span lang=EN-US><o:p></o:p></span></p>
<p class=MsoNormal><font size=2 face="Times New Roman"><span lang=EN-US
style='font-size:10.0pt'>Intel, OTC ShangHai</span></font><span lang=EN-US><o:p></o:p></span></p>
<p class=MsoNormal><font size=2 face="Times New Roman"><span lang=EN-US
style='font-size:10.0pt'><o:p> </o:p></span></font></p>
</div>
</body>
</html>