* [PATCH] ASoC: SOF: Intel: hda-dai: Remove unnecessary bool conversion
@ 2025-02-23 20:25 Thorsten Blum
2025-03-04 12:33 ` Mark Brown
0 siblings, 1 reply; 2+ messages in thread
From: Thorsten Blum @ 2025-02-23 20:25 UTC (permalink / raw)
To: Liam Girdwood, Peter Ujfalusi, Bard Liao, Ranjani Sridharan,
Daniel Baluta, Kai Vehmanen, Pierre-Louis Bossart, Mark Brown,
Jaroslav Kysela, Takashi Iwai, Peter Zijlstra
Cc: Thorsten Blum, sound-open-firmware, linux-sound, linux-kernel
Remove the unnecessary bool conversion and simplify the code.
Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
---
sound/soc/sof/intel/hda-dai.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sound/soc/sof/intel/hda-dai.c b/sound/soc/sof/intel/hda-dai.c
index da12aabc1bb8..883d0d3bae9e 100644
--- a/sound/soc/sof/intel/hda-dai.c
+++ b/sound/soc/sof/intel/hda-dai.c
@@ -318,7 +318,7 @@ static int __maybe_unused hda_dai_trigger(struct snd_pcm_substream *substream, i
case SNDRV_PCM_TRIGGER_STOP:
case SNDRV_PCM_TRIGGER_SUSPEND:
ret = hda_link_dma_cleanup(substream, hext_stream, dai,
- cmd == SNDRV_PCM_TRIGGER_STOP ? false : true);
+ cmd != SNDRV_PCM_TRIGGER_STOP);
if (ret < 0) {
dev_err(sdev->dev, "%s: failed to clean up link DMA\n", __func__);
return ret;
--
2.48.1
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: [PATCH] ASoC: SOF: Intel: hda-dai: Remove unnecessary bool conversion
2025-02-23 20:25 [PATCH] ASoC: SOF: Intel: hda-dai: Remove unnecessary bool conversion Thorsten Blum
@ 2025-03-04 12:33 ` Mark Brown
0 siblings, 0 replies; 2+ messages in thread
From: Mark Brown @ 2025-03-04 12:33 UTC (permalink / raw)
To: Liam Girdwood, Peter Ujfalusi, Bard Liao, Ranjani Sridharan,
Daniel Baluta, Kai Vehmanen, Pierre-Louis Bossart,
Jaroslav Kysela, Takashi Iwai, Peter Zijlstra, Thorsten Blum
Cc: sound-open-firmware, linux-sound, linux-kernel
On Sun, 23 Feb 2025 21:25:45 +0100, Thorsten Blum wrote:
> Remove the unnecessary bool conversion and simplify the code.
>
>
Applied to
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next
Thanks!
[1/1] ASoC: SOF: Intel: hda-dai: Remove unnecessary bool conversion
commit: feb849404a8b677aa6760d1539acf597e4574337
All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying
to this mail.
Thanks,
Mark
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-03-04 12:33 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-23 20:25 [PATCH] ASoC: SOF: Intel: hda-dai: Remove unnecessary bool conversion Thorsten Blum
2025-03-04 12:33 ` Mark Brown
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox