projects
/
openwrt
/
staging
/
blogic.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 b6e6b61d10ec22349650ee5c1db3074068a180e4..cc9a5599ab9d2e7ba7f8f9fd821d7708dc353243 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,