[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20190702135545.GN2793@sirena.org.uk>
Date: Tue, 2 Jul 2019 14:55:45 +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 v6] ASoC: max98090: remove 24-bit format support if RJ is
0
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->tdm_slots)
> + substream->runtime->hw.formats &= ~SNDRV_PCM_FMTBIT_S24_LE;
Why do this and not add a constraint (which doesn't modify any
constant data structures)?
Download attachment "signature.asc" of type "application/pgp-signature" (489 bytes)
Powered by blists - more mailing lists