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=-5.5 required=3.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8C4D9C35247 for ; Tue, 4 Feb 2020 16:41:20 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 153DB2082E for ; Tue, 4 Feb 2020 16:41:20 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=alsa-project.org header.i=@alsa-project.org header.b="U1tSgBkb"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="VDGCo9zy" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 153DB2082E Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=alsa-devel-bounces@alsa-project.org Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 64DFE15E2; Tue, 4 Feb 2020 17:40:28 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 64DFE15E2 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1580834478; bh=yvQlNErwNtHo0eSDg5j8xbuN+OVVG38VF8xj1hn8bxY=; h=References:In-Reply-To:From:Date:To:Subject:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=U1tSgBkb+2LT3FVf6daE5aBprAEMXXAjqbevudntKXtvhtCBmLQOPzzTna1y30KpR FQOuhfhqYih+rpSK8p7hXTQvyuCbt6spCXL7XlY20OVBZ12DafnMTKX9xsenuMRlaF Fog2tAx8Jeel9kcTWLHjIaIVGey4sVbNUoqNQW1o= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id E1B8BF8015B; Tue, 4 Feb 2020 17:40:27 +0100 (CET) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 5E134F80162; Tue, 4 Feb 2020 17:40:25 +0100 (CET) Received: from mail-ed1-x535.google.com (mail-ed1-x535.google.com [IPv6:2a00:1450:4864:20::535]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id C6451F800F4 for ; Tue, 4 Feb 2020 17:40:19 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz C6451F800F4 Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="VDGCo9zy" Received: by mail-ed1-x535.google.com with SMTP id g19so20400090eds.11 for ; Tue, 04 Feb 2020 08:40:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=oIkI8EEKCMl+EIPg+CUSQH5BoqhJ5xwNGtnw6/FU7QY=; b=VDGCo9zywu7GlJPsOdfmTArjJLo1nuWWNS7LWdYAfKltO30ptK90KrMCML3wceLQaM 0NVm/EptvWuADRNuhoTZn/pnzPSE6oRpzLF6FGFgyGTdf5SribFqCfiD3Hr9P6+1x5Qu kYf9hc14Vxul3qK2x7tSJpbh0DLw0G+bJcWnwoi6kB0Tr+6Znw5nHRn5LyohwpaerkqJ l+CuPlj1fVf4Cl5n6fc8NaWn0H5C+eVEuuNPvzV1Ps8oDx/9II2lAGpxxGcrtYVQuPFQ x2kARLvZwB1sHoswROkyf4tNdjk7YMhF9kbbuhtEoPbJAWpofj8JsDkd8RCw09p+iaCT 4wKg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=oIkI8EEKCMl+EIPg+CUSQH5BoqhJ5xwNGtnw6/FU7QY=; b=kyMm3k2nbZTi9SRXqtgDr39H2Ai9vLWaVsMmPluRCcMdCzRbyEZbSo8NPGiOjPpVhj v9he/ZbnRd299OTdEwfSmnoqqZbxM+E3Dtt73emyxFehur0vgHJlNrnMtalukAkf6tUe eo6DZuBerV0yJ/QFDBVm1iKy8f0M3awEy7SHFN5TpgUYN4Q/MqMpQTc3thvZLWAQGOJN obwsYQrIG+J89VskcPn3Y3DGDh+OxEruvG8EyJ94bdh4V8qy0nn4Gs4A4JOKsxwt7d58 3gKDyRGD/WR1JytKhflgYtKTYsNRzn0Ui1RgSDf2GTBIqFVB/uC/UixzgBPSKh1RSFRe TGCg== X-Gm-Message-State: APjAAAXpQCocuSf1haEWPd5dQ92u01kRoC9xyDFD2s/tlV+Ffh7xXhPb ObQFnF+qRELj/fm3Q+AAE1krycfBVcy0sH4uoqk= X-Google-Smtp-Source: APXvYqxOPDsC5vLi5eb+QDK1n7sy40MDGb0aGiMRWIjxit96qegwy9+zMZtEJ+J/HHUs+Cbrx/C0dG4r44sDiIAPJ6U= X-Received: by 2002:a17:906:40a:: with SMTP id d10mr26570341eja.65.1580834416756; Tue, 04 Feb 2020 08:40:16 -0800 (PST) MIME-Version: 1.0 References: <20200119164335.GA11974@workstation> <20200120141901.GA32472@workstation> <20200125031801.GA5554@workstation> <20200129031652.GA2629@workstation> In-Reply-To: <20200129031652.GA2629@workstation> From: Daniel Jozsef Date: Tue, 4 Feb 2020 17:40:05 +0100 Message-ID: To: Daniel Jozsef , ffado-user@lists.sourceforge.net, alsa-devel@alsa-project.org X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: Re: [alsa-devel] Toneweal / Trigaudio FW66 device X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.15 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: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" Hey, Thanks a lot. That does sound pretty strange. Thankfully, I'm in no hurry as I'm still mainly using an older Mac for audio stuff, but I'd like to replace it sooner or later, and getting an upgradable Linux machine sounds better than paying 1.5 to 2 times as much for a Mac with the same specs (and no extensibility). I'll try to do some testing around on my current Linux box. Unfortunately it's an old machine with a "known problematic" Firewire implementation, though I doubt that should play a part in device discovery. Daniel On Wed, Jan 29, 2020 at 4:16 AM Takashi Sakamoto wrote: > Hi, > > On Tue, Jan 28, 2020 at 10:28:20PM +0000, Daniel Jozsef wrote: > > I'm a little baffled by what my device just did. :P > > > > $ ./firewire-request /dev/fw1 fcp 0x016002c0000100ffff00 > > response: 000: 0c 60 02 c0 00 01 00 ff ff 00 00 > .`......... > > $ ./firewire-request /dev/fw1 fcp 0x016002c0000101ffff00 > > response: 000: 0c 60 02 c0 00 01 01 ff ff 00 00 > .`......... > > (<- didn't fail) > > $ ./firewire-request /dev/fw1 fcp 0x016002c0000102ffff00 > > response: 000: 0c 60 02 c0 00 01 02 ff ff 00 00 > .`......... > > $ ./firewire-request /dev/fw1 fcp 0x016002c0000103ffff00 > > response: 000: 0c 60 02 c0 00 01 03 ff ff 00 00 > .`......... > > $ ./firewire-request /dev/fw1 fcp 0x016002c0000104ffff00 > > response: 000: 0c 60 02 c0 00 01 04 ff ff 00 02 > .`......... > > (<- didn't fail) > > > > In fact... > > > > $ ./firewire-request /dev/fw1 fcp 0x016002c0000105ffff00 > > response: 000: 0c 60 02 c0 00 01 05 ff ff 00 03 > .`......... > > $ ./firewire-request /dev/fw1 fcp 0x016002c0000106ffff00 > > response: 000: 08 60 02 c0 00 01 06 ff ff 00 .`........ > > (<- shorter) > > $ ./firewire-request /dev/fw1 fcp 0x016002c0000107ffff00 > > response: 000: 08 60 02 c0 00 01 07 ff ff 00 .`........ > > $ ./firewire-request /dev/fw1 fcp 0x016002c00001ffffff00 > > response: 000: 08 60 02 c0 00 01 ff ff ff 00 .`........ > > (<-srsly?) > > > > As for the second batch: > > > > $ ./firewire-request /dev/fw1 fcp 0x016002c0010100ffff00 > > response: 000: 0c 60 02 c0 01 01 00 ff ff 00 00 > .`......... > > $ ./firewire-request /dev/fw1 fcp 0x016002c0010101ffff00 > > response: 000: 0c 60 02 c0 01 01 01 ff ff 00 00 > .`......... > > (<- didn't fail) > > > > So again... > > > > $ ./firewire-request /dev/fw1 fcp 0x016002c0010102ffff00 > > response: 000: 0c 60 02 c0 01 01 02 ff ff 00 00 > .`......... > > $ ./firewire-request /dev/fw1 fcp 0x016002c0010103ffff00 > > response: 000: 0c 60 02 c0 01 01 03 ff ff 00 02 > .`......... > > $ ./firewire-request /dev/fw1 fcp 0x016002c0010104ffff00 > > response: 000: 0c 60 02 c0 01 01 04 ff ff 00 03 > .`......... > > $ ./firewire-request /dev/fw1 fcp 0x016002c0010105ffff00 > > response: 000: 08 60 02 c0 01 01 05 ff ff 00 .`........ > > (<- shorter) > > $ ./firewire-request /dev/fw1 fcp 0x016002c0010106ffff00 > > response: 000: 08 60 02 c0 01 01 06 ff ff 00 .`........ > > $ ./firewire-request /dev/fw1 fcp 0x016002c001010fffff00 > > response: 000: 08 60 02 c0 01 01 0f ff ff 00 .`........ > > > > Honestly I have no idea what is going on. :D > > It looks to work well. > > You tried for input plugs of audio subunit, thus the shorter > response with 0x08 in the first byte (=NOT IMPLEMENTED) is > expected for inquiry to 6th input plug. > > Hm. I guess your issue is a kind of Heisenbugs[1]. It seems to > depend on case. To drill down the case in which the issue > appears, I'd like you to investigate whether you can see the > same log every time you run with libffado (jackd with Firewire > backend, or ffado-dbus-server) or not: > > > Error (bebob_avplug.cpp)[ 237] discoverPlugType: Plug does not implement > extended plug info plug type info command > > Error (bebob_avplug.cpp)[ 120] discover: discover: Could not discover > plug type (1,1,0,0,1) > > > Additionally, I write a patch for ALSA bebob driver to support > your device[2]. If you need a prompt solution to use the device in > Linux-based system, it's available in topic branch of my remote > repository. But it's required for you to study the way to update > installed driver modules... > > I note that ALSA bebob driver supports transmission of audio frames > and MIDI messages, thus it's not available to control internal DSP. > > [1] https://en.wikipedia.org/wiki/Heisenbug > [2] > https://github.com/takaswie/snd-firewire-improve/commit/1c9fabb7dd9de36ea829700df7eb13a40393a679 > [3] https://github.com/takaswie/snd-firewire-improve/tree/topic/fw66 > > > Regards > > Takashi Sakamoto > _______________________________________________ Alsa-devel mailing list Alsa-devel@alsa-project.org https://mailman.alsa-project.org/mailman/listinfo/alsa-devel