Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754828AbbFKQUx (ORCPT ); Thu, 11 Jun 2015 12:20:53 -0400 Received: from mezzanine.sirena.org.uk ([106.187.55.193]:53693 "EHLO mezzanine.sirena.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752716AbbFKQUt (ORCPT ); Thu, 11 Jun 2015 12:20:49 -0400 Date: Thu, 11 Jun 2015 17:20:28 +0100 From: Mark Brown To: Zidan Wang Cc: lgirdwood@gmail.com, perex@perex.cz, tiwai@suse.de, ckeepax@opensource.wolfsonmicro.com, lars@metafoo.de, patches@opensource.wolfsonmicro.com, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org Message-ID: <20150611162028.GT14071@sirena.org.uk> References: <880838f666b591f5ffb0de1e39df5e3734846246.1434020423.git.zidan.wang@freescale.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="FUBn+A0X9P+7IcSo" Content-Disposition: inline In-Reply-To: <880838f666b591f5ffb0de1e39df5e3734846246.1434020423.git.zidan.wang@freescale.com> X-Cookie: The end of labor is to gain leisure. User-Agent: Mutt/1.5.23 (2014-03-12) X-SA-Exim-Connect-IP: 94.175.94.161 X-SA-Exim-Mail-From: broonie@sirena.org.uk Subject: Re: [alsa-devel][PATCH 1/4] ASoC: wm8960: codec mclk should be enabled early to avoid jack detect error X-SA-Exim-Version: 4.2.1 (built Mon, 26 Dec 2011 16:24:06 +0000) X-SA-Exim-Scanned: Yes (on mezzanine.sirena.org.uk) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1721 Lines: 42 --FUBn+A0X9P+7IcSo Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Thu, Jun 11, 2015 at 07:14:33PM +0800, Zidan Wang wrote: > It will playback from speaker in the first 2 seconds, then switch to > headphone. Steps to reproduce this issue: > 1. plug out headphone and playback a wav. > 2. stop playback and wait for at least 5 seconds, then > plug in headphone and playback a wav. I'd really like to understand the logic behind this in more detail - what is the actual problem here and how does this fix it? You're moving the clock management from the bias level setting to the stream startup and teardown which doesn't seem directly related, if anything it seems like it'd be making things worse since it reduces the proportion of the time where the clock is enabled. My guess is that the jack detection needs MCLK enabling. --FUBn+A0X9P+7IcSo Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAEBCAAGBQJVebVLAAoJECTWi3JdVIfQ6m4IAIOitDwmP8F89tw67K0w0UUz MqaH5ikjzzvKVxyWJChsurfknxfEZ2gbEMhQNqA6Kc4fvSYUvdmXYSCaEXFegTkb nxR/yr2xJEerCSXo6LMPjWS/vt9IbvxHI/USaibo1x3GMG0HemzEnq6V0gMa/HXq /W1jKVPBDcv+Gax1e5gW3KNmeSCJ0kzXP/naYWlmrD3im8E00FvCEdnb03wqV0qd s//hTbci+g+8GcBq3xTx9ATsXb8XhYIZIVurJ/cT1qvpjaAA2fI+uKi+vBJL9QYB xgIFGN11Zoz8UADSjG5XhQ+bhPbbtGNh8POEP446EXfGbBZMD2r4/atD/xTbk+w= =wfoJ -----END PGP SIGNATURE----- --FUBn+A0X9P+7IcSo-- -- 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/