Received: by 10.213.65.68 with SMTP id h4csp1730192imn; Mon, 26 Mar 2018 13:33:01 -0700 (PDT) X-Google-Smtp-Source: AG47ELsm+U6gb/7c6ESKf1c8KmkavSg8hPhDNLMHeIyxGIS7Wz2UOad5xX6Qlqk+mDX4UcUlliZd X-Received: by 10.98.205.69 with SMTP id o66mr26034841pfg.34.1522096381177; Mon, 26 Mar 2018 13:33:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522096381; cv=none; d=google.com; s=arc-20160816; b=E3NRmfzaRb6777ex6Ohametd/yXPkBBuNAjWRvD/V/NqzY8shMkw9SufBzo5boahV8 SnDIOaLQb2Wb/kkxACtFkPf5jo653bx+ekYzTBtCobz6gg/Mk0GZLnWvvDpChwdh5jnp 5N3W53Keijhh8VvE/cD7Qxqxk+YPj6tJdmHdAsPiJ5D8KehtWMylrMVNuwEb6jgjEkil z6k9V77akYiAXPfvHAk4A5+FI/ySbPHvrNwLuxWmN5QrzV1zCGKXXW2QBGp72VF2MZpI z+wG5Ikeh+gaxV5t+NpjIi9kuc8eft6AhaUafo3CqDOgD2R76/gfD2jl1MxmByyjDHxm Gtxw== 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=8KrSPxuHW9hM0kwNcDiLY4Ouag7Oxx3VfgljGVMF/Ys=; b=z7UXp28wlRczuHFFSMip06Hfb+IXsbRnIpTy7KotJKCkEi6wlx/WKLAV2yjXuAP/Vu bW6y9O1U2jYdTkWIBdriCfo3KgbcFM9yS3NJ2A1K2IMzvQRruRGuA76EIYJ7Gwe6P3cN ork17VIYF/X/y66hWSeg6xtKQz1jh7y1LIUkAv3yqdufh54quVp8QpLQ95Gp7m9/1veo GuiRHBZQQOrUtHUnJerbpcLdEOQTIIHOuSL5cd+Bdfii2pGPP8J3cok4p5T9clnfEyKP ONhy4e87iy/FUqzJH2kLE/sY9msBPCqsFx5rUDdgnBEZjb/IieawhysEuxlzPOSGcfmA tryw== 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 az8-v6si6545770plb.665.2018.03.26.13.32.46; Mon, 26 Mar 2018 13:33:01 -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 S1751686AbeCZUb5 (ORCPT + 99 others); Mon, 26 Mar 2018 16:31:57 -0400 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:51095 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751109AbeCZUb4 (ORCPT ); Mon, 26 Mar 2018 16:31:56 -0400 Received: by atrey.karlin.mff.cuni.cz (Postfix, from userid 512) id A023180394; Mon, 26 Mar 2018 22:31:54 +0200 (CEST) Date: Mon, 26 Mar 2018 22:31:54 +0200 From: Pavel Machek To: Sebastian Reichel Cc: Liam Girdwood , Mark Brown , Rob Herring , Tony Lindgren , 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: omap4-droid4: voice call support was Re: [PATCHv5,5/5] ARM: dts: omap4-droid4: add soundcard Message-ID: <20180326203154.GA9334@amd> References: <20180223200254.25685-6-sebastian.reichel@collabora.co.uk> <20180322204804.GA26871@amd> <20180322234832.o24ut5ahon46mdu4@earth.universe> <20180323100930.GA21644@amd> <20180323103006.alymgb3ywftb4gek@earth.universe> <20180326141638.GB1450@amd> <20180326155828.ttnduivadob4iqmd@earth.universe> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="3V7upXqbjpZ4EhLz" Content-Disposition: inline In-Reply-To: <20180326155828.ttnduivadob4iqmd@earth.universe> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --3V7upXqbjpZ4EhLz Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! > On Mon, Mar 26, 2018 at 04:16:38PM +0200, Pavel Machek wrote: > > Do you have any ideas what needs to be done for voice calls > > support? >=20 > Sure. :-). > > I can talk to the modem and start a call. >=20 > Doing an AT query is the easy part :) Well, yes. Doing it right (ofono, etc) is not that easy. > > Then something like this (untested!) is certainly needed. > > Probably more... >=20 > I intentionally left this part out. The CPCAP codec has two DAIs > and not 3+. The code you just added is a hack from Motorola. Their > driver is full of hacks and it's obvious its author(s) did not > fully understand the ASoC APIs. Ok. > My understanding is, that we only need to replace the audio-graph-card > driver to something more complex. The VOICE DAI needs to be configured > differently based on the use case: >=20 > call: > * mode=3Di2s > * freq=3D26000000 > * samprate=3D16000 or samprate=3D8000 Ok, lets ignore bluetooth for now. There is "normal" mode, and then there's "call" mode, right? Where's "normal" mode configured? Could we simply always configure the VOICE DAI in the call mode? Yes, it would limit samplerates to 8 or 16k, but .. that's not too important limitation for voice codec...? > "audio-graph-card" is not capable of doing this. I was planning to > try "audio-graph-scu-card" in combination with adding codecs for the > modem and BT to DT. If that does not work we need a Droid 4 specific > soundcard driver. >=20 > Either way "audio-graph-card" is not the correct driver for D4. I > added it nevertheless, since it gets audio working for now and there > is no risk of DT breakage. Old *.dtb will continue to work with the > "audio-graph-card" even after we switch to something else. Well, you'll still cause regressions when you change the dts, as people will have wrong .config for new dts. Best regards, Pavel --=20 (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blo= g.html --3V7upXqbjpZ4EhLz Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAlq5WLoACgkQMOfwapXb+vLhUgCdH06JqVN5ITPivIsW8Zb/RK53 QFQAn2jIaSk5wuOSV70BAWIfItf3k3G3 =tVRF -----END PGP SIGNATURE----- --3V7upXqbjpZ4EhLz--