From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S969449AbdAFXIG (ORCPT ); Fri, 6 Jan 2017 18:08:06 -0500 Received: from mail-wj0-f194.google.com ([209.85.210.194]:34858 "EHLO mail-wj0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965525AbdAFXH6 (ORCPT ); Fri, 6 Jan 2017 18:07:58 -0500 From: Pali =?utf-8?q?Roh=C3=A1r?= To: Tony Lindgren , Peter Ujfalusi , Jarkko Nikula , Liam Girdwood , Mark Brown Subject: Nokia N900 headset detection & MIC Bias + TVOUT Date: Sat, 7 Jan 2017 00:07:49 +0100 User-Agent: KMail/1.13.7 (Linux/4.9.0-040900-generic; KDE/4.14.2; x86_64; ; ) Cc: "Lars-Peter Clausen" , Aaro Koskinen , Nishanth Menon , Sebastian Reichel , Pavel Machek , Ivaylo Dimitrov , joerg Reisenweber , linux-omap@vger.kernel.org, linux-kernel@vger.kernel.org MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1799285.OAnZPb9qbT"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <201701070007.49137@pali> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --nextPart1799285.OAnZPb9qbT Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Hi! =46or jack cable and headset detection in Nokia N900 I would need to=20 enable/disable MIC Bias and also enable/disable TVOUT output. All that is needed in N900 sound driver, file sound/soc/omap/rx51.c. Can=20 you help me which functions should I call to enable/disable it=20 correctly? In headset detection code I need to be sure that nobody=20 (other kernel drivers or userspace via alsamixer) except current=20 function could change Bias settings. MIC Bias is controlled by MICBIAS_CTRL in aic34 'B' part codec, file=20 tlv320aic3x.c. And according to RX-51 Schematics TVOUT is controlled by OMAP3430 pins:=20 TV_OUT1 and TV_VFB1. I have not found any references to them in kernel,=20 just in omap trm. How is OMAP3430's TV_OUT1 controlled? (Existing code in Maemo 2.6.28 kernel is doing it by big hack - exports=20 function which directly modify MICBIAS_CTRL) =2D-=20 Pali Roh=C3=A1r pali.rohar@gmail.com --nextPart1799285.OAnZPb9qbT Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iEYEABECAAYFAlhwI0UACgkQi/DJPQPkQ1Jl4ACeLNJyw5K5ptyPEpEVNggI8x+I dtMAoJtWA56RHD5O/MTq1Th7hhlIA/Yt =MEFA -----END PGP SIGNATURE----- --nextPart1799285.OAnZPb9qbT--