Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756265AbbFPHta (ORCPT ); Tue, 16 Jun 2015 03:49:30 -0400 Received: from mail-bl2on0130.outbound.protection.outlook.com ([65.55.169.130]:32169 "EHLO na01-bl2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751928AbbFPHtW (ORCPT ); Tue, 16 Jun 2015 03:49:22 -0400 Authentication-Results: spf=fail (sender IP is 192.88.158.2) smtp.mailfrom=freescale.com; vger.kernel.org; dkim=none (message not signed) header.d=none; Date: Tue, 16 Jun 2015 15:47:10 +0800 From: Zidan Wang To: Charles Keepax CC: , , , , , , , Subject: Re: [alsa-devel][PATCH 2/4] ASoC: wm8960: support configure headphone jack detect pin and polarity from device tree Message-ID: <20150616074704.GA9262@shlinux2> References: <20150612125005.GI32730@opensource.wolfsonmicro.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20150612125005.GI32730@opensource.wolfsonmicro.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-EOPAttributedMessage: 0 X-Microsoft-Exchange-Diagnostics: 1;BN1BFFO11FD044;1:z9GPFtMnMH9bR35Ck6UP1ptrmC8KzOs5epByhLiN5cAH+/24GCG8TyDAxI//vyjiudWAqG5kP954SbbEZSACtyqQFI0fNF9lUm8+e2Wa0nnRZrm8x/HJ81VHNJmYt4xce3tJXIWPfg1+Bo/aS7Sv0H3fvnwsftfw0C2ulZH7RwNg5KB9Hb0D1A9fWaBjhDIyJIqGjEjJAj6xIik1U1Cx6ywGyyvLE/8L+beR57GDJHE7QRDhWUj4Z99yNb+NfB2Nz/g2w+lMwGQ4PWfURtLvI5J6vn7zgBGBHtmEOl4kiiBrY1G2SmZ+HzXAJ/uSZ06fMK4df2OVGcBCWbNtNuvAtg== X-Forefront-Antispam-Report: CIP:192.88.158.2;CTRY:US;IPV:NLI;EFV:NLI;SFV:NSPM;SFS:(10019020)(6009001)(2980300002)(339900001)(24454002)(199003)(189002)(164054003)(51704005)(54356999)(33716001)(77156002)(83506001)(50466002)(5001960100002)(110136002)(4001350100001)(50986999)(76176999)(46102003)(189998001)(105606002)(2950100001)(33656002)(106466001)(77096005)(97756001)(46406003)(19580405001)(19580395003)(85426001)(104016003)(86362001)(6806004)(23726002)(87936001)(47776003)(92566002);DIR:OUT;SFP:1102;SCL:1;SRVR:BY2PR03MB288;H:az84smr01.freescale.net;FPR:;SPF:Fail;MLV:sfv;A:1;MX:1;LANG:en; X-Microsoft-Exchange-Diagnostics: 1;BY2PR03MB288;2:1ku6zFOYVO/o7phs/wi7Cz1vzCIyBtOF6SArp8VUcK3/9bwL2NIW2JuyDDx51GJ5;2:CoDN0dNrP8mZdY6ZlITzcfl7DnMHrsasrr/aazH1D9Xf1h+ZrcP/+yQ2Z3NVTKC6jK4b+W5M3KL4k4JzCHc7gAlZEsFnZZzchMWXZR4+Y2up1PdQfm64AivTZXoNVvAOXpmaeQndTyr1ScwVjqtfitxOBi8z1APNfx0wlrMDWr+rkw2wh+8UdIljll7/olthEYUwSQWhILv5DXRYVuo1Jn27+Q8s7Ejh3i+unMwPbX0=;6:N/EOIn6g8KcihT399HAfTbKE6WVhIIXV+dPx/cbZeWPp8QFFtgGFcr5e902xnoKkU/QaNDUTfHXwKHp1iVezqdc8pkmKzmP3jpfuaaupKlCje2F2nzwy6w1pRlkctR5Y5aVITvTVoR2Y6i4Prdjxax1kF0FXs/WZB2nD4arnS1PWlIeyG9GSV+7Ha5ls/hvrAIszQEQ7Z2SOhnuSjikQAtaBVGWmHClzyztCxrgqC8WhSKFgOFPTN+6pE5f85hFjGur3GiR2sMQILZVnDaZNnRpjVbaZ/N+rp3C7EcxL2YOicNa+pinS5JvMtPADnIf03BuW2umrZNvIJwszWSoE7w==;3:0y7iaW2npPcJVUOWxe2xhSQBs99NHZ78eHMP5d5s6C6907YuXRd/NNGykBBiIFtAh8KJ9PeGGeiKm5ODvCvAFCHpj1p4JYBgEDtpRepvvibwQkSEz+xSu4FVQOk0ylIDEsVcVgDgmHjt8P0UyQqHPmwLEZjcHOzfPlsJOocgtV7tVFTGELlESEgvtKzJUIaCKFAqT8gKJUmrRGk5e/VInwI61dv66CAeDG3dyIU5tvpaloptoCaP4hVcaEuYCPVUCXIWGiXP0khxMUo/hhKuWjpbQ3HLPQzk8o/nKAwmkY7Fj0VJhKTYfSNuQihzRP5l X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BY2PR03MB288; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(601004)(5005006)(520003)(3002001);SRVR:BY2PR03MB288;BCL:0;PCL:0;RULEID:;SRVR:BY2PR03MB288; X-Forefront-PRVS: 06098A2863 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;BY2PR03MB288;9:V8vTyNasOvhirk/TGim6ibO4eBN5HnmyUuNDYN6Kf7J?= =?us-ascii?Q?pGyiqkJ7RJHQEp7bWE+P3WPb4Je9Sfjkm0AUOMSE/aVGJdS9+ckIsBWnMpkc?= =?us-ascii?Q?u3ZFD6bBvYJYjkYV//WyJ2SOEA7HFHBGH/3q0zDaNJ/HeTj/Ufd1EdCV41bC?= =?us-ascii?Q?Do9e1O28EK61pZy/Z3msJSB/fPq5DDms8uWqn4jN0ANmMrnJs3cIlvvJOAwD?= =?us-ascii?Q?RaZ6Ka6W/J5X3vPceHr3ineHnhqd5cBXKqUFzotVAqasgbzwkwa3MBrRoufh?= =?us-ascii?Q?buHqit7QDzmBszsbQGNhAxp5pYdmMT9wInYkRvLOUMynLpfHSPBAfR4beU05?= =?us-ascii?Q?0+oAjPfBH7/D9yfLsYHxaJ/9K4UY4AmtQiItAknbxaextOqJI9qvhkmcyy6k?= =?us-ascii?Q?fNPiDU0/4B5WJNvtLvkxfpeTunUCtKp+DVpf308l7vT1NdQeAI+uKYvHLZGS?= =?us-ascii?Q?L6jTIMseO6+Zi/h2eUD9M3frAHrhU5lKTSBOnNLl9nHDg7X+3cLu+4+QZCq0?= =?us-ascii?Q?ztXGpf4C6StN95pWu4qimOLntumdeezWR9cyxATilh8/MOIcPfvh3+fu5l2R?= =?us-ascii?Q?mICVp4DJzmr2Yu9WFs3NoFab+ebrwF2x1pk2G0Potwnodz5sd277MBOnbXTy?= =?us-ascii?Q?I6IpMH/sbD2Mf6gPF6KqUOT3ILzEkIg0FZcq5fZMVAvZFV9TYWj792h3kHFu?= =?us-ascii?Q?Kk0FDQs5joqhUPiXGgrKfp0Oie2yQGnIAzN2wKruvlY05RwqavPPMsDGc5f0?= =?us-ascii?Q?FOMHoJFxMbObCtpCfRxbk9ImCa5txRwetaIIycW3ASAmyrW0gmLThWkGlO22?= =?us-ascii?Q?gj4FyOESllvJnllaghDR/CaAZKRg2VYRKUke6UnZtQ+zSc/FkPDSO2+EeSTH?= =?us-ascii?Q?D52i9EwDTjmtxBfkeQfxLDo44ZaghuIdYn5sO8f1v8y3mo0XndDMJkQhCx5K?= =?us-ascii?Q?ZfHZ4cspdD05JNUKNiBoqXyGJ1U8nlVrlVxTXzA=3D=3D?= X-Microsoft-Exchange-Diagnostics: 1;BY2PR03MB288;3:3suOn0AnTPTG3wyf4MmgoN7qQ4enUvEvB2l9nni2x81K240wmhLuHOZjaQiqN4wbvy3NRwftDVg7vo9Q2tWcuvbhPWPAtm02x7Mc/DEy1dl36ozt8YwPt94rZp4CscsS2hbjUHEMPrUGYM4U5yfwmw==;10:Fjp53iGQ+jJAuLwV3tJpmZv7Kdff9PaR3X9r8LwtY6tuT3dCAHda/5o7zDECPrUMX/pEEwc4elDjrn/5jfj+dOTfYY8rGuOl1dhzsWiYudI=;6:QLSwdrK0jMyGMKlwH/dj3yOTcMyxoUkr9//mxgpJqrXdb34iwhCCZN6DjB27wIeA X-OriginatorOrg: freescale.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Jun 2015 07:49:18.6006 (UTC) X-MS-Exchange-CrossTenant-Id: 710a03f5-10f6-4d38-9ff4-a80b81da590d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=710a03f5-10f6-4d38-9ff4-a80b81da590d;Ip=[192.88.158.2];Helo=[az84smr01.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY2PR03MB288 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1390 Lines: 33 On Fri, Jun 12, 2015 at 01:50:05PM +0100, Charles Keepax wrote: > On Thu, Jun 11, 2015 at 07:14:34PM +0800, Zidan Wang wrote: > > The ADCLRC/GPIO1, LINPUT3/JD2 and RINPUT3/JD3 pins can be selected as > > headphone jack detect inputs to automatically disable the speaker output > > and enable the headphone. > > > > Signed-off-by: Zidan Wang > > --- > > This feels like this is missing some iteraction with DAPM, there > are DAPM widgets that represent both the Speaker and the > Headphone, in the case this feature is in use the power state > DAPM shows may no longer accurately reflects the actual power > state of the device. > > That said I have no idea if the registers update on the chip to > reflect this change (my guess is that they don't). I am not > really sure what the correct way to handle this sort of hardware > output switching would be in DAPM. > > Thanks, > Charles Yes, there are no registers represent that it is playback from headphone or speaker. So the hardware should connect the headphone detect output to CPU GPIO pin instead of the codec headphone detect pin? Best Regards, Zidan Wang -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/