From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id A188CE007D9; Tue, 29 Jul 2014 00:27:37 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_NONE, SPF_HELO_PASS autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no * trust * [207.46.163.190 listed in list.dnswl.org] * -0.0 SPF_HELO_PASS SPF: HELO matches SPF record * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] Received: from na01-bn1-obe.outbound.protection.outlook.com (mail-bn1blp0190.outbound.protection.outlook.com [207.46.163.190]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 24CA4E007D3 for ; Tue, 29 Jul 2014 00:27:33 -0700 (PDT) Received: from BY2PR03CA071.namprd03.prod.outlook.com (10.141.249.44) by DM2PR03MB416.namprd03.prod.outlook.com (10.141.84.152) with Microsoft SMTP Server (TLS) id 15.0.990.7; Tue, 29 Jul 2014 07:11:52 +0000 Received: from BL2FFO11FD048.protection.gbl (2a01:111:f400:7c09::172) by BY2PR03CA071.outlook.office365.com (2a01:111:e400:2c5d::44) with Microsoft SMTP Server (TLS) id 15.0.995.14 via Frontend Transport; Tue, 29 Jul 2014 07:11:51 +0000 Received: from tx30smr01.am.freescale.net (192.88.168.50) by BL2FFO11FD048.mail.protection.outlook.com (10.173.161.210) with Microsoft SMTP Server (TLS) id 15.0.990.10 via Frontend Transport; Tue, 29 Jul 2014 07:11:50 +0000 Received: from r01007-02.ap.freescale.net (R01007-02-010192241030.ap.freescale.net [10.192.241.30]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id s6T7BkTs022635; Tue, 29 Jul 2014 00:11:49 -0700 From: Jun Zhu To: Date: Tue, 29 Jul 2014 15:04:14 +0800 Message-ID: <1406617455-16372-2-git-send-email-R01007@freescale.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1406617455-16372-1-git-send-email-R01007@freescale.com> References: <1406617455-16372-1-git-send-email-R01007@freescale.com> X-EOPAttributedMessage: 0 X-Forefront-Antispam-Report: CIP:192.88.168.50; CTRY:US; IPV:CAL; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(6009001)(189002)(199002)(48376002)(85306003)(97736001)(88136002)(102836001)(47776003)(64706001)(50466002)(93916002)(87936001)(81342001)(92726001)(104166001)(104016003)(81542001)(92566001)(89996001)(83072002)(99396002)(20776003)(106466001)(229853001)(110136001)(87286001)(85852003)(46102001)(50986999)(62966002)(77982001)(76482001)(2351001)(83322001)(107046002)(68736004)(36756003)(19580395003)(44976005)(15975445006)(50226001)(80022001)(74662001)(6806004)(95666004)(79102001)(105606002)(77156001)(19580405001)(21056001)(26826002)(74502001)(76176999)(31966008)(4396001)(84676001); DIR:OUT; SFP:; SCL:1; SRVR:DM2PR03MB416; H:tx30smr01.am.freescale.net; FPR:; MLV:ovrnspm; PTR:InfoDomainNonexistent; MX:1; LANG:en; MIME-Version: 1.0 X-Microsoft-Antispam: BCL:0;PCL:0;RULEID: X-Forefront-PRVS: 0287BBA78D Received-SPF: Fail (: domain of freescale.com does not designate 192.88.168.50 as permitted sender) receiver=; client-ip=192.88.168.50; helo=tx30smr01.am.freescale.net; Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=junzhu@freescale.com; X-OriginatorOrg: freescale.com Cc: Jun Zhu Subject: [meta-fsl-arm][PATCH 2/3] pulseaudio: Fix mutext issue when do pause in gstreamer X-BeenThere: meta-freescale@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Usage and development list for the meta-fsl-* layers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Jul 2014 07:27:37 -0000 Content-Type: text/plain 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 --- ...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" +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 +--- + 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 + + #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