Received: by 10.213.65.68 with SMTP id h4csp238012imn; Wed, 28 Mar 2018 02:39:02 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/B9UP/o+J6nsG8uQ2hN1oPPCvf6xXFDC2d0YTue/5dfHY1lRc/2MeyjYsqVMiwoGDCyGos X-Received: by 2002:a17:902:5853:: with SMTP id f19-v6mr2976313plj.7.1522229942702; Wed, 28 Mar 2018 02:39:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522229942; cv=none; d=google.com; s=arc-20160816; b=ivTx/q06ZqOhZO9I/y/0B+ztX0g9tLv8H2IubqzSPynEV1z+fM04PjTCXbWywCmvMW 2HrDJiMm9pLpPyxurPaKkUs28VsXA65mGhG4NHYvC+xkrVw7wWSGKamjDTWgZrJf3r0E G25xsTfL7GtsrA63ZPDaoqPTyVXyd3GZ+GiQiAGJmaL7VTqqqoYDA+ixuyu2zyXcLpan 9jcHqUFa/ez5V31n1Q8Z9uuu6VXeqschrnZozOfOPN2iLj3WBtcv3xu+tGWcWKHTo9TY qtIAp2Sm5g8G2T87buxfAu5gOUo5xnGL1lOGUJh7LrxckQ3KkOzrh35dE3psRlxVsjIX 9ixA== 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=mwhvYuGQf0j/8u6sS+dcoYoTTEK33c8j/H6tK/lhpS8=; b=JaDK4CszEmI7QRgUw27vsNcC51uHypP0tEUZrW4167qhTq7j58pr7saTmfrV//84sU qjRzJk6kXEg8d0PhvsM9h1Yz5nllmRRGMixrTChHfnl4p+e49ta/qLkTWB9Q9iCeqOEF zKd6+g+ivihOMFX+ONWEyiI2MSU3eSFwv5V+bBWe53iqZWsaW2qAs/XOH/BXyneXsEZ6 oZKFBTv9wF6ajimlqSpvR7AIGgIE9VXzHiPUOoWlfPg0rrmBYrOWCP5LZ/hPUR/OGsRd BpE8btChW0NFHLIVyjwb//0OE9056FBI31JdU5Tcwe0PdS3iMEtNLwDhmcgfSgNBZysm jGyw== 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 o10-v6si2158919plk.20.2018.03.28.02.38.48; Wed, 28 Mar 2018 02:39:02 -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 S1752065AbeC1Jgq (ORCPT + 99 others); Wed, 28 Mar 2018 05:36:46 -0400 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:58784 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751182AbeC1Jgo (ORCPT ); Wed, 28 Mar 2018 05:36:44 -0400 Received: by atrey.karlin.mff.cuni.cz (Postfix, from userid 512) id 8581F8039E; Wed, 28 Mar 2018 11:36:42 +0200 (CEST) Date: Wed, 28 Mar 2018 11:36:41 +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: <20180328093641.GA17774@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> <20180328090031.GA17300@amd> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="9jxsPFA5p3P2qPhR" Content-Disposition: inline In-Reply-To: <20180328090031.GA17300@amd> 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 --9jxsPFA5p3P2qPhR Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! > > > I can talk to the modem and start a call. > >=20 > > Doing an AT query is the easy part :) > >=20 > > > 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. > >=20 > > 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 > Does the voice part work for you? I configured all the mixers to > voice, and then am using I tried with 8kHz, 8-bit, too: user@devuan:/my/tui/rweb$ arecord -D plughw:CARD=3DAudio,DEV=3D1 -t wav --max-file-time 30 mon.wav Recording WAVE 'mon.wav' : Unsigned 8 bit, Rate 8000 Hz, Mono ^CAborted by signal Interrupt... arecord: pcm_read:2103: read error: Interrupted system call user@devuan:/my/tui/rweb$ aplay -D plughw:CARD=3DAudio,DEV=3D1 -t wav mon.wav Playing WAVE 'mon.wav' : Unsigned 8 bit, Rate 8000 Hz, Mono ^CAborted by signal Interrupt... Recording works okay, but playback produces ugly noise (not white this time). If I copy mon.wav to PC, it playes back in pretty acceptable quality. So summary HIFI DAI works VOICE DAI recording is ok VOICE DAI playbacks plays noise. Best regards, Pavel --=20 (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blo= g.html --9jxsPFA5p3P2qPhR Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAlq7YikACgkQMOfwapXb+vLxNwCdE/Fragqrz7l3vrPSiD4kZkYU mkgAnjYnKZqJYm5pviMW9kjZfIIfJ++H =xgf1 -----END PGP SIGNATURE----- --9jxsPFA5p3P2qPhR--