From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Henningsson Subject: Re: pulseaudio external mic jack detection - ASoC based card Date: Wed, 22 Jul 2015 14:28:54 +0200 Message-ID: <55AF8C86.4070106@canonical.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit Return-path: Received: from youngberry.canonical.com (youngberry.canonical.com [91.189.89.112]) by alsa0.perex.cz (Postfix) with ESMTP id 24D162606F6 for ; Wed, 22 Jul 2015 14:28:54 +0200 (CEST) In-Reply-To: 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: maruthi srinivas , alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org On 2015-07-08 13:03, maruthi srinivas wrote: > Hi, > > I have a issue with mic jack status in Ubuntu "sound settings" UI. When > external mic is removed, UI still shows Mic. > When compared to HD Azalia driver, UI shouldn't show any external Mic jack > information, if it is removed. > > Codec driver I use reports jack status properly and uses > snd_soc_jack_report(). > /proc/interrupts, /dev/input/eventX reflects jack activity. But the same > is not reflected in UI. > > I want to know how pulseaudio detect jack status for drivers which follow > ALSA SoC architecture. > Does it read from any event from /dev/input/eventX ? > > Please help in understanding. Has this not been unified in (very) recent kernels, so that ASoC also creates kcontrols, or at least has the possibility to do so? Also, out of curiousity, what machine is this? -- David Henningsson, Canonical Ltd. https://launchpad.net/~diwic