From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lars-Peter Clausen Subject: Re: [PATCH] ASoC: rt5640: change widgetsequencefordepop Date: Wed, 07 Aug 2013 09:45:13 +0200 Message-ID: <5201FB09.1080105@metafoo.de> References: <1375676343-13891-1-git-send-email-bardliao@realtek.com> <20130805144808.GG9858@sirena.org.uk> <51FFDF11.5020106@metafoo.de> <1121E117AD4ECE49880A389A396215BB935C692E0E@rtitmbs7.realtek.com.tw> <5200B7B5.7050506@metafoo.de> <1121E117AD4ECE49880A389A396215BB935C692E40@rtitmbs7.realtek.com.tw> <5200C369.6050607@metafoo.de> <1121E117AD4ECE49880A389A396215BB935C692E62@rtitmbs7.realtek.com.tw> <5200CD0D.7030007@metafoo.de> <1121E117AD4ECE49880A389A396215BB935C692E81@rtitmbs7.realtek.com.tw> <5200DE78.5060409@metafoo.de> <1121E117AD4ECE49880A389A396215BB935C692F72@rtitmbs7.realtek.com.tw> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from smtp-out-104.synserver.de (smtp-out-110.synserver.de [212.40.185.110]) by alsa0.perex.cz (Postfix) with ESMTP id 321BA260305 for ; Wed, 7 Aug 2013 09:51:51 +0200 (CEST) In-Reply-To: <1121E117AD4ECE49880A389A396215BB935C692F72@rtitmbs7.realtek.com.tw> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org To: Bard Liao Cc: Oder Chiou , "alsa-devel@alsa-project.org" , "swarren@nvidia.com" , "swarren@wwwdotorg.org" , "lgirdwood@gmail.com" , Mark Brown , Flove List-Id: alsa-devel@alsa-project.org On 08/07/2013 07:40 AM, Bard Liao wrote: > Is there any way to run an event when power up/down a snd_soc_dapm_kcontrol type widgt? > Because we need to do something with mute/unmute headphone. > e.g. > rt5640_pmu_depop is what we need when unmute headphone. > We need to set something before and after set the hp mute bit. > > If there is an event to do that, it will be easier to implement that. You can setup a event for the SND_SOC_DAPM_SWITCH, but this will run after setting the mute bit and before clearing the mute bit. - Lars