* [PATCH] ASoC: fsl_sai: Don't use ~FSL_SAI_CR2_SYNC
@ 2014-08-04 15:17 Mark Brown
0 siblings, 0 replies; only message in thread
From: Mark Brown @ 2014-08-04 15:17 UTC (permalink / raw)
To: Nicolin Chen, Liam Girdwood; +Cc: alsa-devel, linaro-kernel, Mark Brown
From: Mark Brown <broonie@linaro.org>
On 64 bit systems ~FSL_SAI_CR2_SYNC generates a constant that won't fit in
an unsigned int, causing GCC to warn. Since we're already only updating
one bit due to the masking in update bits just write the value
explicitly as zero.
Signed-off-by: Mark Brown <broonie@linaro.org>
---
sound/soc/fsl/fsl_sai.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/sound/soc/fsl/fsl_sai.c b/sound/soc/fsl/fsl_sai.c
index faa0497..9f10575 100644
--- a/sound/soc/fsl/fsl_sai.c
+++ b/sound/soc/fsl/fsl_sai.c
@@ -333,8 +333,7 @@ static int fsl_sai_trigger(struct snd_pcm_substream *substream, int cmd,
* The transmitter bit clock and frame sync are to be
* used by both the transmitter and receiver.
*/
- regmap_update_bits(sai->regmap, FSL_SAI_TCR2, FSL_SAI_CR2_SYNC,
- ~FSL_SAI_CR2_SYNC);
+ regmap_update_bits(sai->regmap, FSL_SAI_TCR2, FSL_SAI_CR2_SYNC, 0);
regmap_update_bits(sai->regmap, FSL_SAI_RCR2, FSL_SAI_CR2_SYNC,
FSL_SAI_CR2_SYNC);
--
2.0.0
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2014-08-04 15:18 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-04 15:17 [PATCH] ASoC: fsl_sai: Don't use ~FSL_SAI_CR2_SYNC Mark Brown
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).