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:
960cdd5
)
ASoC: sigmadsp: safeload should not have lower byte limit
author
Danny Smith
<
[email protected]
>
Thu, 23 Aug 2018 08:26:20 +0000
(10:26 +0200)
committer
Mark Brown
<
[email protected]
>
Tue, 28 Aug 2018 19:19:20 +0000
(20:19 +0100)
Fixed range in safeload conditional to allow safeload to up to 20 bytes,
without a lower limit.
Signed-off-by: Danny Smith <
[email protected]
>
Acked-by: Lars-Peter Clausen <
[email protected]
>
Signed-off-by: Mark Brown <
[email protected]
>
sound/soc/codecs/sigmadsp.c
patch
|
blob
|
history
diff --git
a/sound/soc/codecs/sigmadsp.c
b/sound/soc/codecs/sigmadsp.c
index d53680ac78e42d0bb0979afcbea8e77046d181b9..6df158669420db700af2d6e0a11707319e091290 100644
(file)
--- a/
sound/soc/codecs/sigmadsp.c
+++ b/
sound/soc/codecs/sigmadsp.c
@@
-117,8
+117,7
@@
static int sigmadsp_ctrl_write(struct sigmadsp *sigmadsp,
struct sigmadsp_control *ctrl, void *data)
{
/* safeload loads up to 20 bytes in a atomic operation */
- if (ctrl->num_bytes > 4 && ctrl->num_bytes <= 20 && sigmadsp->ops &&
- sigmadsp->ops->safeload)
+ if (ctrl->num_bytes <= 20 && sigmadsp->ops && sigmadsp->ops->safeload)
return sigmadsp->ops->safeload(sigmadsp, ctrl->addr, data,
ctrl->num_bytes);
else