All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jun Zhu <R01007@freescale.com>
To: <meta-freescale@yoctoproject.org>
Cc: Jun Zhu <R01007@freescale.com>
Subject: [meta-fsl-arm][PATCH 2/3] pulseaudio: Fix mutext issue when do pause in gstreamer
Date: Tue, 29 Jul 2014 15:04:14 +0800	[thread overview]
Message-ID: <1406617455-16372-2-git-send-email-R01007@freescale.com> (raw)
In-Reply-To: <1406617455-16372-1-git-send-email-R01007@freescale.com>

Pulseaudio crashes when other program using sound:
Assertion 'pthread_mutex_unlock(&m->mutex) == 0' failed
at pulsecore/mutex-posix.c:106, function pa_mutex_unlock().

Disable PTHREAD priority inheritance feature is the easiest
workaround solutions for this issue.

Signed-off-by: Jun Zhu <R01007@freescale.com>
---
 ...dio-mutex-issue-when-do-pause-in-gstreame.patch |   34 ++++++++++++++++++++
 .../pulseaudio/pulseaudio_5.0.bbappend             |    1 +
 2 files changed, 35 insertions(+)
 create mode 100644 recipes-multimedia/pulseaudio/pulseaudio/0001-Fix-pulseaudio-mutex-issue-when-do-pause-in-gstreame.patch

diff --git a/recipes-multimedia/pulseaudio/pulseaudio/0001-Fix-pulseaudio-mutex-issue-when-do-pause-in-gstreame.patch b/recipes-multimedia/pulseaudio/pulseaudio/0001-Fix-pulseaudio-mutex-issue-when-do-pause-in-gstreame.patch
new file mode 100644
index 0000000..67bc46f
--- /dev/null
+++ b/recipes-multimedia/pulseaudio/pulseaudio/0001-Fix-pulseaudio-mutex-issue-when-do-pause-in-gstreame.patch
@@ -0,0 +1,34 @@
+From c21e24f5c53e81fc715905c54a6c82b69e397e63 Mon Sep 17 00:00:00 2001
+From: "shengjiu.wang" <b02247@freescale.com>
+Date: Thu, 3 Apr 2014 14:22:02 +0800
+Subject: [PATCH] Fix pulseaudio mutex issue when do pause in gstreamer
+
+The error log is "Assertion 'pthread_mutex_unlock(&m->mutex) == 0'
+failed at pulsecore/mutex-posix.c:106, function pa_mutex_unlock(). Aborting"
+
+This fix is a workaround base on the solution from this link "
+https://bugs.launchpad.net/ubuntu/+source/pulseaudio/+bug/932096"
+
+Upstream status: N/A
+  - It is i.MX specific
+
+Signed-off-by: shengjiu.wang <b02247@freescale.com>
+---
+ src/pulsecore/mutex-posix.c |    1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/src/pulsecore/mutex-posix.c b/src/pulsecore/mutex-posix.c
+index 36c2787..d592501 100644
+--- a/src/pulsecore/mutex-posix.c
++++ b/src/pulsecore/mutex-posix.c
+@@ -30,6 +30,7 @@
+ #include <pulsecore/macro.h>
+ 
+ #include "mutex.h"
++#undef HAVE_PTHREAD_PRIO_INHERIT
+ 
+ struct pa_mutex {
+     pthread_mutex_t mutex;
+-- 
+1.7.9.5
+
diff --git a/recipes-multimedia/pulseaudio/pulseaudio_5.0.bbappend b/recipes-multimedia/pulseaudio/pulseaudio_5.0.bbappend
index 993c340..4ea4921 100644
--- a/recipes-multimedia/pulseaudio/pulseaudio_5.0.bbappend
+++ b/recipes-multimedia/pulseaudio/pulseaudio_5.0.bbappend
@@ -5,6 +5,7 @@ FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
 
 SRC_URI_append = " file://daemon.conf \
         file://default.pa \
+        file://0001-Fix-pulseaudio-mutex-issue-when-do-pause-in-gstreame.patch \
 "
 
 do_install_append() {
-- 
1.7.9.5



  reply	other threads:[~2014-07-29  7:27 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-29  7:04 [meta-fsl-arm][PATCH 1/3] pulseaudio: Customize pulseaudio configuration for i.MX platforms Jun Zhu
2014-07-29  7:04 ` Jun Zhu [this message]
2014-07-29 13:40   ` [meta-fsl-arm][PATCH 2/3] pulseaudio: Fix mutext issue when do pause in gstreamer Otavio Salvador
2014-07-29  7:04 ` [meta-fsl-arm][PATCH 3/3] pulseaudio: Fix no sound issue after plugin/out headphone Jun Zhu
2014-07-29 13:46   ` Otavio Salvador
2014-07-29 13:37 ` [meta-fsl-arm][PATCH 1/3] pulseaudio: Customize pulseaudio configuration for i.MX platforms Otavio Salvador
2014-07-30  8:08   ` junzhu
2014-07-30 12:44     ` Otavio Salvador
2014-07-31  9:42       ` junzhu
2014-07-31 12:08         ` Otavio Salvador
2014-07-31 12:09           ` Otavio Salvador
2014-07-31 15:46             ` Lauren Post
2014-07-29 13:46 ` Daiane Angolini

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1406617455-16372-2-git-send-email-R01007@freescale.com \
    --to=r01007@freescale.com \
    --cc=meta-freescale@yoctoproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.