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.

Audio Parameters for tlv320dac3100 to AM335x Sitara

Other Parts Discussed in Thread: TLV320DAC3100

I am new to the Audio related stuff : need help : any one please help me this --

From AM335x ACLK, FSX, AXR2, AXR3 are connected to Audio DAC - TLV320DAC3100 -- which is having headphone 3.5 jack and speaker.

AM335x - of -- ACLK -to - BCLK -of- codec

                           FSX   -- FSX  - codec

                          AXR2   -- DIN -- codec

                          AXR3  --   Dout -- but not connected -- left it as Test Point

                   CLKOUT1  -- MCLK of Codec   // i forgot this pin -- need to do pin muxing -- for this IO as CLOCK.

in the the device tree

op-mode = <0>;    /* MCASP_IIS_MODE */    -- do we need to change the parameters here op-mode
tdm-slots = <2>;                            
/* 4 serializers */
    serial-dir = <    /* 0: INACTIVE, 1: TX, 2: RX */    -- here i am having doubt -- is this parameter is correct
        1 0 0 0
    >;

Regards,

Viswanath K.

  • Hi Viswanath,

    VISWANATH KONDAPALLI said:
    op-mode = <0>;    /* MCASP_IIS_MODE */    -- do we need to change the parameters here op-mode

    op-mode = 0 means that your MCASP will work in  I2S mode. This is used for  I2S, PCM and TDM protocols

    op-mode = 1 means DIT mode, used for S/PDIF protocol

    For your case op-mode = 0 is OK. 

    VISWANATH KONDAPALLI said:
        serial-dir = <    /* 0: INACTIVE, 1: TX, 2: RX */    -- here i am having doubt -- is this parameter is correct
            1 0 0 0
        >;

     

    This setting means that AXR0 is TX and all other serializers are INACTIVE.  Since you use AXR2 as TX, then in my opinion you should change this to: 
      serial-dir = <     /* 0: INACTIVE, 1: TX, 2: RX */
           0 0 1 0

      >; 

    Best Regards, 
    Yordan

  • Thank you for the reply Yordan.

    we are using serial-dir as <0 0 1 2> we will change to <0 0 1 0>.
  • Hi,

    Note that <0 0 1 0> will set only AXR2 as TX, AXR3 will be INACTIVE. Are you planning to use AXR3 as TX or RX? If yes, you should set it to 1 or 2 in the serial-dir parameter.

    Best Regards,
    Yordan
  • Thank you for the suggestion -- we are going to use <0 0 1 2 > //now we are not having RX(AXR3) -- no MIC. and for the future purpose we kept it as it is.

    I think in this post -- my doubts are clarified.