<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:m="http://schemas.microsoft.com/office/2004/12/omml" 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 12 (filtered medium)">
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:SimSun;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@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:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;}
/* Page Definitions */
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.WordSection1
        {page:WordSection1;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=ZH-CN link=blue vlink=purple style='text-justify-trim:punctuation'>
<div class=WordSection1>
<p class=MsoNormal><span lang=EN-US>Is it possible to handle bluetooth profile
change within “module-bluetooth-device”, instead of unload this module
and reloading it with the new profile argument for the same device?<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US>I need my bluetooth headset working under A2DP
profile for a music/video application and switch to HSP profile automatically for
a incoming phone application. I wonder if the “module-bluetooth-device”
can monitor application change by hooking sink input’s put and unlink event,
change profile accordingly, and create/delete sink or source by itself. Then “module-switch-on-connect”
can handle sink/source switch and “module-cork-music-on-phone” can
handle music interrupted by a incoming call </span><span lang=EN-US
style='font-family:Wingdings'>J</span><span lang=EN-US><o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US>My current solution is to monitor
application change in “module-bluetooth-discover”: when a phone’s
input stream is put and current profile is not HSP, the discover module will
unload “module-bluetooth-device” and reload it to HSP profile. I
wonder if the bluetooth device module can handle this by itself so unloading
and reloading can be saved. <o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US>I have another question, I learned that the
internal concept of a single "default" device can be replaced by priority
lists of devices in future routing (from Colin’s blog: <a
href="http://colin.guthr.ie/2010/02/this-is-the-route-to-hell/">http://colin.guthr.ie/2010/02/this-is-the-route-to-hell/</a>)<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>Can the logic of “module-switch-on-connect”
conflict with the new routing design? <o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>If yes, this means a latest connected Bluetooth
headset may not be the default device for a phone call and changing the profile
is not needed. How can the Bluetooth device module know whether it’s the
default device for an application when this application’s input stream is
PUT?</span><span lang=EN-US style='font-size:7.0pt;font-family:"Tahoma","sans-serif";
color:#2C2C29'><o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US>Thanks<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>Amanda<o:p></o:p></span></p>
</div>
</body>
</html>