Re: [PATCH] ASoC: fsl_sai: initialize is_dsp_mode flag

2023-01-16 Thread Mark Brown
On Mon, 16 Jan 2023 15:07:54 +0800, Shengjiu Wang wrote: > Initialize is_dsp_mode flag in the beginning of function > fsl_sai_set_dai_fmt_tr(). > > When the DAIFMT is DAIFMT_DSP_B the first time, is_dsp_mode is > true, then the second time DAIFMT is DAIFMT_I2S, is_dsp_mode > still true, which is

Re: [PATCH] ASoC: fsl_sai: initialize is_dsp_mode flag

2023-01-16 Thread Iuliana Prodan
On 1/16/2023 9:07 AM, Shengjiu Wang wrote: Initialize is_dsp_mode flag in the beginning of function fsl_sai_set_dai_fmt_tr(). When the DAIFMT is DAIFMT_DSP_B the first time, is_dsp_mode is true, then the second time DAIFMT is DAIFMT_I2S, is_dsp_mode still true, which is a wrong state. So need

[PATCH] ASoC: fsl_sai: initialize is_dsp_mode flag

2023-01-15 Thread Shengjiu Wang
Initialize is_dsp_mode flag in the beginning of function fsl_sai_set_dai_fmt_tr(). When the DAIFMT is DAIFMT_DSP_B the first time, is_dsp_mode is true, then the second time DAIFMT is DAIFMT_I2S, is_dsp_mode still true, which is a wrong state. So need to initialize is_dsp_mode flag every time.