aboutsummaryrefslogtreecommitdiffstats
path: root/meta-mentor-staging/recipes-multimedia/alsa/alsa-lib/fix_dshare_status.patch
blob: 4c6409a98e157940502078133cf879b87223b46d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
Upstream-Status: Pending

Alsa plugin dshare is reporting incorrect stream state when it detects underrun
Update stream state from pcm handle than slave pcm of dshare plugin

Signed-off-by: Sanjeev Chugh <sanjeev_chugh@mentor.com>
Signed-off-by: Mikhail Durnev <mikhail_durnev@mentor.com>

Index: alsa-lib-1.1.3/src/pcm/pcm_dshare.c
===================================================================
--- alsa-lib-1.1.3.orig/src/pcm/pcm_dshare.c	2017-03-26 09:38:40.150371765 +0500
+++ alsa-lib-1.1.3/src/pcm/pcm_dshare.c	2017-03-26 09:40:03.878373271 +0500
@@ -226,7 +226,7 @@
 	snd_pcm_direct_t *dshare = pcm->private_data;
 
 	memset(status, 0, sizeof(*status));
-	snd_pcm_status(dshare->spcm, status);
+	snd_pcm_status(pcm, status);
 
 	switch (dshare->state) {
 	case SNDRV_PCM_STATE_DRAINING: