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.

TMS320DM8168: Use McASP0 multi-serializer connected with AIC3268

Part Number: TMS320DM8168

Hi Ti,

I am using AIC3268 connect with DM8168 McASP0.

There are three audio serial interfaces(ASI) of AIC3268 and I have used one of them to connect to McASP0 successfully.The following is pin connection:

AIC3268 MCLK <- McASP AHCLKX

AIC3268 BCLK -> McASP ACLKX

AIC3268 WCLK -> McASP AFSX

AIC3268 ASI1 DOUT -> McASP AXR[0]

AIC3268 ASI1 DIN <- McASP AXR[1]

I could capture and playback via McASP0 AXR[0]/AXR[1] interface with AIC3268.

Now I want to use another two ASIs of AIC3268. Just for capture usage. The pin connection is...

AIC3268 ASI2 DOUT -> McASP AXR[2]
AIC3268 ASI3 DOUT -> McASP AXR[3]

I am new for multi-serializer use. Are the pin connection OK for multi-serializer usage?

As I know, multi-serializer is not supported in McASP(ezsdk 5.05.02.00, kernel version v2.6.37)

Please help check the hardware connection is OK in our custom board layout first.

BR,

Steven

  • Steven,

    Yes, the pin connection looks OK for multi-serializer usage. For more info and for SW config info, refer to the below pointers:

    e2e.ti.com/.../1666728

    www.ti.com/.../sprac09a.pdf

    Regards,
    Pavel
  • Hi Pavel,
    Thank for quick reply!
    It's useful info for SW configuration.
    Thanks very much.
    BR,
    Steven
  • Hi Pavel,
    Another question after multi-serializer implemented...
    The following is my arecord list:
    # arecord -l
    **** List of CAPTURE Hardware Devices ****
    card 0: TI81XXDVRCARD0 [TI81XX_DVR_CARD0], device 0: AIC3268.ASI1 aic326x-asi1-0 []
    Subdevices: 1/1
    Subdevice #0: subdevice #0
    card 0: TI81XXDVRCARD0 [TI81XX_DVR_CARD0], device 1: AIC3268.ASI2 aic326x-asi2-1 []
    Subdevices: 1/1
    Subdevice #0: subdevice #0
    card 0: TI81XXDVRCARD0 [TI81XX_DVR_CARD0], device 2: AIC3268.ASI3 aic326x-asi3-2 []
    Subdevices: 1/1
    Subdevice #0: subdevice #0

    I want to record three different wav files from different alsa device as following:
    # arecord -f cd -D hw:0,0 ASI1.wav
    # arecord -f cd -D hw:0,1 ASI2.wav
    # arecord -f cd -D hw:0,2 ASI3.wav
    But I found ASI1.wav, ASI2.wav, ASI3.wav all the same...even if AIC3268 ASI2 DOUT -> McASP AXR[2], AIC3268 ASI3 DOUT -> McASP AXR[3] both disconnected(I expect that ASI2.wav, ASI3.wav have no audio data. ie silence)
    why?
    BR,
    Steven
  • Steven,

    Steven Weng1 said:
    I want to record three different wav files from different alsa device as following:
    # arecord -f cd -D hw:0,0 ASI1.wav
    # arecord -f cd -D hw:0,1 ASI2.wav
    # arecord -f cd -D hw:0,2 ASI3.wav
    But I found ASI1.wav, ASI2.wav, ASI3.wav all the same...even if AIC3268 ASI2 DOUT -> McASP AXR[2], AIC3268 ASI3 DOUT -> McASP AXR[3] both disconnected(I expect that ASI2.wav, ASI3.wav have no audio data. ie silence)
    why?

    I would suggest you to check DM816x MCASP0 pins (MCA[0]_AXR[0]/AK37, MCA[0]_AXR[1]/AJ32, MCA[0]_AXR[2]/AJ33) with scope and verify that on each pin you have different audio data stream from the AIC3x codec. 

    You need to isolate if the issue is caused by DM816x device or AIC3x codec. If AIC3x codec, you should ask/post in the Audio codecs forum (I am not familiar with AIC3x codec internals):

    Regards,
    Pavel

  • Hi Pavel,
    Sorry for late reply.
    I have recorded the multi-channel audio data via multi-serializer interface.Just use only one alsa device hw:0,0.
    The recorded wav file has four channels if I use two AXRs as serial data input and the channel order of wav file is 1L 2L 1R 2R.
    For our usage, we need to split it into four mono tracks then merge the 1L 1R to one stereo audio, 2L 2R to another.
    It seems impossible to create two alsa deivces that include stereo audio track per device. is it right?
    BR,
    Steven