Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 33420d66 authored by Vinod Koul's avatar Vinod Koul Committed by Mark Brown
Browse files

ASoC: Intel: Skylake: Update the delay check



Delay check was using ternary operator, it can be simplified to
simple if condition, so update it

Signed-off-by: default avatarVinod Koul <vinod.koul@intel.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 98ab7a02
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -863,7 +863,9 @@ static int skl_get_delay_from_lpib(struct hdac_ext_bus *ebus,
		else
			delay += hstream->bufsize;
	}
	delay = (hstream->bufsize == delay) ? 0 : delay;

	if (hstream->bufsize == delay)
		delay = 0;

	if (delay >= hstream->period_bytes) {
		dev_info(bus->dev,