Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

ASoC: fsl: fsl_qmc_audio: Remove unnecessary bool conversions

Remove unnecessary bool conversions and simplify the code.

Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Acked-by: Herve Codina <herve.codina@bootlin.com>
Link: https://patch.msgid.link/20250223202741.1916-2-thorsten.blum@linux.dev
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Thorsten Blum and committed by
Mark Brown
2fa56dae b47834ee

+2 -2
+2 -2
sound/soc/fsl/fsl_qmc_audio.c
··· 892 892 qmc_soc_dai_driver->playback.channels_max = count > 1 ? count : nb_tx_ts; 893 893 } 894 894 qmc_soc_dai_driver->playback.formats = qmc_audio_formats(nb_tx_ts, 895 - count > 1 ? true : false); 895 + count > 1); 896 896 897 897 qmc_soc_dai_driver->capture.channels_min = 0; 898 898 qmc_soc_dai_driver->capture.channels_max = 0; ··· 901 901 qmc_soc_dai_driver->capture.channels_max = count > 1 ? count : nb_rx_ts; 902 902 } 903 903 qmc_soc_dai_driver->capture.formats = qmc_audio_formats(nb_rx_ts, 904 - count > 1 ? true : false); 904 + count > 1); 905 905 906 906 qmc_soc_dai_driver->playback.rates = snd_pcm_rate_to_rate_bit(tx_fs_rate); 907 907 qmc_soc_dai_driver->playback.rate_min = tx_fs_rate;