Hi,
I have a development board based on the Freescale iMX6 on which we have added the TI WL1273L. My job is to make the Bluetooth part work as a HSP and HFP audio gateway, but as I'm new to Android I not sure were to begin. I've added:
service hciattach /system/bin/logwrapper /system/bin/hciattach /dev/ttymxc4 texas 115200 flow
to init.rc. And have successfully paired a headset using the Bluetooth settings UI, used bt_sco_app, tinycap and tinyplay to record and playback a sample:
tinycap /sdcard/Music/temp.wav -D 1 -c 1 -r 8000 -b 8
tinyplay /sdcard/Music/temp.wav -D 1
I added the BluetoothSCOApp to our build, but when I play a song using the Music app the audio goes to the speaker. (The connected headset supports A2DP)
So I guess, I'm missing something to make the Android upper layers aware of the Bluetooth.
Any help would be much appreciated!
/Thomas