<div dir="ltr">Dear all,<div><br></div><div>I'm using: bluez 4.101, ofono 1.9 and pulseaudio 3.0 on an embedded imx23.</div><div style>My system work fine connecting to a andoid or ios smartphone in a2dp sink and I can play tracks</div>
<div style>without any kinds of problem.</div><div style><br></div><div style>Module module-bluetooth-policy automatically select : right BT profile and right source/sink module-loopback:</div><div style><br></div><div style>
<div># pactl list short</div><div>0 module-device-restore</div><div>1 module-stream-restore</div><div>2 module-card-restore</div><div>3 module-augment-properties</div><div>4 module-alsa-sink device=hw:0,0</div>
<div>5 module-alsa-source device=hw:0,0</div><div>6 module-udev-detect</div><div>7 module-bluetooth-discover</div><div>8 module-esound-protocol-unix</div><div>9 module-native-protocol-unix</div>
<div>10 module-default-device-restore</div><div>11 module-rescue-streams</div><div>12 module-always-sink</div><div>13 module-intended-roles</div><div>14 module-role-cork</div><div>15 module-dbus-protocol</div>
<div>16 module-switch-on-port-available</div><div>17 module-bluetooth-device address="50:EA:D6:3B:76:5D" path="/org/bluez/619/hci0/dev_50_EA_D6"</div><div>18 module-bluetooth-policy</div>
<div>19 module-loopback source="bluez_source.50_EA_D6_3B_76_5D" source_dont_move="true" sink_input"</div><div>0 alsa_output.hw_0_0 module-alsa-sink.c s16le 2ch 44100Hz RUNNING</div>
<div>0 alsa_output.hw_0_0.monitor module-alsa-sink.c s16le 2ch 44100Hz IDLE</div><div>1 alsa_input.hw_0_0 module-alsa-source.c s16le 2ch 44100Hz IDLE</div><div>4 bluez_source.50_EA_D6_3B_76_5D module-bluetooth-device.c s16le 2ch 44100Hz RUG</div>
<div>0 0 - module-loopback.c s16le 2ch 44049Hz</div><div>0 4 - module-loopback.c s16le 2ch 44100Hz</div><div>5 protocol-native.c pactl</div><div>0 bluez_card.50_EA_D6_3B_76_5D module-bluetooth-device.c</div>
<div><br></div><div><br></div><div style>When try to change to hfgw profile making a phone call from smartphone, module-bluetooth-policy change right to new profile but fail </div><div style>to set correct loopback sources/sinks:</div>
<div style><br></div><div style><div>0 module-device-restore</div><div>1 module-stream-restore</div><div>2 module-card-restore</div><div>3 module-augment-properties</div><div>4 module-alsa-sink device=hw:0,0</div>
<div>5 module-alsa-source device=hw:0,0</div><div>6 module-udev-detect</div><div>7 module-bluetooth-discover</div><div>8 module-esound-protocol-unix</div><div>9 module-native-protocol-unix</div>
<div>10 module-default-device-restore</div><div>11 module-rescue-streams</div><div>12 module-always-sink</div><div>13 module-intended-roles</div><div>14 module-role-cork</div><div>15 module-dbus-protocol</div>
<div>16 module-switch-on-port-available</div><div>17 module-bluetooth-device address="50:EA:D6:3B:76:5D" path="/org/bluez/619/hci0/dev_50_EA_D6"</div><div>18 module-bluetooth-policy</div>
<div>20 module-loopback sink="bluez_sink.50_EA_D6_3B_76_5D" sink_dont_move="true" source_output_pr"</div><div>21 module-loopback source="bluez_source.50_EA_D6_3B_76_5D" source_dont_move="true" sink_input"</div>
<div>0 alsa_output.hw_0_0 module-alsa-sink.c s16le 2ch 44100Hz IDLE</div><div>2 bluez_sink.50_EA_D6_3B_76_5D module-bluetooth-device.c s16le 1ch 8000Hz RUG</div><div>0 alsa_output.hw_0_0.monitor module-alsa-sink.c s16le 2ch 44100Hz IDLE</div>
<div>1 alsa_input.hw_0_0 module-alsa-source.c s16le 2ch 48000Hz SUSPENDED</div><div>5 bluez_sink.50_EA_D6_3B_76_5D.monitor module-bluetooth-device.c s16le 1ch 8000Hz E</div><div>6 bluez_source.50_EA_D6_3B_76_5D module-bluetooth-device.c s16le 1ch 8000Hz RUG</div>
<div>1 2 - module-loopback.c s16le 1ch 8000Hz</div><div>2 2 - module-loopback.c s16le 1ch 8000Hz</div><div>1 1 - module-loopback.c s16le 1ch 8000Hz</div>
<div>2 6 - module-loopback.c s16le 1ch 8000Hz</div><div>6 protocol-native.c pactl</div><div>0 bluez_card.50_EA_D6_3B_76_5D module-bluetooth-device.c</div><div><br></div><div style>
I suppose that right Source/Sinks must be: 6 (BT source) 0 (alsa sink) for first loopback and 1 (alsa input source) 5 ( BT sink) for second loopback</div><div style>Is my assumption correct ?</div><div style><br></div>
<div style>Setting by hand (pactl load-module module-llopback source=.... sink=.... ) the two loopbacks, I'm able to hear scratch on my embedded headsphone but not right phone call.</div><div style>I noticed that in this way not right bitrate is set for BT source/alsa sink: it is set to 44100Hz instead of 8000Hz .<br>
</div><div style><br></div><div style><br></div><div style>Can you help me to fix these behaviors</div><div style><br></div><div style>Best regards</div><div style><br></div><div style>Paolo</div><div style><br></div><div style>
<br></div><div style><br></div></div></div><div><br></div></div>