In the imx6ull-9x9-evk.dts, there is a codec WM8960 connect to sai2. So, you can take it for reference.
There are two drivers for the audio codec. One is machine driver.
And the other one is the codec driver.
And you may use the bt-sco driver as the codec driver.
And then take other machine driver for reference to write the machine driver for your BT.
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?
dear jimmychan:
蓝牙模块使用HSP profile, 模块与imx6ull 之间还有uart 连接(不是HCI_UART).
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 等设备节点? 如果是的话,是不是需要写一个驱动去生成这些节点? 如果不是该怎样去做?
感谢您的回复。
In the imx6ull-9x9-evk.dts, there is a codec WM8960 connect to sai2. So, you can take it for reference.
There are two drivers for the audio codec. One is machine driver.
And the other one is the codec driver.
And you may use the bt-sco driver as the codec driver.
And then take other machine driver for reference to write the machine driver for your BT.
hi jimmychan:
感谢您的回复。经过这两天研究,我的思路与您的回复一致。
再次感谢。