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.

Linux/WL1837MODCOM8I: PCM problem with Bluetopia stack

Part Number: WL1837MODCOM8I
Other Parts Discussed in Thread: CC2564, AM5728, BEAGLEBOARD-X15, TLV320AIC3104

Tool/software: Linux

Hi experts,

I have a cc2564 on our customized board, based on AM5728.

I have a problem while using handfree profile.I use am5728 custom.

I saw a post that encountered the same problem.

e2e.ti.com/.../662994

I don't understand that the hardware modifications here are those modifications.

When executing the aplay command, I can get the clock from AUD_CLK.But we hear nothing.

  • Hi,
    Can you please describe your issue in more detail ? Which Sitara SDK are you running ? Do you have any firmware / sniffer logs to share ?

    Saurabh
  • Hi,

    I use ti-processor-sdk-linux-am57xx-evm-03.03.00.05, AM335xBluetopiaLinuxProduction-4.0.3.0.1.0.
    We can see the following information:
    [ 2.271396] Bluetooth: Virtual HCI driver ver 1.5
    [ 2.276257] Bluetooth: HCI UART driver ver 2.3
    [ 2.280742] Bluetooth: HCI UART protocol H4 registered
    [ 2.285903] Bluetooth: HCI UART protocol BCSP registered
    [ 2.291251] Bluetooth: HCI UART protocol LL registered
    [ 2.296411] Bluetooth: HCI UART protocol Three-wire (H5) registered
    [ 2.303742] omap_hsmmc 4809c000.mmc: Got CD GPIO
    [ 2.349469] ledtrig-cpu: registered to indicate activity on CPUs
    [ 2.359461] vdd_3v3: supplied by regen1
    [ 2.363613] aic_dvdd_fixed: supplied by vdd_3v3
    [ 2.381620] /bt_sco_card/simple-audio-card,cpu: could not get #sound-dai-cells for /ocp/mcasp@48460000
    [ 2.391010] asoc-simple-card bt_sco_card: parse error -22
    [ 2.396440] asoc-simple-card: probe of bt_sco_card failed with error -22
    [ 2.483878] enter davinci_mcasp_set_dai_fmt
    [ 2.488101] case SND_SOC_DAIFMT_CBS_CFS
    [ 2.492416] davinci_evm btwilink_sound: wilink8_bt-hifi <-> 48460000.mcasp mapping ok
    [ 2.519540] NET: Registered protocol family 10
    [ 2.534840] sit: IPv6 over IPv4 tunneling driver
    [ 2.540039] NET: Registered protocol family 17
    [ 2.544621] Bluetooth: RFCOMM TTY layer initialized
    [ 2.549541] Bluetooth: RFCOMM socket layer initialized
    [ 2.554710] Bluetooth: RFCOMM ver 1.11
    [ 2.558486] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
    [ 2.563836] Bluetooth: BNEP filters: protocol multicast
    [ 2.569100] Bluetooth: BNEP socket layer initialized
    [ 2.574088] Bluetooth: HIDP (Human Interface Emulation) ver 1.2
    [ 2.580047] Bluetooth: HIDP socket layer initialized
    ...
    [ 3.122290] asoc-simple-card sound@0: tlv320aic3x-hifi <-> 48464000.mcasp mapping ok
    [ 3.131644] hctosys: unable to open rtc device (rtc0)
    [ 3.146719] Bluetooth: Starting self testing
    [ 3.151032] Bluetooth: Finished self testing
    [ 3.155469] aic_dvdd_fixed: disabling
    [ 3.159348] ALSA device list:
    [ 3.162327] #0: BeagleBoard-X15
    [ 3.165651] #2: WILINK8_BT
    ...

    root@am57xx-evm:~# aplay -L
    null
    Discard all samples (playback) or generate zero samples (capture)
    pulse
    PulseAudio Sound Server
    default:CARD=BeagleBoardX15
    BeagleBoard-X15,
    Default Audio Device
    sysdefault:CARD=BeagleBoardX15
    BeagleBoard-X15,
    Default Audio Device
    default:CARD=WILINK8BT
    WILINK8_BT,
    Default Audio Device
    sysdefault:CARD=WILINK8BT
    WILINK8_BT,
    Default Audio Device
    root@am57xx-evm:~#

    On AM5728 custom we have:

    - McASP2 connected to tlv320aic3104

    - McASP1 connected to cc2564,and McASP1 is FSX/AUD_FSYNC and ACLKX/AUD_CLK master, cc2564 is slave.

    - Mcasp1 use these pins to connect to cc2564:

    mcasp1_fsx---------->AUD_FSYNC 9.765KHz
    mcasp1_aclkx-------->AUD_CLK    312.5KHz
    mcasp1_axr4--------->AUD_IN
    mcasp1_axr5--------->AUD_OUT

    we play a wav file to WILINK8BT by aplay -Dplughw:WILINK8BT  Classical-Artists.wav command to make sure this codec driver connected to cc2564. We can measure the signal from AUD_IN pin and think CPU -> cc2564 path is good.

    So we move on to pair and test handfree profile.

    We can measure the signal from AUD_IN pin,but AUD_OUT pin does not have any data information, so we do not hear anything.

  • Can, you take BT firmware logs? That would help to check the configuration and if there are overflows etc..

    www.ti.com/.../swau058d.pdf

    Thanks
  • Hi,

    Follow the documentation, set up a logger, and then test handfree profile.

    Debug1.rar

    Thanks

  • Did, you made sure AVPR is enabled in the BTS file? And, for enabling HFP, you used the demo application from the Bluetopia SDK right?

    processors.wiki.ti.com/.../CC256x_Service_Pack_User's_Guide

    Thanks