Hi Milan,
sorry, your mail got drowned in my inbox. I saw that Andreas had a tip.
HTH,
daniel
On 03/11/2011 03:43 PM, [email protected] wrote:
Hi Daniel,
Thanks for the quick assistance.
I tried the same approach as suggested by you.
Steps:
------
1.$pacmd
2.$list-sources
( got 2 sources )
name:<alsa_output.pci-0000_00_05.0.analog-stereo.monitor>
(and)
name:<alsa_input.pci-0000_00_05.0.analog-stereo>
3.$list-sinks
( got 1 sink )
name:<alsa_output.pci-0000_00_05.0.analog-stereo>
4.created a shell script "ofono.sh" with contents as below:
pactl load-module module-loopback source="alsa_input.pci-0000_00_05.0.analog-stereo"
sink="bluez_sink.A8_7E_33_AF_23_A4"
pactl load-module module-loopback source="bluez_source.A8_7E_33_AF_23_A4"
sink="alsa_output.pci-0000_00_05.0.analog-stereo"
(A8_7E_33_AF_23_A4 is the BT address of handset paired to the host)
5. Now I connect the host to the handset through HFP.
6.After SLC is established , I dial a number and establish a voice call.
7.As soon as the state is "Playing" ( SCO connected) , I run the "ofono.sh" (
as mentioned in step 4).
Result:
-------
I am getting the following errors:
Failure: Module initalization failed
Failure: Module initalization failed
Requesting Clarification
------------------------
1.I was wondering if any modification is required in pulseaudio configuration files to
enable dynamic loading of module-loopback.( e.g "module-loading = yes" in
/etc/pulse/daemon.conf ).Currently all settings are maintained as default.
2.Also, do I need to modify "SCORouting=PCM" in "audio.conf" file. (default is
HCI)
It will be of great help to receive any further inputs regarding the above
issue.
Best Regards,
Milan
-----Original Message-----
From: Daniel Wagner [mailto:[email protected]]
Sent: Friday, March 11, 2011 12:52 PM
To: Satpathy, Milan
Cc: [email protected]
Subject: Re: [HELP Required]Routing Of SCO data to BT Host Speaker
Hi Milan,
On Fri, Mar 11, 2011 at 10:56:34AM +0530, [email protected] wrote:
Hi,
Recently I have been trying to use Ofono to write a Handsfree based
application( Using C on Ubuntu 10.10).
I am able to connect(SLC) to the AG using Ofono. After connection I am also
successful in dialing to another number.
Bluetoothd indicates status as "Playing" ( SCO connection successful) once the
call is established.
Problem Faced:
----------------------
However, after accepting the call I am unable to hear any voice through the
speaker.
You might have to loop back the PulseAudio BT source and sink to your sound
card, e.g.
pactl load-module module-loopback source="alsa_input.pci-0000_00_1b.0.analog-stereo"
sink="bluez_sink.78_47_1D_44_34_10"
pactl load-module module-loopback source="bluez_source.78_47_1D_44_34_10"
sink="alsa_output.pci-0000_00_1b.0.analog-stereo"
You have to do this within 5 seconds after the SCO connection has been
established otherwise PulseAudio will suspend (which leads to a BT
stream stop) the streams.
HTH,
daniel
This message is for the designated recipient only and may contain privileged,
proprietary, or otherwise private information. If you have received it in
error, please notify the sender immediately and delete the original. Any other
use of the email by you is prohibited.
_______________________________________________
ofono mailing list
[email protected]
http://lists.ofono.org/listinfo/ofono