From patchwork Fri Mar 30 18:01:51 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pavel Machek X-Patchwork-Id: 10318251 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 9739D6055B for ; Fri, 30 Mar 2018 18:01:59 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 82EC72A5B5 for ; Fri, 30 Mar 2018 18:01:59 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 73C582A616; Fri, 30 Mar 2018 18:01:59 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7CD262A5B5 for ; Fri, 30 Mar 2018 18:01:58 +0000 (UTC) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 7E5A526721A; Fri, 30 Mar 2018 20:01:56 +0200 (CEST) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id CDB4826722D; Fri, 30 Mar 2018 20:01:54 +0200 (CEST) Received: from atrey.karlin.mff.cuni.cz (atrey.karlin.mff.cuni.cz [195.113.26.193]) by alsa0.perex.cz (Postfix) with ESMTP id D041C26720C for ; Fri, 30 Mar 2018 20:01:52 +0200 (CEST) Received: by atrey.karlin.mff.cuni.cz (Postfix, from userid 512) id 4B07880385; Fri, 30 Mar 2018 20:01:52 +0200 (CEST) Date: Fri, 30 Mar 2018 20:01:51 +0200 From: Pavel Machek To: Merlijn Wajer Message-ID: <20180330180151.GA27494@amd> References: <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> <20180330175050.GA26571@amd> MIME-Version: 1.0 In-Reply-To: <20180330175050.GA26571@amd> User-Agent: Mutt/1.5.23 (2014-03-12) Cc: devicetree@vger.kernel.org, alsa-devel@alsa-project.org, kernel@collabora.com, Tony Lindgren , linux-kernel@vger.kernel.org, Takashi Iwai , Liam Girdwood , Rob Herring , Dan Williams , Mark Brown , Sebastian Reichel , linux-omap@vger.kernel.org, Lee Jones Subject: Re: [alsa-devel] omap4-droid4: voice call support was Re: [PATCHv5, 5/5] ARM: dts: omap4-droid4: add soundcard X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP On Fri 2018-03-30 19:50:50, Pavel Machek wrote: > 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 :) > > > > > > I also got ofonod to work, with rather crazy hacks. But I now have > > > incoming/outgoing calls with GUI :-). > > > > 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. This, applied on top of previous patch, gives me some kind of qmi connection, AFAICT. I can enable/online a modem, but nothing else works. LocationReporting is advertised but does not work. dial-number does not work either. But from list-modems, it looks like some kind of communication works... Pavel user@devuan:/my/ofono/test$ sudo python2 ./list-modems [ /gobi_0 ] SystemPath = /sys/devices/platform/44000000.ocp/4a064000.usbhshost/4a064800.ohci/usb2/2-1 Features = sim gps Emergency = 0 Powered = 1 Lockdown = 0 Interfaces = org.ofono.SimManager org.ofono.LocationReporting org.ofono.VoiceCallManager Online = 1 Model = 196 Revision = M6600A-SCAUHSZ-3.1.3310T 1 [Jun 09 2011 17:00:00] Type = hardware Serial = 809DE736 Manufacturer = QUALCOMM INCORPORATED [ org.ofono.SimManager ] Present = 0 [ org.ofono.LocationReporting ] Type = nmea Enabled = 0 [ org.ofono.VoiceCallManager ] EmergencyNumbers = 08 000 999 110 112 911 118 119 user@devuan:/my/ofono/test$ Pavel diff --git a/doc/location-reporting-api.txt b/doc/location-reporting-api.txt index 21e346d4..ff0a35dc 100644 --- a/doc/location-reporting-api.txt +++ b/doc/location-reporting-api.txt @@ -13,7 +13,7 @@ Methods dict GetProperties() filedescriptor Request() Asks to turn ON the NMEA stream and supplies the - gps device file descriptor. The external cliend should + gps device file descriptor. The external client should use the file descriptor to receive the NMEA data. Possible Errors: [service].Error.InProgress diff --git a/plugins/udevng.c b/plugins/udevng.c index a4b18488..1c6a6679 100644 --- a/plugins/udevng.c +++ b/plugins/udevng.c @@ -234,9 +234,10 @@ static gboolean setup_gobi(struct modem_info *modem) } DBG("qmi=%s net=%s mdm=%s gps=%s diag=%s", qmi, net, mdm, gps, diag); - +#if 0 if (qmi == NULL || mdm == NULL || net == NULL) return FALSE; +#endif ofono_modem_set_string(modem->modem, "Device", qmi); @@ -1251,7 +1252,7 @@ static struct { { "cinterion", setup_serial_modem }, { "nokiacdma", setup_serial_modem }, { "sim900", setup_serial_modem }, - { "g1", setup_serial_modem }, + // { "g1", setup_serial_modem }, { "wavecom", setup_wavecom }, { "tc65", setup_tc65 }, { "ehs6", setup_ehs6 }, @@ -1602,8 +1603,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" }, + { "gobi", "qmi_wwan", "22b8", "2a70" }, + { "gobi", "option", "22b8", "2a70" }, { "nokia", "option", "0421", "060e" }, { "nokia", "option", "0421", "0623" }, { "samsung", "option", "04e8", "6889" }, @@ -1719,7 +1720,7 @@ static void check_device(struct udev_device *device) return; } -#if 0 +#if 1 if ((g_str_equal(bus, "usb") == TRUE) || (g_str_equal(bus, "usbmisc") == TRUE)) check_usb_device(device);