projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
76003e4
)
ASoC: soc-component: using pm_runtime_resume_and_get instead of pm_runtime_get_sync
author
Zhang Qilong
<zhangqilong3@huawei.com>
Thu, 22 Sep 2022 14:58:46 +0000
(22:58 +0800)
committer
Mark Brown
<broonie@kernel.org>
Fri, 23 Sep 2022 16:54:13 +0000
(17:54 +0100)
Using the newest pm_runtime_resume_and_get is more appropriate
for simplifing code here.
Signed-off-by: Zhang Qilong <zhangqilong3@huawei.com>
Link:
https://lore.kernel.org/r/20220922145846.114312-1-zhangqilong3@huawei.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/soc-component.c
patch
|
blob
|
history
diff --git
a/sound/soc/soc-component.c
b/sound/soc/soc-component.c
index e12f8244242b9afd96bc3c85da56d5b293896a8d..659b9ade415869d2806058846259211ba78388c2 100644
(file)
--- a/
sound/soc/soc-component.c
+++ b/
sound/soc/soc-component.c
@@
-1213,11
+1213,9
@@
int snd_soc_pcm_component_pm_runtime_get(struct snd_soc_pcm_runtime *rtd,
int i;
for_each_rtd_components(rtd, i, component) {
- int ret = pm_runtime_get_sync(component->dev);
- if (ret < 0 && ret != -EACCES) {
- pm_runtime_put_noidle(component->dev);
+ int ret = pm_runtime_resume_and_get(component->dev);
+ if (ret < 0 && ret != -EACCES)
return soc_component_ret(component, ret);
- }
/* mark stream if succeeded */
soc_component_mark_push(component, stream, pm);
}