Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 20AE2C83F33 for ; Tue, 5 Sep 2023 12:16:49 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id B510984B; Tue, 5 Sep 2023 14:15:57 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz B510984B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1693916207; bh=2MHYRwe9rnpuICDY7bZx5GUQvBJY3G6aT6x/qmGL7hg=; h=Date:To:References:Cc:From:Subject:In-Reply-To:Reply-To:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=B+XLU0Q4AG2AVYWxE1w7ZVX2Pu4nZ9KG1odklBnhGu7UuDSHjaLm88Fa16bPJOZ39 LqHC3fTtX4w07vhq7EhErmKZLfipzTi1egS7s/hQPZ2JaWGrRFcG9CxZiObtxsvxGy QUms+IJ5izqHVmCFwHD19AeB1gaxX0Zv538QHXF8= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 8BB73F80527; Tue, 5 Sep 2023 14:15:37 +0200 (CEST) Received: from mailman-core.alsa-project.org (mailman-core.alsa-project.org [10.254.200.10]) by alsa1.perex.cz (Postfix) with ESMTP id CB53FF80527; Tue, 5 Sep 2023 14:15:36 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id BB620F8047D; Tue, 5 Sep 2023 10:57:35 +0200 (CEST) Received: from asave03.hostfactory.ch (asave03.hostfactory.ch [185.16.174.135]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 5733CF800F5 for ; Tue, 5 Sep 2023 10:57:24 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 5733CF800F5 Received: from server11.hostfactory.ch ([185.117.169.60]) by asave03.hostfactory.ch with esmtps (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qdRs5-0001vg-90; Tue, 05 Sep 2023 10:57:23 +0200 Received: from [10.208.232.97] (unknown [185.12.131.94]) (Authenticated sender: rolf.anderegg@weiss.ch) by server11.hostfactory.ch (Postfix) with ESMTPSA id E709440E8EFB3; Tue, 5 Sep 2023 10:57:13 +0200 (CEST) Message-ID: <194ed68c-c06f-9451-73e6-3574ff341dc7@weiss.ch> Date: Tue, 5 Sep 2023 10:57:12 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Content-Language: de-CH To: o-takashi@sakamocchi.jp References: <24703333-9250-40bf-e736-a5f3c4862034@weiss.ch> <20230728131308.GA142765@workstation.local> <7a0cf3fd-9e31-45e1-7aa4-97cab27dafa7@weiss.ch> <20230731140655.GA367100@workstation.local> <81450de2-3bf5-cb96-114f-6d75314e5a03@weiss.ch> <20230808152511.GA729027@workstation.local> <20230822135807.GA470519@workstation.local> <20230831132817.GB174574@workstation.local> <20230905012028.GA262570@workstation.local> Cc: alsa-devel@alsa-project.org, Michele Perrone From: Rolf Anderegg Organization: Weiss Engineering Ltd. Subject: Re: ALSA: dice: improve support for Weiss devices In-Reply-To: <20230905012028.GA262570@workstation.local> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-PPP-Message-ID: <169390423424.14369.13692411379431697553@server11.hostfactory.ch> X-PPP-Vhost: weiss.ch X-Originating-IP: 185.117.169.60 X-SpamExperts-Domain: outboundprotection.hostfactory.ch X-SpamExperts-Username: 185.117.169.60 Authentication-Results: hostfactory.ch; auth=pass smtp.auth=185.117.169.60@outboundprotection.hostfactory.ch X-SpamExperts-Outgoing-Class: ham X-SpamExperts-Outgoing-Evidence: Combined (0.12) X-Recommended-Action: accept X-Filter-ID: Pt3MvcO5N4iKaDQ5O6lkdGlMVN6RH8bjRMzItlySaT+gqpPiFbJ0QQ2lnl7qvUScPUtbdvnXkggZ 3YnVId/Y5jcf0yeVQAvfjHznO7+bT5ynOqv5wVH0VS/etXvrFNNzaJlM0GUlwLkcZrRacppWhTh3 wKoTBNAKgp9qBcKLgDl1CmCG4MXmWFl9KMUaH9XX58fMnqZUTt7CyKlJUh+zhuJdoXcSm+MMatNN DNB2PfqDJYXE4Dl0gs/Km8rE1WFZsa4tn+I7Msq8d2ButzR7zuNCJEw/kSI+NGmTkOAYrsWG+7KW gD+bDPIkhgaV+BrNPm4RC15bm+XtbeDRPYK0+jEhP40QAirHpNS4YoSI2quRX4CqZGaDhAYAy17q LsiPEjbpD80/bJiKjNrjoh6e0i1+Itm3Zi67f33Q0vSIt5Es9EoJF76glRJeGkLNzPOkhY6U4Nwm pcGPuCEf4Z43ofcLVphtCwl8mpTwF6N+yd3meH6vXVooEJgrc7O3bOwHG4jNxwLDu0EPJmzXz3lI JZGQYfs9F/5Z8G6oVO3G8vqzIh1wkn5B+muMTuS2LDwzt8Ds8HhMu8AsuC+XP0IWdXNPnE19HtJr tg3Pj7jTUmPeUd4qXkcTpXUhLfkIyoAKIK/1NH5THMtlYvyHAYGOGuJw+IsbRAYC1LPVQPP+P/MU IKFuyZZpeW4SbXxBSCRrOs7vsAFzVd1v1GhPoE7QPxC59DegVi6blZxv1U8KkX2uKrU74lZlsFOl gFX20rO1HXOpautW7CbGNZwwbJsCHp/kMSmXrYKZNCJovpK1wz63CbV8Zw2lmL9cOWgYRg4RZeC+ xOGUeJHFDzHrZb8RMeiz0C3wJ/Tus61aZWHQ8aIZ99SJ6uKkUf5M3Jzws9T5ioF0BjXWAU1vmSbm ljue91wcXFuwGFFjpBMGkg875o0v+vZ3YbQI3JxBioGzgNK0SWIiDpqdN4qbPHc11xYymnmywFHG auIdg50ahSvWmwPrjuU3A3io6xJmD59iFVkbsKSvTEqJB5UsC6xx3EoswRGPIAIpAWefZdZabSnD 9siUkxE+SK4CkqqQuY/ADtB7VmkAHwHuPWE1+MMVWSY/DLpLeMX9LG2Gr3VtpElgRF4yYVk6thCV cysKZKQpuBbVY6p3bUp7p9VcHLKlW2db9DNsrBagLoEqqxMVcVS4bjQ= X-Report-Abuse-To: spam@asave01.hostfactory.ch X-MailFrom: rolf.anderegg@weiss.ch X-Mailman-Rule-Hits: nonmember-moderation X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-alsa-devel.alsa-project.org-0; header-match-alsa-devel.alsa-project.org-1 Message-ID-Hash: DS3URLQU5RYTLMKHUISC4W3DC6WTVS5T X-Message-ID-Hash: DS3URLQU5RYTLMKHUISC4W3DC6WTVS5T X-Mailman-Approved-At: Tue, 05 Sep 2023 12:15:33 +0000 X-Mailman-Version: 3.3.8 Precedence: list Reply-To: rolf.anderegg@weiss.ch List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Hi Takashi, On 05.09.23 03:20, Takashi Sakamoto wrote: > Hi Rolf, > > On Mon, Sep 04, 2023 at 06:00:24PM +0200, Rolf Anderegg wrote: >> Hi Takashi, >> >> Glad that we could be of help. >> We checked this on the firmware side and yes, we can confirm that the >> Weiss MAN301 is the only device with AV/C protocol (using vendor dependent >> commands). > > OK. It is good firmware design to make snd-dice-ctl-service simpler. > >> We are deploying a small set of commands in order to probe and control >> the parameters on the MAN301: >> >> WEISS_CMD_ID_DEV_CONST: >> probe the number of parameters >> >> WEISS_CMD_ID_PARAM_OP: >> read/write to a parameter >> >> WEISS_CMD_ID_PARAM_INFO: >> read parameter info (index, type, iface type, name) >> >> WEISS_CMD_ID_ENUM_ITEM_INFO: >> read parameter enum type info >> >> This allows us to populate and control snd-control instances that represent >> the device's featured parameters [1]. >> >> How would you like to proceed for `snd-firewire-ctl-services`? >> We can start by giving you the output of `amixer contents` for the MAN301, >> so you see all the controls and their possible values (see below). > > Great. In my current plan for snd-dice-ctl-service, action items would > be enumerated in below: > > 1. Add support for all of models except for MA301 (need additional work to > current MR to exclude MA301) > 2. implement the vendor dependent command to `firewire-dice-protocols` > crate[2] with dependency on `ta1394_avc_general` crate[3] > 3. implement the control primitives to `firewire-dice-protocols` in the > fasion of hard-code > 4. Add support for MA301 > > The reason of hard-code against your implementation in dice-avc.c is > to express hardware specification in code. FireWire audio devices are > nowadays not updated anymore, and I think the explicit control primitives > is helpful to remaining users. Yes, we agree that it's appropriate to hardcode the currently available controls. In that case you will only be using the following vendor specific command to write parameter values [1][2]: WEISS_CMD_ID_PARAM_OP: read/write to a parameter > > [1] https://github.com/alsa-project/snd-firewire-ctl-services/pull/175 > [2] https://crates.io/crates/firewire-dice-protocols > [3] https://docs.rs/ta1394-avc-general/latest/ta1394_avc_general/ > >> Let us know if there's any additional information we can provide. > > If the control primitives have been changed (newly added or abandoned) > between several firmware versions, I would like you to inform it to me. Thank you, we would inform you of any changes. But I doubt that that will ever be necessary. > >> Kind regards, >> Rolf Anderegg >> >> >> [1] https://github.com/weiss-engineering/snd-dice/blob/avc/dice-avc.c > > Thanks for your delivery of useful information for Weiss models. It is > my pleasure to maintain Linux systems to use them for 6 more years. Thank you Takashi, we highly appreciate your engagement. Best regards, Rolf Anderegg [1] https://github.com/weiss-engineering/snd-dice/blob/avc/dice-avc.c#L135 [2] https://github.com/weiss-engineering/snd-dice/blob/avc/dice-avc.c#L201 > > > Regards > > Takashi Sakamoto > >> -- >> $ amixer contents >> numid=3,iface=CARD,name='Dual Wire Mode Switch' >> ; type=BOOLEAN,access=rw------,values=1 >> : values=off >> numid=4,iface=CARD,name='Dual Wire Word Clock Half Rate Switch' >> ; type=BOOLEAN,access=rw------,values=1 >> : values=off >> numid=1,iface=CARD,name='Sync source' >> ; type=ENUMERATED,access=rw------,values=1,items=13 >> ; Item #0 'AES1' >> ; Item #1 'AES2' >> ; Item #2 'AES3' >> ; Item #3 'AES4' >> ; Item #4 'AES' >> ; Item #5 'ADAT' >> ; Item #6 'TDIF' >> ; Item #7 'Wordclock' >> ; Item #8 'ARX1' >> ; Item #9 'ARX2' >> ; Item #10 'ARX3' >> ; Item #11 'ARX4' >> ; Item #12 'Internal' >> : values=2 >> numid=10,iface=MIXER,name='DAC::Analog Output Level' >> ; type=ENUMERATED,access=rw------,values=1,items=4 >> ; Item #0 '0 dB' >> ; Item #1 '-10 dB' >> ; Item #2 '-20 dB' >> ; Item #3 '-30 dB' >> : values=1 >> numid=8,iface=MIXER,name='DAC::DAC Filter Type' >> ; type=ENUMERATED,access=rw------,values=1,items=2 >> ; Item #0 'A' >> ; Item #1 'B' >> : values=0 >> numid=9,iface=MIXER,name='DAC::DAC Output Playback Switch' >> ; type=BOOLEAN,access=rw------,values=1 >> : values=on >> numid=7,iface=MIXER,name='DAC::DAC Polarity Inversion Playback Switch' >> ; type=BOOLEAN,access=rw------,values=1 >> : values=off >> numid=2,iface=MIXER,name='Digital Input Capture Route' >> ; type=ENUMERATED,access=rw------,values=1,items=3 >> ; Item #0 'AES/EBU (XLR)' >> ; Item #1 'S/PDIF (RCA)' >> ; Item #2 'S/PDIF (TOS)' >> : values=2 >> numid=6,iface=MIXER,name='RCA::RCA Output Playback Switch' >> ; type=BOOLEAN,access=rw------,values=1 >> : values=on >> numid=5,iface=MIXER,name='XLR::XLR Output Playback Switch' >> ; type=BOOLEAN,access=rw------,values=1 >> : values=on >> >> On 31.08.23 15:28, Takashi Sakamoto wrote: >>> Hi Michele, >>> >>> Thanks for your contribution of configuration ROM for Weiss models[1]. >>> I'm sorry for my little reaction but currently I'm working for Debian ITP >>> to linux-firewire-utils package[2][3]. >>> >>> As a quick glance, all of configuration ROMs except for Weiss MAN301 >>> include single unit directory, while the exception includes two unit >>> directories; 1394TA AV/C protocol and TCAT protocol. It means that >>> the vendor-dependent AV/C command[4] is implemented in MAN301, but not >>> in the others. Then I would like to figure out whether it is correct or >>> not. If it is unique for MAN301, the implementation of control service >>> can be simpler to support the command just for MAN301. >>> >>> [1] https://github.com/takaswie/am-config-roms/pull/5 >>> [2] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1050551 >>> [3] https://mentors.debian.net/package/linux-firewire-utils/ >>> [4] https://github.com/weiss-engineering/snd-dice/blob/avc/dice-avc.c >>> >>> >>> Regards >>> >>> Takashi Sakamoto