asoc: swr-dmic: add ignore_suspend for VA widgets
Add ignore_suspend for SWR DMIC VA widgets. Change-Id: Ida2c1c4018fcb102a41c905e813ea053b0917b03 Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org>
This commit is contained in:

committed by
Gerrit - the friendly Code Review server

parent
a6040adea6
commit
c5d799983d
@@ -1,6 +1,6 @@
|
|||||||
// SPDX-License-Identifier: GPL-2.0-only
|
// SPDX-License-Identifier: GPL-2.0-only
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2019-2020, The Linux Foundation. All rights reserved.
|
* Copyright (c) 2019-2021, The Linux Foundation. All rights reserved.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <linux/module.h>
|
#include <linux/module.h>
|
||||||
@@ -428,6 +428,21 @@ static int swr_dmic_codec_probe(struct snd_soc_component *component)
|
|||||||
strlcat(w_name, " SWR_DMIC_OUTPUT", sizeof(w_name));
|
strlcat(w_name, " SWR_DMIC_OUTPUT", sizeof(w_name));
|
||||||
snd_soc_dapm_ignore_suspend(dapm, w_name);
|
snd_soc_dapm_ignore_suspend(dapm, w_name);
|
||||||
|
|
||||||
|
memset(w_name, 0, sizeof(w_name));
|
||||||
|
strlcpy(w_name, component->name_prefix, sizeof(w_name));
|
||||||
|
strlcat(w_name, " VA_SWR_DMIC", sizeof(w_name));
|
||||||
|
snd_soc_dapm_ignore_suspend(dapm, w_name);
|
||||||
|
|
||||||
|
memset(w_name, 0, sizeof(w_name));
|
||||||
|
strlcpy(w_name, component->name_prefix, sizeof(w_name));
|
||||||
|
strlcat(w_name, " SMIC_VA_PORT_EN", sizeof(w_name));
|
||||||
|
snd_soc_dapm_ignore_suspend(dapm, w_name);
|
||||||
|
|
||||||
|
memset(w_name, 0, sizeof(w_name));
|
||||||
|
strlcpy(w_name, component->name_prefix, sizeof(w_name));
|
||||||
|
strlcat(w_name, " SWR_DMIC_VA_OUTPUT", sizeof(w_name));
|
||||||
|
snd_soc_dapm_ignore_suspend(dapm, w_name);
|
||||||
|
|
||||||
snd_soc_dapm_sync(dapm);
|
snd_soc_dapm_sync(dapm);
|
||||||
|
|
||||||
swr_dmic->nblock.notifier_call = swr_dmic_event_notify;
|
swr_dmic->nblock.notifier_call = swr_dmic_event_notify;
|
||||||
|
Reference in New Issue
Block a user