mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-05 06:18:45 -04:00
ASoC: qcom: q6dsp-dai: clarify expression
cppcheck warning:
sound/soc/qcom/qdsp6/q6afe-dai.c:264:35: style: Clarify calculation
precedence for '&' and '?'. [clarifyCalculation]
tdm->slot_mask = (dai->id & 0x1 ? tx_mask : rx_mask) & cap_mask;
^
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Link: https://lore.kernel.org/r/20210218222916.89809-4-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
committed by
Mark Brown
parent
64298706dc
commit
18bcac6ed7
@@ -261,7 +261,7 @@ static int q6tdm_set_tdm_slot(struct snd_soc_dai *dai,
|
||||
tdm->nslots_per_frame = slots;
|
||||
tdm->slot_width = slot_width;
|
||||
/* TDM RX dais ids are even and tx are odd */
|
||||
tdm->slot_mask = (dai->id & 0x1 ? tx_mask : rx_mask) & cap_mask;
|
||||
tdm->slot_mask = ((dai->id & 0x1) ? tx_mask : rx_mask) & cap_mask;
|
||||
break;
|
||||
default:
|
||||
dev_err(dai->dev, "%s: invalid dai id 0x%x\n",
|
||||
|
||||
Reference in New Issue
Block a user