From: Michael Trimarchi Subject: Fixed Re: amp power down event (resend with the correct email) Date: Tue, 10 Aug 2010 09:08:15 +0200 Message-ID: <4C60FADF.8010608@gandalf.sssup.it> References: <4C604381.2080000@gandalf.sssup.it> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from sssup.it (ms01.sssup.it [193.205.80.99]) by alsa0.perex.cz (Postfix) with ESMTP id 15E692447D for ; Tue, 10 Aug 2010 09:08:17 +0200 (CEST) Received: from [10.30.3.4] (HELO granpasso.retis) by sssup.it (CommuniGate Pro SMTP 5.3.2) with ESMTPS id 62421710 for alsa-devel@alsa-project.org; Tue, 10 Aug 2010 09:01:06 +0200 Received: from [10.30.3.245] (dhcp245.retis [10.30.3.245]) by granpasso.retis (8.14.4/8.14.4) with ESMTP id o7A78FgD046738 for ; Tue, 10 Aug 2010 09:08:16 +0200 (CEST) (envelope-from trimarchi@gandalf.sssup.it) In-Reply-To: <4C604381.2080000@gandalf.sssup.it> 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: alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org Hi all Michael Trimarchi wrote: > Hi all, > > I'm t rying to unde rstand when the event a re called. > > ... > SND_SOC_DAPM_SPK("Front Speaker", amp_event), > I have fixed looking in the kernel code. Change this to: SND_SOC_DAPM_PRE("Front Speaker", amp_event), Is it correct? Michael > ... > > My idea was: > > - set the mixe r > - open st ream > > amp_event: event => > [ 169.820558] ON > > - close st ream > > and receive the event => OFF. In the aplay example this happen > afte r some seconds but in my application I don't receive the OFF > event. What is w rong? > > Michael > > _______________________________________________ > Alsa-devel mailing list > Alsa-devel@alsa-project.org > http://mailman.alsa-project.org/mailman/listinfo/alsa-devel > >