[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20190617145650.GS5316@sirena.org.uk>
Date: Mon, 17 Jun 2019 15:56:50 +0100
From: Mark Brown <broonie@...nel.org>
To: Yu-Hsuan Hsu <yuhsuan@...omium.org>
Cc: linux-kernel@...r.kernel.org, Jaroslav Kysela <perex@...ex.cz>,
Takashi Iwai <tiwai@...e.com>,
Jon Hunter <jonathanh@...dia.com>,
Pierre-Louis Bossart <pierre-louis.bossart@...ux.intel.com>,
alsa-devel@...a-project.org, Liam Girdwood <lgirdwood@...il.com>,
dgreid@...omium.org, cychiang@...omium.org
Subject: Re: [PATCH v5] ASoC: max98090: remove 24-bit format support if RJ is
0
On Mon, Jun 17, 2019 at 11:55:26AM +0800, Yu-Hsuan Hsu wrote:
> + /*
> + * When TDM = 0, remove 24-bit format support if it is not in right
> + * justified mode.
> + */
> + if (!max98090->tdm_slots &&
> + (fmt & SND_SOC_DAIFMT_FORMAT_MASK) != SND_SOC_DAIFMT_RIGHT_J) {
> + substream->runtime->hw.formats = SNDRV_PCM_FMTBIT_S16_LE;
> + snd_pcm_hw_constraint_msbits(substream->runtime, 0, 16, 16);
> + }
Do you need both the addition of constraints and the one way
modification of the formats here? Also the indentation is messed up
which makes things hard to read, the second line of the conditional is
aligned with the contents of the if block.
Download attachment "signature.asc" of type "application/pgp-signature" (489 bytes)
Powered by blists - more mailing lists