projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
98ab7a0
)
ASoC: Intel: Skylake: Update the delay check
author
Vinod Koul
<vinod.koul@intel.com>
Fri, 5 Feb 2016 06:49:04 +0000
(12:19 +0530)
committer
Mark Brown
<broonie@kernel.org>
Mon, 8 Feb 2016 16:44:17 +0000
(16:44 +0000)
Delay check was using ternary operator, it can be simplified to
simple if condition, so update it
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/skylake/skl-pcm.c
patch
|
blob
|
history
diff --git
a/sound/soc/intel/skylake/skl-pcm.c
b/sound/soc/intel/skylake/skl-pcm.c
index
b6e6b61
..
cc9a559
100644
(file)
--- a/
sound/soc/intel/skylake/skl-pcm.c
+++ b/
sound/soc/intel/skylake/skl-pcm.c
@@
-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,