Patchwork [meta-fsl-arm] pulseaudio: Fix mutext issue when do pause in gstreamer

login
register
mail settings
Submitter Jun Zhu
Date Aug. 7, 2014, 8:28 a.m.
Message ID <1407400121-24330-1-git-send-email-R01007@freescale.com>
Download mbox | patch
Permalink /patch/77437/
State Changes Requested
Delegated to: Otavio Salvador
Headers show

Comments

Jun Zhu - Aug. 7, 2014, 8:28 a.m.
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 the feature PTHREAD priority inheritance is the easiest
workaround for this issue.

Signed-off-by: Jun Zhu <R01007@freescale.com>
---
 .../pulseaudio/pulseaudio_5.0.bbappend             |    2 ++
 1 file changed, 2 insertions(+)
 create mode 100644 recipes-multimedia/pulseaudio/pulseaudio_5.0.bbappend
Otavio Salvador - Aug. 14, 2014, 2:41 a.m.
On Thu, Aug 7, 2014 at 5:28 AM, Jun Zhu <R01007@freescale.com> wrote:
> 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 the feature PTHREAD priority inheritance is the easiest
> workaround for this issue.
>
> Signed-off-by: Jun Zhu <R01007@freescale.com>

You need to set the PACKAGE_ARCH conditionally here, as well.

Patch

diff --git a/recipes-multimedia/pulseaudio/pulseaudio_5.0.bbappend b/recipes-multimedia/pulseaudio/pulseaudio_5.0.bbappend
new file mode 100644
index 0000000..091ffc2
--- /dev/null
+++ b/recipes-multimedia/pulseaudio/pulseaudio_5.0.bbappend
@@ -0,0 +1,2 @@ 
+
+CACHED_CONFIGUREVARS_append_mx6 = " ax_cv_PTHREAD_PRIO_INHERIT=no"