Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp1145280pxv; Fri, 9 Jul 2021 19:27:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwMyLGr78eUpQZd/ZzbIKzMT8SQ1lR0uDRiVwdykkcJE/yERa3EjSmYRkv+yVYpZHr2BmLr X-Received: by 2002:a17:906:c1da:: with SMTP id bw26mr40730419ejb.253.1625884025965; Fri, 09 Jul 2021 19:27:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625884025; cv=none; d=google.com; s=arc-20160816; b=VOo4i1ryDGZX906WdPn8FzVbv4a+lrackyAE9VyXk7WtG+v28as2MQU3FO5enqCyr3 twaSUN244aEHpibgyBUaWJSMsKFoGsmGH8lr/46oyvCzR+Q5oPTH3WryU7sRTg/wURmX /BmsPgt61Tuj3+CQM9wnC3ro4lLPYb2bmBshCXMr0KRGPxOtKOqBWeSinuu1357Ks2Fp 0f2n/oOih1rnR8Bop298kJqFomginSNTI5QF8ZOUQB0981AGx7x84/5e7cI5jvqbD0UX NyzPie6nkt07p8TrvpGWLVD3DAZ25qAQsVU1Wf/5Xh6sTcojAiukuJrhDLQPRHYKGod1 +Gqg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=sThTqV4qtZ8Tp8/Pk/TK+xAA+M2L0oBi5YzwSF6utIo=; b=OMZZDWhaJ6MzDOKP4T1M+/7RQLbpLCYRPdQs/ldCl1AFSItebkpCZisAU/0mghcaHw tuqelhPeRL2EpNGmmeJpSr1fV8ilyd+KebH7LGz5hetw7T936HrsV0xQ0F51lDNKa8RX 2C3zD+r9ZSoQzU3OYH8iEToZc6BYX/sUQmHh1PIEfqT0i+BR55lDGMYh7EopYQGv1Vsj YTpOjRQwbIvIaPTO4+sNlZUYTOnZJ9Ikbzl1+os/IgKkyFZzhWlDUDMCDtetBa+XFRVT GoFfeASTwyFKGs+Fn5e+IKqh5OFoRDRBmaUAja1cv30MR6cDJeXd36YJ0Vmk1AQulsys a7gw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=LUb3Zjoc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e5si8242154ejm.62.2021.07.09.19.26.42; Fri, 09 Jul 2021 19:27:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=LUb3Zjoc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234036AbhGJC2Q (ORCPT + 99 others); Fri, 9 Jul 2021 22:28:16 -0400 Received: from mail.kernel.org ([198.145.29.99]:42146 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233598AbhGJC0p (ORCPT ); Fri, 9 Jul 2021 22:26:45 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id E931F613E8; Sat, 10 Jul 2021 02:23:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1625883836; bh=zmj9WyXtSseTTgocPzLouGUl1hEY6kvuM9oHZQw1Zo8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=LUb3ZjoctrQKPVEzYtWT+OFXwik0fHuRD7D7dVl80lV3TmXOLs0uDlL4b50aYPwY3 zlTdc1ftTI72GqQIZXyXfYVaUH2tApEAhvPxNOMQKJRpX3dU2GZ1KJK+j6e1syYWR3 uEbcg2hPDBlH+oHqpHapVAzAeKXkjUEsO8+TLEx9lin2OfgetqZBTuedv0sX3z+SAh IHeLpWGQml4ostakBar/Xy+JNcLijdlNNA/An9w5lZkniiz6+H0Lr/xBQZrzvjR/x8 tSRKnj5t9CmwBZbI53IfXsecUS6X1pvZgcgEkVhC8r7kG+rTVo1UAWxzpv2+CB1aOO DTF0j07nRDVcQ== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Takashi Sakamoto , Daniel Jozsef , Takashi Iwai , Sasha Levin , alsa-devel@alsa-project.org Subject: [PATCH AUTOSEL 5.12 083/104] ALSA: bebob: add support for ToneWeal FW66 Date: Fri, 9 Jul 2021 22:21:35 -0400 Message-Id: <20210710022156.3168825-83-sashal@kernel.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210710022156.3168825-1-sashal@kernel.org> References: <20210710022156.3168825-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Takashi Sakamoto [ Upstream commit 50ebe56222bfa0911a932930f9229ee5995508d9 ] A user of FFADO project reported the issue of ToneWeal FW66. As a result, the device is identified as one of applications of BeBoB solution. I note that in the report the device returns contradictory result in plug discovery process for audio subunit. Fortunately ALSA BeBoB driver doesn't perform it thus it's likely to handle the device without issues. I receive no reaction to test request for this patch yet, however it would be worth to add support for it. daniel@gibbonmoon:/sys/bus/firewire/devices/fw1$ grep -r . * Binary file config_rom matches dev:244:1 guid:0x0023270002000000 hardware_version:0x000002 is_local:0 model:0x020002 model_name:FW66 power/runtime_active_time:0 power/runtime_active_kids:0 power/runtime_usage:0 power/runtime_status:unsupported power/async:disabled power/runtime_suspended_time:0 power/runtime_enabled:disabled power/control:auto subsystem/drivers_autoprobe:1 uevent:MAJOR=244 uevent:MINOR=1 uevent:DEVNAME=fw1 units:0x00a02d:0x010001 vendor:0x002327 vendor_name:ToneWeal fw1.0/uevent:MODALIAS=ieee1394:ven00002327mo00020002sp0000A02Dver00010001 fw1.0/power/runtime_active_time:0 fw1.0/power/runtime_active_kids:0 fw1.0/power/runtime_usage:0 fw1.0/power/runtime_status:unsupported fw1.0/power/async:disabled fw1.0/power/runtime_suspended_time:0 fw1.0/power/runtime_enabled:disabled fw1.0/power/control:auto fw1.0/model:0x020002 fw1.0/rom_index:15 fw1.0/specifier_id:0x00a02d fw1.0/model_name:FW66 fw1.0/version:0x010001 fw1.0/modalias:ieee1394:ven00002327mo00020002sp0000A02Dver00010001 Cc: Daniel Jozsef Reference: https://lore.kernel.org/alsa-devel/20200119164335.GA11974@workstation/ Signed-off-by: Takashi Sakamoto Link: https://lore.kernel.org/r/20210619083922.16060-1-o-takashi@sakamocchi.jp Signed-off-by: Takashi Iwai Signed-off-by: Sasha Levin --- sound/firewire/Kconfig | 1 + sound/firewire/bebob/bebob.c | 3 +++ 2 files changed, 4 insertions(+) diff --git a/sound/firewire/Kconfig b/sound/firewire/Kconfig index def1f3d5ecf5..12664c3a1414 100644 --- a/sound/firewire/Kconfig +++ b/sound/firewire/Kconfig @@ -110,6 +110,7 @@ config SND_BEBOB * M-Audio Ozonic/NRV10/ProfireLightBridge * M-Audio FireWire 1814/ProjectMix IO * Digidesign Mbox 2 Pro + * ToneWeal FW66 To compile this driver as a module, choose M here: the module will be called snd-bebob. diff --git a/sound/firewire/bebob/bebob.c b/sound/firewire/bebob/bebob.c index 90e98a6d1546..67fa0f2178b0 100644 --- a/sound/firewire/bebob/bebob.c +++ b/sound/firewire/bebob/bebob.c @@ -59,6 +59,7 @@ static DECLARE_BITMAP(devices_used, SNDRV_CARDS); #define VEN_MAUDIO1 0x00000d6c #define VEN_MAUDIO2 0x000007f5 #define VEN_DIGIDESIGN 0x00a07e +#define OUI_SHOUYO 0x002327 #define MODEL_FOCUSRITE_SAFFIRE_BOTH 0x00000000 #define MODEL_MAUDIO_AUDIOPHILE_BOTH 0x00010060 @@ -486,6 +487,8 @@ static const struct ieee1394_device_id bebob_id_table[] = { &maudio_special_spec), /* Digidesign Mbox 2 Pro */ SND_BEBOB_DEV_ENTRY(VEN_DIGIDESIGN, 0x0000a9, &spec_normal), + // Toneweal FW66. + SND_BEBOB_DEV_ENTRY(OUI_SHOUYO, 0x020002, &spec_normal), /* IDs are unknown but able to be supported */ /* Apogee, Mini-ME Firewire */ /* Apogee, Mini-DAC Firewire */ -- 2.30.2