Received: by 10.213.65.68 with SMTP id h4csp897926imn; Sat, 31 Mar 2018 12:49:49 -0700 (PDT) X-Google-Smtp-Source: AIpwx48O7iTkfSoK56l8MqNMDjVpPOPuLXVPm2WdZD1FAcLRQhLHRHMyTFHybaulC2vmAtJenmX4 X-Received: by 2002:a17:902:8c8e:: with SMTP id t14-v6mr4065997plo.206.1522525789845; Sat, 31 Mar 2018 12:49:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522525789; cv=none; d=google.com; s=arc-20160816; b=DdH5lpUq8LwjGzncEL5agBtLi8D/hZphjA3lFrBz96/CdTUq9ecy21Zy2f2MXqK54D gQD6o5zdx40qYaIzzNq/rVdSavOrbrXFKYawBKARFzqGJ1WT3grmEhBlqUjzswWcMnlJ Z7XrL+2gfoHt/2YuW7FVukqiQoXACBOWKSx15grqob63tJago/KAom2+vLixfdrALX61 n5zuaEfVeyQctMFGlBttlFH+SrcWP31B98B918ES1QuueyM0xmZp1iw1hPiAByaX6ZJJ t/U9XyazXIbYek9Y2PV6TgxXPys0kR9tAYttCrnMdZC99xj1iWxSRTSFbHlkn6u6XngT tl1w== 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=1EbbEvhfUx2ED4+rFYKD6PxyI5hXoOCa9Ihrf/yGt4A=; b=STd8005ziUcGmwFiFQ+hq44RY76gCRio2cdSJjJviiVxIh5UDlcSJ1OfZhPqVMOfPK UIbDNDdQQ/Wc8vr0dmqVicyOKq2aGHCdqy2HZW3cZ13HK6reEvOrVLBVRfY1sPPSsyoY eDwuYmu0IH/3fOktYVrgEWMcIV6cjkigBtwr34lH2K9IpgXTCXOZHfwSOvmPB3lbtNXB 6QNAqBItUiL8QjVrUxwWo8SGwHD2N1BW0kvRNb0FuTO1FusnPhcSiYPlMWj+PXgSV9/t JgfUUKtuIwX2QQRrSvJ+kKKzPTnAsZdVk6MYpaaime8x8CTpNXmjFP2Vm/10qarkhQ50 WCzA== 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 l4-v6si6857071plt.660.2018.03.31.12.49.08; Sat, 31 Mar 2018 12:49:49 -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 S1753295AbeCaTqo (ORCPT + 99 others); Sat, 31 Mar 2018 15:46:44 -0400 Received: from muru.com ([72.249.23.125]:34712 "EHLO muru.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753050AbeCaTqn (ORCPT ); Sat, 31 Mar 2018 15:46:43 -0400 Received: from atomide.com (localhost [127.0.0.1]) by muru.com (Postfix) with ESMTPS id 2CEA080B8; Sat, 31 Mar 2018 19:48:02 +0000 (UTC) Date: Sat, 31 Mar 2018 12:46:38 -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: <20180331194638.GY5700@atomide.com> References: <20180326141638.GB1450@amd> <20180326155828.ttnduivadob4iqmd@earth.universe> <20180327121441.GH29239@sirena.org.uk> <20180327222237.wcx2aqznvdrvbaa5@earth.universe> <20180328022910.GM29239@sirena.org.uk> <20180328140219.f6667up5evrrafkv@earth.universe> <20180329014507.GM5700@atomide.com> <20180331145531.GA10404@amd> <20180331181935.GX5700@atomide.com> <20180331191939.GA8999@amd> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180331191939.GA8999@amd> 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 * Pavel Machek [180331 19:21]: > On Sat 2018-03-31 11:19:35, Tony Lindgren wrote: > > * Pavel Machek [180331 14:56]: > > > Hi! > > > > > > > Hmm well I got audio call hacked to work as a proof of concept hack, > > > > see below. Maybe it can be used to verify some of the assumptions > > > > above. > > > > > > > > Then.. To split the work a bit, can you guys maybe try to decode > > > > the cpcap register values and try to do a proper ASoC driver patch? > > > > > > This is not proper patch yet, but it should be a step in that > > > direction... > > > > 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. In alsamixer after setting the second "Speaker" to "Voice" and "Mode" to "Call" and "Left" to "Mic 2" and "Right" to "Mic 1" and doing a test call the mic does not work, speaker works though. After the call in alsamixer, setting the second "Speaker" to "HiFi", and "Mode" to "Normal" mode, I can record a wav file and play it back just fine. But this only works for me after reloading snd-soc-cpcap.ko after the voice call. > 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 battery voltage too low? We have cpcap_battery_irq_thread() call orderly_poweroff() on lowbpl interrupt. > > FYI, I got one of the remaining n_gsm issues tracked down yesterday, > > at least one more bug to go. Things only work with n_gsm debug > > enabled right now for some reason.. > > I don't know why I need n_gsm, but I have my fingers crossed. :-). More features it seems :) But sounds like you're all set for now with USB access. Regards, Tony