OSDN Git Service
(root)
/
tomoyo
/
tomoyo-test1.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8ca4602
)
ASoC: cirrus: use snd_soc_xxx_active()
author
Kuninori Morimoto
<kuninori.morimoto.gx@renesas.com>
Fri, 15 May 2020 00:47:05 +0000
(09:47 +0900)
committer
Mark Brown
<broonie@kernel.org>
Mon, 18 May 2020 15:15:06 +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/87y2pu58ja.wl-kuninori.morimoto.gx@renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/cirrus/ep93xx-i2s.c
patch
|
blob
|
history
diff --git
a/sound/soc/cirrus/ep93xx-i2s.c
b/sound/soc/cirrus/ep93xx-i2s.c
index
723f4cf
..
371708b
100644
(file)
--- a/
sound/soc/cirrus/ep93xx-i2s.c
+++ b/
sound/soc/cirrus/ep93xx-i2s.c
@@
-368,7
+368,7
@@
static int ep93xx_i2s_suspend(struct snd_soc_component *component)
{
struct ep93xx_i2s_info *info = snd_soc_component_get_drvdata(component);
- if (!
component->active
)
+ if (!
snd_soc_component_active(component)
)
return 0;
ep93xx_i2s_disable(info, SNDRV_PCM_STREAM_PLAYBACK);
@@
-381,7
+381,7
@@
static int ep93xx_i2s_resume(struct snd_soc_component *component)
{
struct ep93xx_i2s_info *info = snd_soc_component_get_drvdata(component);
- if (!
component->active
)
+ if (!
snd_soc_component_active(component)
)
return 0;
ep93xx_i2s_enable(info, SNDRV_PCM_STREAM_PLAYBACK);