Received: by 10.213.65.68 with SMTP id h4csp3670722imn; Tue, 3 Apr 2018 08:52:05 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/cS7e2MSQNUPcIduDiOIPX9wHFjxxxlevDZoo4sIBoN5T9Co78OocVLJCa6hi+MhQDPPq/ X-Received: by 2002:a17:902:47aa:: with SMTP id r39-v6mr14362105pld.59.1522770725153; Tue, 03 Apr 2018 08:52:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522770725; cv=none; d=google.com; s=arc-20160816; b=NO6gDlhKp67Rfe/kB+haRQ1cxYrw1963JsbQTidNnOuubqFD0ny2i5/+H6jr/GIr4b HbR1lFlkSWad6VawaCGlBgj6iedpSSzdK2E+FM2yGxABUxXcEyt/qzxLDBhXXhsD3YWw 9csVyUP2cdu0M97D9EGftLZz67fEGKV67ARMHBopTwesiF6do0JWEK7aGz6qp3IUusNb RNyUJM3CSEeyBcDde0Ey+1B+RxcXrw+D4rIjwK5lqwuIYIEvc6oU+LoYzPQVlNwc+F3Z yetopgWwjnYb0XCANlz+vYFKFub82/WS3lf8EQZ+65IIp3Jf91ubD8os8KzapAgSC42o bxGA== 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=1k7Fp3VT4dhImsWlcs1a83RBour85Ddo8ZIqjw8zZlI=; b=R2TUsLJyPV5EJoX3z1habNt3reokZEZttLRlREt1eGAxjgsc1czD+2Dm919CIk45cZ IOyL1GYdTwSzw87O5uIMrQxdKiscHkPLFYzS0mmRck+s906lOsE/QTG7M6MIxUQdEn/k Pv0XLL7wbUKx6u+iBtaA7s5lhUPkh5nCaNQPpMOaSssTkgA4C0c/xlcOIhKC1F8jWW2m A7CbQR1APU17Go07HsGpQWgxtltyR9FMFKxZj0YjQy+0KmVrzCkv4tz0/TuE7UekQ338 yQOPzPs2CYBPfGHC1qNboCAlIGcDd20rdyX55Om9+vop3RYc8fbL5EUkzYJEyIvJYYqX U8tw== 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 2-v6si853683pld.596.2018.04.03.08.51.51; Tue, 03 Apr 2018 08:52:05 -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 S1752196AbeDCPu1 (ORCPT + 99 others); Tue, 3 Apr 2018 11:50:27 -0400 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:35456 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751461AbeDCPu0 (ORCPT ); Tue, 3 Apr 2018 11:50:26 -0400 Received: by atrey.karlin.mff.cuni.cz (Postfix, from userid 512) id 36FD5803F5; Tue, 3 Apr 2018 17:50:24 +0200 (CEST) Date: Tue, 3 Apr 2018 17:50:24 +0200 From: Pavel Machek To: Tony Lindgren Cc: Dan Williams , 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 Subject: Re: call/normal switch was Re: omap4-droid4: voice call support was Message-ID: <20180403155023.GA14638@atrey.karlin.mff.cuni.cz> References: <20180331191939.GA8999@amd> <20180331194616.GA19388@amd> <20180331195524.GB19388@amd> <20180331234314.GZ5700@atomide.com> <20180401131852.GA11086@amd> <20180401153631.GA5700@atomide.com> <20180401173012.GB5700@atomide.com> <67086fdd0cdd69142cb89cd00f90e5a580e6607a.camel@redhat.com> <20180402155754.GD5700@atomide.com> <20180403150444.GE5700@atomide.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180403150444.GE5700@atomide.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi! > > OK thanks for checking. So probably only n_gsm channel 1 is for normal > > Qualcomm at commands, and then channel 2 and others are commands > > implemented by Motorola on the mdm6600. > > > > I guess we'd have to add support for reading and writing to > > /dev/gsmtty2 at least as it looks like these cannot be accessed > > via /dev/ttyUSB4. Or at least I have not figured out any other > > way to access them. > > Hmm or maybe there is some way to select where qmi to tunnels the > AT commands to? Some kind of channel type paramenter like n_gsm > has? > > Anyways, for trying to figure out things for alsamixer, I tested > that ngsm 2 "AT+EACC=3,0" is not related to cpcap audio register > settings and the mic is enabled during the call with Pavel's patch > with alsamixer "Mode" set to either "Call" or "Normal". Also speaker > keeps working during the call toggling between "Call" and "Normal". > "Voice" in alsamixer does also control the speaker volume during > the call. And setting the second "Speaker" from "Voice" to "HiFi" > mutes the speaker. Take a look at the patch. Selecting "call" does something at hardware level, selecting "normal" is a nop. Sorry for confusion. Yes, that patch needs more work. Pavel -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html