diff options
author | Michael Sit Wei Hong <[email protected]> | 2020-09-04 10:09:04 +0800 |
---|---|---|
committer | Mark Brown <[email protected]> | 2020-09-07 15:28:57 +0100 |
commit | b40f708deb951c3d46857fe5aed9cea1a506585b (patch) | |
tree | a5275059a464593f95cc055d1fe6803cb4632b52 | |
parent | 1b3c63acb1e52d5af04b99b9b784ff3775c63313 (diff) |
ASoC: Intel: KeemBay: Fix warning potential ! vs ~ typo
To set platform in slave mode setting the MASTER_MODE bit is not needed.
Removing !MASTER_MODE conditional to avoid potential errors and warning.
Signed-off-by: Michael Sit Wei Hong <[email protected]>
Reported-by: Dan Carpenter <[email protected]>
Reviewed-by: Pierre-Louis Bossart <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected]>
-rw-r--r-- | sound/soc/intel/keembay/kmb_platform.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/intel/keembay/kmb_platform.c b/sound/soc/intel/keembay/kmb_platform.c index ca25a6e40cc9..f54b710ee1c2 100644 --- a/sound/soc/intel/keembay/kmb_platform.c +++ b/sound/soc/intel/keembay/kmb_platform.c @@ -515,7 +515,7 @@ static int kmb_dai_hw_params(struct snd_pcm_substream *substream, write_val = ((config->chan_nr / 2) << TDM_CHANNEL_CONFIG_BIT) | (config->data_width << DATA_WIDTH_CONFIG_BIT) | - !MASTER_MODE | TDM_OPERATION; + TDM_OPERATION; writel(write_val, kmb_i2s->pss_base + I2S_GEN_CFG_0); break; |