Received: by 10.213.65.68 with SMTP id h4csp565114imn; Fri, 30 Mar 2018 10:52:20 -0700 (PDT) X-Google-Smtp-Source: AIpwx48/VGoidsKMVt1dTnHYKofraEAMQP/ZWaYboWQvD7fzIfIscyp5PpWC4ZkW9m69aj5n6zC4 X-Received: by 10.98.217.85 with SMTP id s82mr10527002pfg.208.1522432340760; Fri, 30 Mar 2018 10:52:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522432340; cv=none; d=google.com; s=arc-20160816; b=LJMTyabOkpk0faqq9O9RFiq7LV8MCyJjsdR9gz/b6OcS34Bf5RKwbNcWcIuOUEZes5 NLlkTM7wN6zMEl5rxWN0J4v2SaNT6hfasExCJBkDnWNP8pTF7PY5ZUgcCaNr5ZMIu4d3 1CX5axUYGmQoUhFTLJ7TsEJCFYe0v3h4GGaKm3ieDSBGqLliju9kAWjPwA0RkIJgzehY tGSIspjP27asRklKq1yS5zlLG8X+lTDbu8SERhZzgwoZc9/ccAvrmyxQLHWpbftYNdMZ SqBnIyiPO7EMPlFjs8k+vyVfTYfd1l3CqlN6pqMMIGoD45reB6O2hwNVqUUO3h8p/ci6 z5/Q== 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=uBb8Fad9bbwaHbDyEdeCHpuDtDpj4LgardBKc35gWSc=; b=E3g9ejge0tyNZ5NelxE7eynlqVl5x6KuIkjQdKeurgCDIFnCDyM4NBFIDZrALCtJEG hZdaZOMWoKW2564KUb4fvtvSUdpqPdE8jW9iTeoB3HIst7OjrqvazqzzqUtkofj7AjsY kEVnwGrpNzsOMWyQrAbO7U+4V3LQ5O8RPcQJVyH2xz12YJ/kcg29JZSDrFbNSoQQlgoc lUIUeCUuTsLbPUMm46KRrlBL/Ma+yAjeDOjmZThf9dlLar5z2qoOKy5qte//DoLILzcv auGUAjfWTxrYpBVdIRVLlQzChzEcZNBbUI7Sxzxd9u+iV0R4dMy+SbD+YV46LcLNhedY fE8Q== 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 u70si5845404pgd.619.2018.03.30.10.52.07; Fri, 30 Mar 2018 10:52:20 -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 S1752282AbeC3Ruy (ORCPT + 99 others); Fri, 30 Mar 2018 13:50:54 -0400 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:49530 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751275AbeC3Rux (ORCPT ); Fri, 30 Mar 2018 13:50:53 -0400 Received: by atrey.karlin.mff.cuni.cz (Postfix, from userid 512) id 369BC80365; Fri, 30 Mar 2018 19:50:51 +0200 (CEST) Date: Fri, 30 Mar 2018 19:50:50 +0200 From: Pavel Machek To: Merlijn Wajer Cc: Tony Lindgren , 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, Dan Williams Subject: Re: omap4-droid4: voice call support was Re: [PATCHv5,5/5] ARM: dts: omap4-droid4: add soundcard Message-ID: <20180330175050.GA26571@amd> References: <20180329014507.GM5700@atomide.com> <20180329133613.khldv72w3zj63vsk@earth.universe> <20180329135904.GN5700@atomide.com> <20180329154600.qhels5fqzzg364gj@earth.universe> <20180329163716.GA20743@amd> <20180329164113.GR5700@atomide.com> <20180329184007.GA27688@amd> <20180329215612.GS5700@atomide.com> <20180330103744.GA17404@amd> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="T4sUOijqQbZv57TR" Content-Disposition: inline In-Reply-To: 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 --T4sUOijqQbZv57TR Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri 2018-03-30 15:07:24, Merlijn Wajer wrote: > On 30/03/18 12:37, Pavel Machek wrote: > > On Thu 2018-03-29 14:56:13, Tony Lindgren wrote: > >> * Pavel Machek [180329 18:41]: > >>> Thanks. I got call working including outgoing audio: in capture > >>> settings, right->mic 1, Mic1 + Mic2 in alsamixer -> 100%. But I had > >>> the other phone muted, so I don't yet know if such call would be of > >>> usable quality. > >> > >> Great, good to hear that :) > >=20 > > I also got ofonod to work, with rather crazy hacks. But I now have > > incoming/outgoing calls with GUI :-). >=20 > Would you mind sharing those hacks - I would like to play around with > ofonod as well. Maybe I can help with a way forward. Okay. Here's less hacky version of the hack, but still using AT commands. You still need to set up udev, as described in the other mail. And... it seems I can have a qmi connection, too, but that's topic for other email. Good luck, Pavel diff --git a/drivers/atmodem/sms.c b/drivers/atmodem/sms.c index 68b89862..3a9f4bc0 100644 --- a/drivers/atmodem/sms.c +++ b/drivers/atmodem/sms.c @@ -440,6 +440,8 @@ static void at_cmt_notify(GAtResult *result, gpointer u= ser_data) if (data->vendor !=3D OFONO_VENDOR_SIMCOM) at_ack_delivery(sms); =20 + return; + err: ofono_error("Unable to parse CMT notification"); } diff --git a/plugins/udevng.c b/plugins/udevng.c index ff5d41af..a4b18488 100644 --- a/plugins/udevng.c +++ b/plugins/udevng.c @@ -233,10 +233,11 @@ static gboolean setup_gobi(struct modem_info *modem) } } =20 + DBG("qmi=3D%s net=3D%s mdm=3D%s gps=3D%s diag=3D%s", qmi, net, mdm, gps, = diag); +=09 if (qmi =3D=3D NULL || mdm =3D=3D NULL || net =3D=3D NULL) return FALSE; =20 - DBG("qmi=3D%s net=3D%s mdm=3D%s gps=3D%s diag=3D%s", qmi, net, mdm, gps, = diag); =20 ofono_modem_set_string(modem->modem, "Device", qmi); ofono_modem_set_string(modem->modem, "Modem", mdm); @@ -1250,6 +1251,7 @@ static struct { { "cinterion", setup_serial_modem }, { "nokiacdma", setup_serial_modem }, { "sim900", setup_serial_modem }, + { "g1", setup_serial_modem }, { "wavecom", setup_wavecom }, { "tc65", setup_tc65 }, { "ehs6", setup_ehs6 }, @@ -1578,8 +1580,6 @@ static struct { { "mbm", "cdc_ether", "0930" }, { "mbm", "cdc_ncm", "0930" }, { "hso", "hso" }, - { "gobi", "qmi_wwan" }, - { "gobi", "qcserial" }, { "sierra", "qmi_wwan", "1199" }, { "sierra", "qcserial", "1199" }, { "sierra", "sierra" }, @@ -1602,6 +1602,8 @@ static struct { { "telit", "cdc_acm", "1bc7", "0021" }, { "telitqmi", "qmi_wwan", "1bc7", "1201" }, { "telitqmi", "option", "1bc7", "1201" }, + { "telitqmi", "qmi_wwan", "22b8", "2a70" }, + { "telitqmi", "option", "22b8", "2a70" }, { "nokia", "option", "0421", "060e" }, { "nokia", "option", "0421", "0623" }, { "samsung", "option", "04e8", "6889" }, @@ -1717,10 +1719,12 @@ static void check_device(struct udev_device *device) return; } =20 +#if 0 if ((g_str_equal(bus, "usb") =3D=3D TRUE) || (g_str_equal(bus, "usbmisc") =3D=3D TRUE)) check_usb_device(device); else +#endif add_serial_device(device); =20 } @@ -1749,14 +1753,17 @@ static gboolean create_modem(gpointer key, gpointer= value, gpointer user_data) if (g_str_equal(driver_list[i].name, modem->driver) =3D=3D FALSE) continue; =20 + DBG("Attempting modem setup, driver %s", modem->driver); if (driver_list[i].setup(modem) =3D=3D TRUE) { ofono_modem_set_string(modem->modem, "SystemPath", syspath); ofono_modem_register(modem->modem); return FALSE; } + DBG("Modem setup failed, driver %s", modem->driver); =09 } =20 + DBG("Modem setup failed or not in driver_list?"); return TRUE; } =20 --=20 (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blo= g.html --T4sUOijqQbZv57TR Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAlq+ePoACgkQMOfwapXb+vJKZgCeI0fCULSgCsD0Awxz7p+CVB5m j1sAnifN/0d4PoPt1B6sFrbGEV3S9tTE =PmCh -----END PGP SIGNATURE----- --T4sUOijqQbZv57TR--