Received: by 10.213.65.68 with SMTP id h4csp1629759imn; Sun, 1 Apr 2018 10:31:46 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/FrVYvS4fnuVoq2anSunUM7xBhkyFGqFn2bZlTmr2ZXmfTxrzA2dQNF6Ne8iVsh44dh5u9 X-Received: by 10.99.100.132 with SMTP id y126mr4283265pgb.77.1522603906751; Sun, 01 Apr 2018 10:31:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522603906; cv=none; d=google.com; s=arc-20160816; b=vHirm1G0cQTPnAEPkD2GDF5Xn9z5jzgNVcMgLmf5UQtyxFkmiY51ONJnD8ujLatigw Y4ecOpFo9GQxqHUy59hgpGl8UW7ejJF32RSrFAwNhhA3lI+9/vpEsl+jIuYdaKYakJmG GBuV6jMcq+r9GWTs0ZOgUMzpPnq4w2hItCBrupMjS1X/oECIHUjxIb9mZGdYHqz2wYnZ vT+9eO5dH+L2E3jZpQZkq452sZLFK3396niDS9jMtlpXM0QQ0U1e23EhmvqNmuG0aA9p sc2r86iu7l3h6T4vlsR/AB5gIyGb0amYwl+G3FcQbts7pabnhLQOUHFYUi3gEyVz0BmV 0CJg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=7gsPOT9SHcIC/9gZPlYs3DjjDM2o0bKpWqoZcBQUPV0=; b=QUL//cG5wgYFGnfyfpZzL14w8usAEqLoiR4BfPPjL4RYac57v2pY59XP3b32Z12NDz A/0i7K2qZZQ5gfSPaDiz9uk210fxfLlPwlK0Xv41UjIWzieiyFx7BcpyPFLHP4yu2jcr yus/RtcJgwmcfci2fDPg3C6VhUZa7F95p9KDvMVZjnetahc3fPbYJrG2wQ1ATEHfm4Jy EcYvo1pVPjsi2WOiBZpJewKol363AklmRrYwlElRtVGfcPX9ZxWFgHFomRE72NP4LfQ3 8eQ4e6CRxT9oi624qBiWDrOGq7cFMjcDBpWub6OTFWrpOU9vYpFE1m0kkpVddofACp0i nSKA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 34-v6si8233997plz.76.2018.04.01.10.31.32; Sun, 01 Apr 2018 10:31:46 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753799AbeDARaT (ORCPT + 99 others); Sun, 1 Apr 2018 13:30:19 -0400 Received: from muru.com ([72.249.23.125]:34802 "EHLO muru.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753687AbeDARaR (ORCPT ); Sun, 1 Apr 2018 13:30:17 -0400 Received: from atomide.com (localhost [127.0.0.1]) by muru.com (Postfix) with ESMTPS id DBA7680E4; Sun, 1 Apr 2018 17:31:37 +0000 (UTC) Date: Sun, 1 Apr 2018 10:30:12 -0700 From: Tony Lindgren To: Pavel Machek Cc: Sebastian Reichel , Mark Brown , Liam Girdwood , Rob Herring , Lee Jones , Jaroslav Kysela , Takashi Iwai , alsa-devel@alsa-project.org, linux-omap@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, kernel@collabora.com, Dan Williams Subject: Re: call/normal switch was Re: omap4-droid4: voice call support was Message-ID: <20180401173012.GB5700@atomide.com> References: <20180328140219.f6667up5evrrafkv@earth.universe> <20180329014507.GM5700@atomide.com> <20180331145531.GA10404@amd> <20180331181935.GX5700@atomide.com> <20180331191939.GA8999@amd> <20180331194616.GA19388@amd> <20180331195524.GB19388@amd> <20180331234314.GZ5700@atomide.com> <20180401131852.GA11086@amd> <20180401153631.GA5700@atomide.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180401153631.GA5700@atomide.com> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Tony Lindgren [180401 15:38]: > * Pavel Machek [180401 13:20]: > > On Sat 2018-03-31 16:43:14, Tony Lindgren wrote: > > > * Pavel Machek [180331 19:56]: > > > > On Sat 2018-03-31 21:46:16, Pavel Machek wrote: > > > > > On Sat 2018-03-31 21:19:39, Pavel Machek wrote: > > > > > > On Sat 2018-03-31 11:19:35, Tony Lindgren wrote: > > > > > > > Cool :) Microphone still does not work for me.. I tried tweaking > > > > > > > the alsamixer settings but no mic. This is with cold boot with > > > > > > > droid4-kexecboot if that might make a difference, we may have > > > > > > > some register uninitialized somewhere. Any ideas? > > > > > > > > > > > > Ok, I was focusing on the speaker side. > > > > > > > > > > > > alsamixer, tab to go to capture settings, set it to 37 37 Mic2 Mic1 > > > > > > should work, according to my notes, but not recently tested and not > > > > > > tested against real human. > > > > > > > > > > > > I'll attempt to test it, but something in my userland shuts down > > > > > > system just after boot 60% of time, which is rather annoying. > > > > > > > > > > Hmm. So I tried again, and setting Mic1 and back in the capture > > > > > settings crashed the modem. Bang, disconnected from the USB. > > > > > > > > Next try, and it worked this time. > > > > > > > > _Before the call_, set mode to Normal and then Call. Then go to > > > > capture, and set 100 100 Mic2 Mic1. Then place a call, > > > > > > > > AT+CFUN=1 > > > > OK > > > > ATD6; > > > > > > No luck with microphone here :( Using ttyUSB4, AT+CFUN=1 > > > works, but ATD command on it just hangs the USB interface > > > and I have to reload phy-mapphone-mdm6600 to reset the > > > modem. > > > > Test call with real human worked (thanks to Rolf K.), I could hear him > > well but he reported call was very quiet. And that was with capture > > settings at 100%. > > Maybe the volume also needs to be controlled at mdm6600 end. > I'm seeing some AT+CLVL=n with n being between [0-7] calls on > DLCI2 in my Android logcat logs. > > > If you had a register dump from android with mics working, preferably > > not in speaker mode, perhaps I could try to figure it out? > > OK here are four diffs against starting the phone app for regular > call, speaker call, and muted versions of them: > > http://muru.com/linux/d4/cpcap/ > > Also, I'm connected over cdma right now, not 3g, but I doubt > that makes a difference for the microphone. Found it! Here's what I need to do over n_gsm: ngsm 1 "AT+CFUN=1" ngsm 1 "AT+CFUN?" ngsm 2 "AT+EACC=3,0" # enable mic ngsm 2 "AT+CLVL=4" # set speaker volume ngsm 2 "AT+CMUT=0" # unmute mic ngsm 1 "ATD${number}" ngsm 1 "AT+CLCC" # list current calls ngsm 2 "AT+NREC=1" # enable noise cancellation ngsm 1 "AT+SCRN=0" # ??? not sure if this does anything while [ 1 ]; do date ngsm 1 "AT+CLCC" sleep 10 done So speaker phone call works just fine, I just tested with a human at the other end :) Hmm let's hope all those also translate to some qmi calls. Regards, Tony