From mboxrd@z Thu Jan 1 00:00:00 1970 From: Patrick Lai Subject: Re: Signaling user-space through kcontrol Date: Tue, 27 Sep 2011 23:47:35 -0700 Message-ID: <4E82C307.30407@codeaurora.org> References: <4E82BB4C.1030801@codeaurora.org> <1317190544.1573.1646.camel@vkoul-udesk3> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from wolverine02.qualcomm.com (wolverine02.qualcomm.com [199.106.114.251]) by alsa0.perex.cz (Postfix) with ESMTP id 150C3103979 for ; Wed, 28 Sep 2011 08:47:44 +0200 (CEST) In-Reply-To: <1317190544.1573.1646.camel@vkoul-udesk3> 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: Vinod Koul Cc: alsa-devel , Mark Brown , Liam Girdwood List-Id: alsa-devel@alsa-project.org On 9/27/2011 11:15 PM, Vinod Koul wrote: > On Tue, 2011-09-27 at 23:14 -0700, Patrick Lai wrote: >> Hi Mark, >> >> The codec I am working on, beside headset detection, also have other >> type of events to be propagated to user space. Per our discussion at >> IPC, there is way to signal user-space through kcontrol. Is it through >> calling snd_ctl_notify()? What is the ALSA library API to intercept the >> event? Is there an sample user-space code which gets kcontrol event? >> > What events do you have in mind? > Main one is detection of short circuiting headphone For this case, there is no need for extra payload. In case of there is need to pass back some payload, I presume user-space application can simply call the get function upon receiving notification. Thanks Patrick -- Sent by an employee of the Qualcomm Innovation Center, Inc. The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum.