Received: by 10.213.65.68 with SMTP id h4csp2516971imn; Mon, 2 Apr 2018 08:59:25 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+YGTiQM4Z/TZwePwRVM0/hH/tg1gN+mMvDV2Newc2HI737STN5dWRiRvqmyO4hGWG/vxNB X-Received: by 10.101.77.198 with SMTP id q6mr6764074pgt.61.1522684765725; Mon, 02 Apr 2018 08:59:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522684765; cv=none; d=google.com; s=arc-20160816; b=Yv92FO+Dyns5QKAbpv1JR/zi9SjvVXFcMavSsaCvKtATR5Dez0uwAlmoyBMywHSSmw OhyTLqxdV5XzEs90ZS5gt0YPIPybs8sJwtSWXL4DJuT7RDi0ceeZB7Qpz+C/GUFxeQuw SDPpBl2Uoi4Jogj9jF2JLhjkViq0II5ghocH7ZlUMYITUypJTCqc3cL/xHFZWCQhxSCX CgXcBCM+fejENAyyaLPddHZYyscYrsqNfGbm6TPcN+uZidHezdlV1g/rt5UTeED1z/ry P4kqsgh+UYOpl10gDHwg+PC5EbE1c02zGfkGzjJGQcjGeBHVi1DW65nRvzWZrJBF6UjP XUoQ== 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=0YktxsTdTqrqFN1EJ75j2OIIBycpJyiFSZeWBcZid1c=; b=nWiSzr5vqNKbzEJTNj2dtVTtsDNnBtYluyGULoa1sV+N+lHZzDCXa8dcL0rLiqcpfY hKdFOxfpogGQ5kmSAt+UQvI8YemUhb0pj266TaFhUQriT0tHdpuaDFauJu7aFaFkKHYI 5iWtyzt86Dv5B3s5CwYOF9nyY/UulZoJohBGVgQ6ynSxlkuYHnf+wGs0ZnLVCoiY003z D7FkpXsJL0wM2O38iKs5j0Gur6GDGrgmJvk4giFfTisF9FnilAoRfdwubKPVjE5Pwbmc Gp+BalPeBTBX/GjGo5MWVfVeDoBpMHPck9pFj+0h6c7o1/9eF3ulRjreG4cfnVI0hM7k n3Dw== 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 z5si389038pgu.377.2018.04.02.08.59.08; Mon, 02 Apr 2018 08:59:25 -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 S1752610AbeDBP6A (ORCPT + 99 others); Mon, 2 Apr 2018 11:58:00 -0400 Received: from muru.com ([72.249.23.125]:34938 "EHLO muru.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751415AbeDBP56 (ORCPT ); Mon, 2 Apr 2018 11:57:58 -0400 Received: from atomide.com (localhost [127.0.0.1]) by muru.com (Postfix) with ESMTPS id 53BE48105; Mon, 2 Apr 2018 15:59:20 +0000 (UTC) Date: Mon, 2 Apr 2018 08:57:54 -0700 From: Tony Lindgren To: Dan Williams Cc: Pavel Machek , 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: <20180402155754.GD5700@atomide.com> References: <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> <20180401173012.GB5700@atomide.com> <67086fdd0cdd69142cb89cd00f90e5a580e6607a.camel@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <67086fdd0cdd69142cb89cd00f90e5a580e6607a.camel@redhat.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 * Dan Williams [180402 15:51]: > On Sun, 2018-04-01 at 10:30 -0700, Tony Lindgren wrote: > > * Tony Lindgren [180401 15:38]: > > 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 > > I tried to look through the QMI dumps we have in libqmi from 2013 > (latest Qualcomm posted) and couldn't find anything to do with mic > control, speaker volume, or anything like that. > > If the modem supports the AT service (which I think it does? Not > looking at the libqmi dumps right now) then it could potentially tunnel > these AT commands through QMI too. > > Perhaps Qualcomm added something to the Voice service after 2013, or > perhaps there are other services that might control speaker/mic that we > don't have public dumps for yet though. 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. Regards, Tony