Introducing a module param for wakeup_delay in order to align with modeswitch_delay parameter. With this change, both wakeup_delay and modeswitch_delay_ms parameters can be passed as module parameters.
Signed-off-by: Jenny TC jenny.tc@intel.com --- sound/soc/codecs/dmic.c | 5 +++++ 1 file changed, 5 insertions(+)
diff --git a/sound/soc/codecs/dmic.c b/sound/soc/codecs/dmic.c index 0527bc2..80ea223 100644 --- a/sound/soc/codecs/dmic.c +++ b/sound/soc/codecs/dmic.c @@ -33,6 +33,9 @@ static int modeswitch_delay_ms; module_param(modeswitch_delay_ms, uint, 0644);
+static int wakeup_delay; +module_param(wakeup_delay, uint, 0644); + struct dmic { struct gpio_desc *gpio_en; int wakeup_delay; @@ -116,6 +119,8 @@ static int dmic_component_probe(struct snd_soc_component *component) &dmic->modeswitch_delay_ms); if (modeswitch_delay_ms) dmic->modeswitch_delay_ms = modeswitch_delay_ms; + if (wakeup_delay) + dmic->wakeup_delay = wakeup_delay;
snd_soc_component_set_drvdata(component, dmic);