From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by aws-us-west-2-korg-lkml-1.web.codeaurora.org (Postfix) with ESMTP id 26701C5CFF1 for ; Tue, 12 Jun 2018 12:18:09 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id DB1582086D for ; Tue, 12 Jun 2018 12:18:08 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org DB1582086D Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=ucw.cz Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933647AbeFLMSG (ORCPT ); Tue, 12 Jun 2018 08:18:06 -0400 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:55369 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932543AbeFLMSE (ORCPT ); Tue, 12 Jun 2018 08:18:04 -0400 Received: by atrey.karlin.mff.cuni.cz (Postfix, from userid 512) id 99A9A80552; Tue, 12 Jun 2018 14:18:03 +0200 (CEST) Date: Tue, 12 Jun 2018 14:18:03 +0200 From: Pavel Machek To: Mark Brown Cc: kernel list , linux-arm-kernel , linux-omap@vger.kernel.org, tony@atomide.com, sre@kernel.org, nekit1000@gmail.com, mpartap@gmx.net, merlijn@wizzup.org, alsa-devel@alsa-project.org, tiwai@suse.com, perex@perex.cz, lgirdwood@gmail.com Subject: Re: handling voice calls in ALSA soc (on Droid 4) Message-ID: <20180612121803.GA9707@amd> References: <20180611102529.GA1272@amd> <20180611111011.GA11580@sirena.org.uk> <20180611120158.GA21745@amd> <20180611121548.GB11580@sirena.org.uk> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="HlL+5n6rz5pIUxbD" Content-Disposition: inline In-Reply-To: <20180611121548.GB11580@sirena.org.uk> 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 --HlL+5n6rz5pIUxbD Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! Sebastian, would you have pointer to original Motorola sources you used for inspiration? > > With setup like that, how does userland tell kernel that the baseband > > <-> microphone/speaker connection should be activated? >=20 > Audio routing should be done as normal, and ideally the driver for the > modem will be able to figure out if there's an active call or not. If > userspace has to enable the input and output manually then you can set > up SOC_DAPM_PIN_SWITCH()es as normal. Modem talks AT commands, so the driver is in userspace for now. I tried SOC_DAPM_PIN_SWITCH(), but it results in alsamixer oopsing, I guess I'm doing something wrong. Message from syslogd@devuan at Jun 12 13:51:31 ... kernel:[ 743.678588] BUG: spinlock bad magic on CPU#1, alsamixer/2217 Message from syslogd@devuan at Jun 12 13:51:31 ... kernel:[ 743.684417] lock: 0xede423a0, .magic: eee2a6a4, .owner: /-1, .owner_cpu: -287136604 =20 I'm trying to understand how it is supposed to work, but https://www.alsa-project.org/main/index.php/DAPM has TODO's at critical places. If there's better source of information, let me know. Best regards, Pavel --=20 (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blo= g.html --HlL+5n6rz5pIUxbD Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAlsfufsACgkQMOfwapXb+vKxvwCeMXZn0QSc3zGQ4P91OT3vR5aT CNcAoMQmdBjFI399f3jwi/POzgWglbm6 =V5kK -----END PGP SIGNATURE----- --HlL+5n6rz5pIUxbD--