ASoC: core: Skip suspending widgets with ignore flag
For wigdets which have set the suspend ignore flag asoc framework shouldn't mark them as dirty when ASoC suspend function is called. This change adds check to skip suspending the widgets with the flag set. Signed-off-by: Gopikrishnaiah Anandan <agopik@codeaurora.org> Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
This commit is contained in:
parent
bd0a8e5b32
commit
c1ba99c89b
1 changed files with 2 additions and 0 deletions
|
@ -282,6 +282,8 @@ void dapm_mark_endpoints_dirty(struct snd_soc_card *card)
|
|||
mutex_lock(&card->dapm_mutex);
|
||||
|
||||
list_for_each_entry(w, &card->widgets, list) {
|
||||
if (w->ignore_suspend)
|
||||
continue;
|
||||
if (w->is_ep) {
|
||||
dapm_mark_dirty(w, "Rechecking endpoints");
|
||||
if (w->is_ep & SND_SOC_DAPM_EP_SINK)
|
||||
|
|
Loading…
Add table
Reference in a new issue