Read PCM data from BT chip i2s interface

cancel
Showing results for 
Search instead for 
Did you mean: 

Read PCM data from BT chip i2s interface

2,750 Views
VAISAKH
Contributor II

Hi All,

I was trying  read pcm data from the BT chip(CSR 83110 ) via i2s  while its in HFP connection.

For that

  • I have configured the i2s path with BT chip ( inside bt stack with BCCM commands )
  • Added the driver by change in the board file and written dummy codec for bt and configured cpu_dai as ssi.2 ( Referred sgltcodec drivers )
  • Device listed in the alsa device list ( as card 1,and it takes cpu_dai imx-ssi.2 and platform imx-platform-audio.2 )
  • BT chip is enabled in i2S mode ( master ).
  • But I tried to read like

$ arecord -D hw:1 -f S16_LE

It wait for some time and gives io error !!!

Please correct me If any thing wrong in my method.

Please give me if you have any references(code examples) for the same.

With advance thanks

With thanks

Vaisakh N

Labels (1)
1 Reply

555 Views
adrian_alonso
NXP Employee
NXP Employee

Hi Vaisakh

You need to implemet a wrapper for imx-ssi; In previous iMX platforms bt was supported by

imx-ssi wrapper

http://www.emdebian.org/~zumbi/efika/FreeScaleKernel/linux-kernel/sound/soc/imx/imx-3stack-bt.c

codec

http://www.emdebian.org/~zumbi/efika/FreeScaleKernel/linux-kernel/sound/soc/codecs/bluetooth.c

You can use this as reference.

Regards