From patchwork Thu Mar 29 18:40:07 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pavel Machek X-Patchwork-Id: 10316039 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 586636037E for ; Thu, 29 Mar 2018 18:40:19 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4BF1F2A4AD for ; Thu, 29 Mar 2018 18:40:19 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3F8DA2A498; Thu, 29 Mar 2018 18:40:19 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 31FF42A492 for ; Thu, 29 Mar 2018 18:40:17 +0000 (UTC) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 7C95E2671AB; Thu, 29 Mar 2018 20:40:15 +0200 (CEST) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id B763C2671B9; Thu, 29 Mar 2018 20:40:12 +0200 (CEST) Received: from atrey.karlin.mff.cuni.cz (atrey.karlin.mff.cuni.cz [195.113.26.193]) by alsa0.perex.cz (Postfix) with ESMTP id D24142671A9 for ; Thu, 29 Mar 2018 20:40:09 +0200 (CEST) Received: by atrey.karlin.mff.cuni.cz (Postfix, from userid 512) id 269C380377; Thu, 29 Mar 2018 20:40:08 +0200 (CEST) Date: Thu, 29 Mar 2018 20:40:07 +0200 From: Pavel Machek To: Tony Lindgren Message-ID: <20180329184007.GA27688@amd> References: <20180327121441.GH29239@sirena.org.uk> <20180327222237.wcx2aqznvdrvbaa5@earth.universe> <20180328022910.GM29239@sirena.org.uk> <20180328140219.f6667up5evrrafkv@earth.universe> <20180329014507.GM5700@atomide.com> <20180329133613.khldv72w3zj63vsk@earth.universe> <20180329135904.GN5700@atomide.com> <20180329154600.qhels5fqzzg364gj@earth.universe> <20180329163716.GA20743@amd> <20180329164113.GR5700@atomide.com> MIME-Version: 1.0 In-Reply-To: <20180329164113.GR5700@atomide.com> User-Agent: Mutt/1.5.23 (2014-03-12) Cc: devicetree@vger.kernel.org, alsa-devel@alsa-project.org, kernel@collabora.com, Dan Williams , linux-kernel@vger.kernel.org, Takashi Iwai , Liam Girdwood , Rob Herring , Mark Brown , Sebastian Reichel , linux-omap@vger.kernel.org, Lee Jones Subject: Re: [alsa-devel] omap4-droid4: voice call support was Re: [PATCHv5, 5/5] ARM: dts: omap4-droid4: add soundcard X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" 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 X-Virus-Scanned: ClamAV using ClamSMTP On Thu 2018-03-29 09:41:13, Tony Lindgren wrote: > * Pavel Machek [180329 16:38]: > > Hi! > > > > > > > > And I do hear a voice talking over the speakerphone :) Sorry have not tested the > > > > > > mic yet.. > > > > > > > > And calling a person I can hear the other end but the mic is > > > > not working. So maybe I need to tweak the alsamixer settings > > > > too for mic? > > > > > > Your override kills most settings from alsamixer. You can try to > > > just override CPCAP_REG_VAUDIOC, CPCAP_REG_CC and CPCAP_REG_CDI > > > and setup everything else with alsamixer. > > > > I tried that, and could not get it to work; will try some more. > > > > Is there easy way to get the register dump? > > For mainline kernel: > > # cat /sys/kernel/debug/regmap/spi0.0/registers > > For Android v3.0.8 kernel, see cpcaprw on github. Thanks. I got call working including outgoing audio: in capture settings, right->mic 1, Mic1 + Mic2 in alsamixer -> 100%. But I had the other phone muted, so I don't yet know if such call would be of usable quality. Thanks! Pavel --- tony.as 2018-03-29 18:29:41.715742372 +0000 +++ mic.as 2018-03-29 18:33:40.910759649 +0000 @@ -258,8 +258,8 @@ 0404: 0000 0408: 0000 040c: 0000 -0410: 0014 -0414: 0104 +0410: 0004 +0414: 0105 0418: 000e 041c: 00ff 0420: 44d3 @@ -515,8 +515,8 @@ 0808: ae0a 080c: 0078 0810: 003c -0814: 0cc0 -0818: 0610 +0814: 0cc4 +0818: 061f 081c: 0006 0820: 0b2c 0824: 0606 @@ -641,13 +641,13 @@ 0a00: 0000 0a04: 23b6 0a08: 002b -0a0c: 1530 +0a0c: 18ec 0a10: 0000 -0a14: 4e54 -0a18: 0036 +0a14: 6a90 +0a18: 0040 0a1c: 0000 0a20: 0000 -0a24: 0738 +0a24: 0b40 0a28: 0000 0a2c: 0000 0a30: 0000 @@ -769,12 +769,12 @@ 0c00: 9004 0c04: 0136 0c08: 0000 -0c0c: 02fb +0c0c: 02fc 0c10: 01da -0c14: 015b -0c18: 0300 -0c1c: 0271 -0c20: 01e5 +0c14: 015a +0c18: 02fe +0c1c: 0270 +0c20: 01f5 0c24: 0000 0c28: 0204 0c2c: 0205