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.

TAS5782M: Question of TAS5782 in I2S Master Mode

Part Number: TAS5782M

Hi Sirs,

Customer would like change TI TAS5782M from I2S slave mode to I2S master mode for generate SCLK and LRCLK from TAS5782M.

We refered to datasheet chapter 9.3.3.1 and set below register to config TAS5782M:

Register Value

============

0x00       0x00

0x7f       0x00

0x02      0x11

0x01      0x11

0x09      0x11

0x0c       0x00

0x0c       0x03

0x0e      0x30

0x1c       0x1f

0x20      0x0f

0x21      0x1f

0x02      0x00

 

The MCLK came from host SAI interface(24.576MHz), after write above register, we can see SCLK(1.536MHz) and LRCLK(48KHz) send out from TAS5782M.

When customer played music from the host side, we can see the data(SAI_TXD) transmit from host to TAS5782M SDIN, but there is no signal arrive to speaker.

Would you please review if there is any missing to bring up TAS5782M in I2S master mode?

Thanks a lot

Wayne Chen
07/25/2018

  • Hi Wayne,

    Sorry for the delay.

    Well understand your problem. In order to analyze the problem more efficiently,

    Could you please help to provide us with full CFG file to debug in our EVM?

    P.S. Please email to me with the CFG files from the customer.

    Thanks & best regards,

    Alix Wan.

  • f176_tuning_-24dB.h

    Hi Alix,

    Attachment are the register map we used when probe the device.

    Line#1599-1613 are used to config TAS5782m in master mode.(We learn from datasheet chapter 9.3.3.1)

    Best Regards,

    Tony Lee

  • Upload F176 PPC3 config file and header file generate by PPC3 for reference.

    https://e2e.ti.com/cfs-file/__key/communityserver-discussions-components-files/6/F176_5F00_PPC3.7z

    Best Regards,

    Tony Lee

  • Hi Tony, Hi Wayne,

    As to the master mode, please do not use PPC3 mother board to configure the EVM.
    But in your case, I think, you are testing in customer's board. Please try following scripts:
    w 90 00 00 # Goto Page 0
    w 90 02 10 # Put TAS5782M into standby mode

    w 90 20 0f #sck/16
    w 90 21 1f #sck/16/32
    w 90 09 11 #BCK output enable
    w 90 0c 7f #reset clock
    w 90 28 00
    w 90 02 00

    I tried in my bench and it works functionally.


    Thanks & regards,
    Alix Wan.
  • Hi Alix,

    Thanks for your help.

    After applied above register setting, I can hear the tone from speaker in master mode.(previous setting speaker always mute)

    But the playback music can't send out correctly, the volume is unstable and sounds like continuous noise.

    If I stop/start the playback music or running audio capture application, volume and tone may changed.

    Sometimes I can hear the music correctly with different volume.

    Is there any limitation in MCLK, BCLK and LRCLK?

    Best Regards,

    Tony Lee

  • Hi Alix, Wayne,

    After adjust devicetree, codec and machine driver for codec-master mode, I can hear the correct tone from the speaker now.

    This issue is clear.

    Thank you very much for your help.

    Best Regards,

    Tony Lee