diff mbox

[RFC] ASoC: soc-utils: don't have .use_pmdown_time

Message ID 87r2pob7k2.wl%kuninori.morimoto.gx@renesas.com (mailing list archive)
State New, archived
Headers show

Commit Message

Kuninori Morimoto Feb. 14, 2018, 3:01 a.m. UTC
From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>

snd_soc_runtime_ignore_pmdown_time() returns "ignore pmdown time"
decision. Then, it collects each component driver's .use_pmdown_time
settings by using AND operation.
But, dummy codec has no reason to ignore/use pmdown time.
Thus, it should has use_pmdown_time=0, it means it doesn't have
decision right of "ignore pmdown time".

Otherwise, dummy codec paired driver's pmdown_time settings doesn't
have meaning. In other words, "ignore pmdown time" is determined
irrespective of the value of paired driver's settings
(= ignore will be 0 by dummy codec).

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
---
 sound/soc/soc-utils.c | 1 -
 1 file changed, 1 deletion(-)
diff mbox

Patch

diff --git a/sound/soc/soc-utils.c b/sound/soc/soc-utils.c
index 2d9e98b..b70d524 100644
--- a/sound/soc/soc-utils.c
+++ b/sound/soc/soc-utils.c
@@ -290,7 +290,6 @@  static int dummy_dma_open(struct snd_pcm_substream *substream)
 
 static const struct snd_soc_component_driver dummy_codec = {
 	.idle_bias_on		= 1,
-	.use_pmdown_time	= 1,
 	.endianness		= 1,
 	.non_legacy_dai_naming	= 1,
 };