From: Takashi Iwai Subject: Re: External PCM hook SO is dlclosed after calling install, making it hard to have hooks in it Date: Tue, 30 Jun 2009 14:54:26 +0200 Message-ID: References: <20090629221101.GD23025@home.pavel.comp> <20090630062054.GE23025@home.pavel.comp> <20090630063804.GF23025@home.pavel.comp> <20090630112451.GG23025@home.pavel.comp> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mx2.suse.de (cantor2.suse.de [195.135.220.15]) by alsa0.perex.cz (Postfix) with ESMTP id 7873F24353 for ; Tue, 30 Jun 2009 14:54:26 +0200 (CEST) In-Reply-To: <20090630112451.GG23025@home.pavel.comp> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: alsa-devel-bounces@alsa-project.org Errors-To: alsa-devel-bounces@alsa-project.org To: Paul Fertser Cc: Joerg Reisenweber , alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org At Tue, 30 Jun 2009 15:24:51 +0400, Paul Fertser wrote: > > On Tue, Jun 30, 2009 at 11:21:39AM +0200, Takashi Iwai wrote: > > Paul Fertser wrote: > > > TBH, i've not tried but i'm pretty sure it will fix the problem. I > > > tried with dlopen workaround (to increase the refcounter) in install > > > function and i tried with LD_PRELOAD'ing the library before starting > > > an alsa app; both workarounds worked. > > > > OK, I fixed this on GIT now. > > Wow! Thanks a lot for this fast and proper fix! I compile-tested it, > will try running later, but it should be ok. :) > > While reading the diff i saw you introduced several unused variables, > patch attached. Thanks, applied now. Takashi