[PATCH] ASoC: fsl_sai: Enable transmitter when generating MCLK

Marek Vasut marex at denx.de
Tue Nov 8 10:34:34 CET 2022


On 11/8/22 06:29, Shengjiu Wang wrote:
> On Tue, Nov 8, 2022 at 5:52 AM Marek Vasut <marex at denx.de> wrote:
> 
>> For SAI to generate MCLK on external SoC pad, the transmitter must be
>> enabled as well. With transmitter disabled, no clock are generated.
>> Enable the transmitter using the TERE bit.
>>
> 
> It is already done in trigger(), why need to do this operation in probe()
> and set_bclk() again?

The system I have here has SAI MCLK (output) connected to SGTL5000 codec 
MCLK (input) . If the SAI MCLK (output), the codec I2C interface won't 
work. That's why the MCLK must be enabled so early.


More information about the Alsa-devel mailing list