Tool/software:
Hi,
We want to connect a BT chip (PAN9026) to the DRA via McASP. The BT chip has a PCM interface. How can we connect the PCM interface to our I2S interface? Do we need a bridge for I2S/PCM?
Regards,
Miguel
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Tool/software:
Hi,
We want to connect a BT chip (PAN9026) to the DRA via McASP. The BT chip has a PCM interface. How can we connect the PCM interface to our I2S interface? Do we need a bridge for I2S/PCM?
Regards,
Miguel
Miguel,
You should be able to interface directly:
Refer to these resources:
- AM335x thread (same McASP module as DRA76P)
DRA76P TRM (refer to McASP chapter):
document-pdfAcrobat DRA77xP, DRA76xP, DRA75xP, DRA74xP Technical Reference Manual (Rev. D)
McASP Appnote:
Regards,
Kyle
Hi Kyle,
Sorry for the delay, I was on vacation.
Thank for the response, now we know we can connect directly, but we don't know how to configure the mcasp to fit the PCM interface.
Our BT chip (PAN9026) just support PCM interface with DSP Format.
We configure mcasp as slave, the FRWID (rx and tx frame sync width) is set to single bit.
The clock set by the BT chip is 2MHz.
With that config the audio is still not working.
The value regs of MCASP_TXSTAT and MCASP_RXSTAT for mcasp7 are:
$ devmem 0x48478080
$ 0x00000156
$ devmem 0x484780C0
$ 0x00000156
Those values mean:
XERR
XCKFAIL: Transmit clock failure flag
XSYNCERR: Unexpected transmit frame-sync flag
Regards,
Miguel
Hi,
We made progressions, but it is not enough.
Setting
simple-audio-card,format = "dsp_a"; // or dsp_b
in dts we can set mcasp as DSP format, but we still get the error values. XERR (XCKFAIL|XSYNCERR)
Any ideas?
regards,
Miguel
just with:
simple-audio-card,format = "dsp_a"; // or dsp_b
You can connect perfectly a PCM interface with mcasp.
The error flag is common in all my mcasp stream, but all of them are working perfectly.