From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tony Lindgren Subject: Re: call/normal switch was Re: omap4-droid4: voice call support was Date: Sun, 1 Apr 2018 10:30:12 -0700 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 Return-path: Content-Disposition: inline In-Reply-To: <20180401153631.GA5700@atomide.com> Sender: linux-kernel-owner@vger.kernel.org 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 List-Id: devicetree@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