Re: [PATCH v6] ASoC: max98090: remove 24-bit format support if RJ is 0

2019-07-02 Thread Mark Brown
On Tue, Jun 18, 2019 at 10:24:11AM +0800, Yu-Hsuan Hsu wrote: > + /* > + * When TDM = 0, remove 24-bit format support if it is not in right > + * justified mode. > + */ > + if ((fmt & SND_SOC_DAIFMT_FORMAT_MASK) != SND_SOC_DAIFMT_RIGHT_J && > + !max98090-

[PATCH v6] ASoC: max98090: remove 24-bit format support if RJ is 0

2019-06-17 Thread Yu-Hsuan Hsu
The supported formats are S16_LE and S24_LE now. However, S24_LE is not supported when TDM is 0 and it is not in the right justified mode. We should remove 24-bit format in that situation to avoid triggering error. Signed-off-by: Yu-Hsuan Hsu --- Changed the order of the conditional. Remove the s