imx6ull 如何收发PCM数据

cancel
Showing results for 
Search instead for 
Did you mean: 

imx6ull 如何收发PCM数据

Jump to solution
144 Views
gjfme
Contributor II

我们的imx6ull 开发板(linux os)与蓝牙模块通过PCM 接口连接,没有使用codec,请问如何收发PCM数据? 

Labels (3)
0 Kudos
1 Solution
121 Views
jimmychan
NXP TechSupport
NXP TechSupport

In the imx6ull-9x9-evk.dts, there is a codec WM8960 connect to sai2. So, you can take it for reference.

https://source.codeaurora.org/external/imx/linux-imx/tree/arch/arm/boot/dts/imx6qdl-sabresd.dtsi?h=r...

 

There are two drivers for the audio codec. One is machine driver.

https://source.codeaurora.org/external/imx/linux-imx/tree/sound/soc/fsl/imx-wm8960.c?h=rel_imx_4.1.1...

 

And the other one is the codec driver.

https://source.codeaurora.org/external/imx/linux-imx/tree/sound/soc/codecs/wm8960.c?h=rel_imx_4.1.15...

 

And you may use the bt-sco driver as the codec driver.

https://source.codeaurora.org/external/imx/linux-imx/tree/sound/soc/codecs/bt-sco.c?h=rel_imx_4.1.15...

 

And then take other machine driver for reference to write the machine driver for your BT.

View solution in original post

0 Kudos
5 Replies
135 Views
jimmychan
NXP TechSupport
NXP TechSupport

Could you show me how you connect the BT module?

Which version of BSP are you using?

Could you send me your device tree file?

0 Kudos
130 Views
gjfme
Contributor II

dear jimmychan:

      蓝牙模块使用HSP profile,   模块与imx6ull 之间还有uart 连接(不是HCI_UART).

      

0 Kudos
131 Views
gjfme
Contributor II

hi jimmychan:

     蓝牙模块连接在imx6ull 的SAI2 接口,imx6ull 作为蓝牙模块的从设备。

     bsp version linux-imx-rel_imx_4.1.15_2.1.0_ga

     device-tree 不知道如何配置,所以没有去修改。

     想请问下bluetooth pcm 是否与 codec pcm 在用户空间的用法一样,通过alsa去调用 pcmCXXDXXC 等设备节点? 如果是的话,是不是需要写一个驱动去生成这些节点? 如果不是该怎样去做?

     感谢您的回复。

0 Kudos
122 Views
jimmychan
NXP TechSupport
NXP TechSupport

In the imx6ull-9x9-evk.dts, there is a codec WM8960 connect to sai2. So, you can take it for reference.

https://source.codeaurora.org/external/imx/linux-imx/tree/arch/arm/boot/dts/imx6qdl-sabresd.dtsi?h=r...

 

There are two drivers for the audio codec. One is machine driver.

https://source.codeaurora.org/external/imx/linux-imx/tree/sound/soc/fsl/imx-wm8960.c?h=rel_imx_4.1.1...

 

And the other one is the codec driver.

https://source.codeaurora.org/external/imx/linux-imx/tree/sound/soc/codecs/wm8960.c?h=rel_imx_4.1.15...

 

And you may use the bt-sco driver as the codec driver.

https://source.codeaurora.org/external/imx/linux-imx/tree/sound/soc/codecs/bt-sco.c?h=rel_imx_4.1.15...

 

And then take other machine driver for reference to write the machine driver for your BT.

View solution in original post

0 Kudos
119 Views
gjfme
Contributor II

hi jimmychan:

    感谢您的回复。经过这两天研究,我的思路与您的回复一致。

 

    再次感谢。

0 Kudos