Skip to contentSkip to conversation

Linux Bluetooth HFP through usp pcm design questions

DISCUSSION Bin Shi 2 participants 3 messages May 5, 2010 – May 13, 2010

lore
Share & tools
lore

Bin Shi

author
#0 lore raw

Hi all,

I am working on vendor ARM1136 platform. Nowdays, I want to integrate CSR BC06 chip to my board with HFP profile, bluetooth chip connect its pcm interface with platform's usp interface.

As I know, HFP profile should has at least two deamons, one for host and one for target(BC06). In low level, driver for usp pcm should be available, which is compatible with BC06 frame format. Now, audio path is OK for playback and capture with ALSA.

My questions are:
1) How could I control stream path: eg headphone voice->BC06->usp interface->platform speaker?
2) Should it be strictly sync for controlling this application?
3) Data format between usp interface and headphone interface(bypass bluetooth) should be pcm stream?

Any suggestion would be welcomed! Thanks.

---
Best Regards,
Bin Shi

Member of the CSR plc group of companies. CSR plc registered in England and Wales, registered number 4187346, registered office Churchill House, Cambridge Business Park, Cowley Road, Cambridge, CB4 0WZ, United Kingdom -------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20100505/efcc9f18/attachment-0001.htm>

#1 lore raw

2010/5/5 Bin Shi <[email protected]>

Quoted 21 lines

Hi all,

I am working on vendor ARM1136 platform. Nowdays, I want to integrate CSR BC06 chip to my board with HFP profile, bluetooth chip connect its pcm interface with platform's usp interface.

As I know, HFP profile should has at least two deamons, one for host and one for target(BC06). In low level, driver for usp pcm should be available, which is compatible with BC06 frame format. Now, audio path is OK for playback and capture with ALSA.

My questions are:
1) How could I control stream path: eg headphone voice->BC06->usp interface->platform speaker?
2) Should it be strictly sync for controlling this application?
3) Data format between usp interface and headphone interface(bypass bluetooth) should be pcm stream?

Quoted 2 lines

Any suggestion would be welcomed! Thanks.

HFP works very well on the desktop Linux distro now. I suggest you to give Ubuntu a run and figure out how that works. You have a big question here.

Both ALSA and pulseaudio have bluetooth plugins.

PS: html format emails are generally not welcome, change it to plain text and it's far more readable for other people.

author
#2 lore raw
Quoted 22 lines · Eric Miao

2010/5/5 Bin Shi <[email protected]>

Quoted 21 lines

Hi all,

I am working on vendor ARM1136 platform. Nowdays, I want to integrate CSR BC06 chip to my board with HFP profile, bluetooth chip connect its pcm interface with platform's usp interface.

As I know, HFP profile should has at least two deamons, one for host and one for target(BC06). In low level, driver for usp pcm should be available, which is compatible with BC06 frame format. Now, audio path is OK for playback and capture with ALSA.

My questions are:
1) How could I control stream path: eg headphone voice->BC06->usp interface->platform speaker?
2) Should it be strictly sync for controlling this application?
3) Data format between usp interface and headphone interface(bypass bluetooth) should be pcm stream?

Quoted 8 lines
Quoted 2 lines

Any suggestion would be welcomed! Thanks.

HFP works very well on the desktop Linux distro now. I suggest you to give Ubuntu a run and figure out how that works. You have a big question here.

Both ALSA and pulseaudio have bluetooth plugins.

HFP for Linux project in http://nohands.sourceforge.net/, which is for Bluetooth Hands-Free profile server. Has any one try that already?

Quoted 4 lines

PS: html format emails are generally not welcome, change it to plain text and it's far more readable for other people.

Thanks for your advise.:)

Quoted 2 lines

To report this email as spam click https://www.mailcontrol.com/sr/wQw0zmjPoHdJTZGyOCrrhg== .

Member of the CSR plc group of companies. CSR plc registered in England and Wales, registered number 4187346, registered office Churchill House, Cambridge Business Park, Cowley Road, Cambridge, CB4 0WZ, United Kingdom