From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kevin Hilman Subject: Re: HDA intel, wired headset w/mic, jack mic detect Date: Wed, 29 Feb 2012 11:08:13 -0800 Message-ID: <87zkc1cvaa.fsf@ti.com> References: <87ehtlwen3.fsf@ti.com> <4F472D4F.3000904@canonical.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from na3sys009aog102.obsmtp.com (na3sys009aog102.obsmtp.com [74.125.149.69]) by alsa0.perex.cz (Postfix) with SMTP id 2F6DF104016 for ; Wed, 29 Feb 2012 20:08:29 +0100 (CET) Received: by mail-pw0-f44.google.com with SMTP id wz17so3816141pbc.31 for ; Wed, 29 Feb 2012 11:08:15 -0800 (PST) In-Reply-To: (Raymond Yau's message of "Wed, 29 Feb 2012 23:05:25 +0800") 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: Raymond Yau Cc: alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org Raymond Yau writes: > Does your headset/mic has a TRRS (Tip, ring, ring, sleeve) connector > instead of TRS (Tip, ring, sleeve) connector ? Yes. It's TRRS. But below, I tried with a normal stero headset (no mic) which has a TRS connector too. > You can use David's hda-jack-sense-test to find out any jack sense at > the node of External mic when you plug the headset , if not , you may > need to modify unsol event of headphone to select the external mic , > internal mic. Here are the results of hda-jack-sense-test Nothing plugged in: # hda-jack-sense-test -a Pin 0x09 (Green HP Out): present = No Pin 0x0a (Not connected): present = No Pin 0x0b (Internal Speaker): present = No Pin 0x0c (Not connected): present = No Pin 0x0d (Internal Mic): present = No Pin 0x0e (Not connected): present = No Pin 0x0f (Not connected): present = No Pin 0x10 (Not connected): present = No Pin 0x12 (Not connected): present = No Pin 0x15 (Not connected): present = No With regular stereo headphones with (*no* mic, TRS): # hda-jack-sense-test -a Pin 0x09 (Green HP Out): present = Yes Pin 0x0a (Not connected): present = No Pin 0x0b (Internal Speaker): present = No Pin 0x0c (Not connected): present = No Pin 0x0d (Internal Mic): present = No Pin 0x0e (Not connected): present = No Pin 0x0f (Not connected): present = No Pin 0x10 (Not connected): present = No Pin 0x12 (Not connected): present = No Pin 0x15 (Not connected): present = No Finally, plugging the headset w/mic (TRRS): root@eze:~# hda-jack-sense-test -a Pin 0x09 (Green HP Out): present = Yes Pin 0x0a (Not connected): present = No Pin 0x0b (Internal Speaker): present = No Pin 0x0c (Not connected): present = No Pin 0x0d (Internal Mic): present = No Pin 0x0e (Not connected): present = No Pin 0x0f (Not connected): present = No Pin 0x10 (Not connected): present = No Pin 0x12 (Not connected): present = No Pin 0x15 (Not connected): present = No As you can see, there's no detected difference between the TRS and TRRS headsets, which is the root of the problem. Since this is a MacBookAir, it dual-boots OSX, and the detection works just fine using the same headset under OSX. Kevin