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.

TAS2770: Software support for TAS2770 stereo solution

Part Number: TAS2770
Other Parts Discussed in Thread: TAS2562

Hi,

For a stereo speaker solution based on two Mono Class D Audio Amplifiers over single I2S interface,We are considering TAS2770 Audio amplifier.

We have below queries regarding it:

  1. What is the software support available for this stereo use-case for Android platform? Any Linux Kernel driver availability?If available can you please share the driver?
  2. How can we play stereo stream on speakers(left channel data on 1 speaker and right channel data on the other) over I2S using this solution? Any alsa mixer configuration for the same?

Can you please answer above queries?

Thanks,
Niraj

  • Hi, Niraj,

    Welcome to E2E and thank you for your interest in our products!

    All the information about the TAS2770 Android drivers can be found in this link:

    Best regards,
    Luis Fernando Rodríguez S.

  • Hi Luis,

    Thank you so much for the quick response regarding android support.

    We take a look at the driver, and we could not find any mixer settings for the stereo mode support for 2 speakers on single I2S.

    please refer below image to understand our usecase and query #2, 

    We are considering to connect 2 TAS2770 speaker amplifiers on the same I2S bus. Similar to WSA  stereo speaker usecase, but instead of soundwire it would be MI2S. (Please refer developer.qualcomm.com/.../wsa8810wsa8815-class-d-smart-speaker-amplifier-device-specification.pdf

    We have below queries for this usecase:

    1. Is it possible to connect 2 TAS2770 speaker amplifiers on the same I2S bus for Stereo Speaker usecase from software support perspective(From Hardware perspective, it seems feasible)? If yes how can we configure it for the stereo speaker usecase? what are the mixer settings for the same ? In the driver, we can only see mixer settings for mono usecase.
    2. We are seeing some hurdles for this usecase from software perspective like
      1. Not sure if 2nd instance of driver will get probed as it may fail to create duplicate DAPM widgets.
      2. Lets say driver for both speaker has been probed,in that case when we apply tinymix commands, to which speaker it may get applied?
      3. Lets say we create seperate drivers (similar but with changed compatible property and dapm widgets with prefix/suffix like Left/Right), in that case would it be possible to link two codec to single I2S dai?

    Kindly Share your thoughts on these.

    Thanks,

    Niraj

  • Hi, Niraj,

    It is possible to connect both TAS2770 to the same I2S channel. Actually, this is one of the advantages of TDM mode. The TAS2770 TDM Rx Time Slots must be configured in order to receive the left channel for one of the TAS2770 and the right channel for the second TAS2770. Or you can even route the same channel or a mix of channels to both TAS2770.

    Regarding the driver characteristics, I will contact my colleagues from the software team to provide additional details.

    Best regards,
    Luis Fernando Rodríguez S.

  • Hi Niraj,

    Glad to discuss with you on tas2770.

    As to stereo code, you can reference our tas2562 stereo code which contains total solution on mixer kcontrols used to control left channel, right channel or stereo.

    https://git.ti.com/cgit/tas256xsw-android/tas2562-stereo-android-driver/

    It is unnecessary to use two audio instances. Only one handle is enough to hold both PAs. I’d like you our stereo code for tas2562. Though this code is for tas2562 and register settings are difference, yet code handling is similar and you may as well use this software arch as your tas2770 code.

    As to codec register, only one codec is enough. I’m sure that you can have a perfect idea on how to develop the driver after you read the tas256x stereo code.

    As to rx and tx setting, I have no idea on your detailed application. Per my experience, 32-bit I2S stereo for RX/TX, and IV sense can be set as 16-bit for both channels.