projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b3dea62
)
ASoC: atomel: use snd_soc_xxx_active()
author
Kuninori Morimoto
<kuninori.morimoto.gx@renesas.com>
Fri, 15 May 2020 00:46:56 +0000
(09:46 +0900)
committer
Mark Brown
<broonie@kernel.org>
Mon, 18 May 2020 15:15:04 +0000
(16:15 +0100)
We have snd_soc_dai/dai_stream/component_active() macro
This patch uses it.
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Link:
https://lore.kernel.org/r/871rnm6n3z.wl-kuninori.morimoto.gx@renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/atmel/atmel_ssc_dai.c
patch
|
blob
|
history
diff --git
a/sound/soc/atmel/atmel_ssc_dai.c
b/sound/soc/atmel/atmel_ssc_dai.c
index 1073f468f21f646ecabacdead7dc882033cebf42..0f18dfb85bfeda0d7687606c7d84c81eaa0fc80b 100644
(file)
--- a/
sound/soc/atmel/atmel_ssc_dai.c
+++ b/
sound/soc/atmel/atmel_ssc_dai.c
@@
-765,7
+765,7
@@
static int atmel_ssc_suspend(struct snd_soc_component *component)
struct atmel_ssc_info *ssc_p;
struct platform_device *pdev = to_platform_device(component->dev);
- if (!
component->active
)
+ if (!
snd_soc_component_active(component)
)
return 0;
ssc_p = &ssc_info[pdev->id];
@@
-793,7
+793,7
@@
static int atmel_ssc_resume(struct snd_soc_component *component)
struct platform_device *pdev = to_platform_device(component->dev);
u32 cr;
- if (!
component->active
)
+ if (!
snd_soc_component_active(component)
)
return 0;
ssc_p = &ssc_info[pdev->id];