drivers: dmic: set initial state as off
With this patch DMIC device after init will be in OFF state. When power domain will be powered-up device will switch into suspended state and change it to active only when is used. Signed-off-by: Tomasz Leman <tomasz.m.leman@intel.com>
This commit is contained in:
parent
0a00253313
commit
98b89d5f9a
|
@ -888,8 +888,12 @@ static int dai_dmic_initialize_device(const struct device *dev)
|
|||
dai_dmic_irq_handler,
|
||||
DEVICE_DT_INST_GET(0),
|
||||
0);
|
||||
if (pm_device_on_power_domain(dev)) {
|
||||
pm_device_init_off(dev);
|
||||
} else {
|
||||
pm_device_init_suspended(dev);
|
||||
}
|
||||
|
||||
pm_device_init_suspended(dev);
|
||||
return pm_device_runtime_enable(dev);
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue