Patch "ASoC: do not close shared backend dailink" has been added to the 3.18-stable tree
Subsystems (3)
This is a note to let you know that I've just added the patch titled
ASoC: do not close shared backend dailink
to the 3.18-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
asoc-do-not-close-shared-backend-dailink.patch
and it can be found in the queue-3.18 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From
b1cd2e34c69a2f3988786af451b6e17967c293a0Mon Sep 17 00:00:00 2001
From: Banajit Goswami <[email protected]>
Date: Fri, 14 Jul 2017 23:15:05 -0700
Subject: ASoC: do not close shared backend dailink
From: Banajit Goswami <[email protected]>
commit b1cd2e34c69a2f3988786af451b6e17967c293a0 upstream.
Multiple frontend dailinks may be connected to a backend dailink at the same time. When one of frontend dailinks is closed, the associated backend dailink should not be closed if it is connected to other active frontend dailinks. Change ensures that backend dailink is closed only after all connected frontend dailinks are closed.
--- sound/soc/soc-pcm.c | 4 ++++ 1 file changed, 4 insertions(+)
sound/soc/soc-pcm.c +4 -0
@@ -163,6 +163,10 @@ int dpcm_dapm_stream_event(struct snd_sodev_dbg (be->dev,"ASoC: BE %s event %d dir %d\n" , be->dai_link->name, event, dir); +if ((event ==SND_SOC_DAPM_STREAM_STOP ) && + (be->dpcm[dir].users >=1 )) +continue ; +snd_soc_dapm_stream_event (be, dir, event); }
Patches currently in stable-queue which might be from [email protected] are
queue-3.18/asoc-do-not-close-shared-backend-dailink.patch