projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d135681
)
ASoC: Intel: avs: Simplify d0ix disabling routine
author
Cezary Rojewski
<cezary.rojewski@intel.com>
Mon, 10 Oct 2022 12:19:48 +0000
(14:19 +0200)
committer
Mark Brown
<broonie@kernel.org>
Mon, 17 Oct 2022 11:50:11 +0000
(12:50 +0100)
No need to atomic_add_return(1) when there is atomic_inc_return()
available.
Signed-off-by: Cezary Rojewski <cezary.rojewski@intel.com>
Link:
https://lore.kernel.org/r/20221010121955.718168-9-cezary.rojewski@intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/avs/ipc.c
patch
|
blob
|
blame
|
history
diff --git
a/sound/soc/intel/avs/ipc.c
b/sound/soc/intel/avs/ipc.c
index 77da206f7dbba83cd9c043d0193f584fa78af609..152f8d0bdf8eac5e45b7d1944788e265bfeb0b10 100644
(file)
--- a/
sound/soc/intel/avs/ipc.c
+++ b/
sound/soc/intel/avs/ipc.c
@@
-74,7
+74,7
@@
int avs_dsp_disable_d0ix(struct avs_dev *adev)
struct avs_ipc *ipc = adev->ipc;
/* Prevent PG only on the first disable. */
- if (atomic_
add_return(1,
&ipc->d0ix_disable_depth) == 1) {
+ if (atomic_
inc_return(
&ipc->d0ix_disable_depth) == 1) {
cancel_delayed_work_sync(&ipc->d0ix_work);
return avs_dsp_set_d0ix(adev, false);
}