From nobody Tue Apr 7 11:15:48 2026 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id D6266C4332F for ; Sat, 15 Oct 2022 23:34:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229616AbiJOXeX (ORCPT ); Sat, 15 Oct 2022 19:34:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33410 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229504AbiJOXeS (ORCPT ); Sat, 15 Oct 2022 19:34:18 -0400 Received: from mail-oa1-x33.google.com (mail-oa1-x33.google.com [IPv6:2001:4860:4864:20::33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BECC21DA62 for ; Sat, 15 Oct 2022 16:34:16 -0700 (PDT) Received: by mail-oa1-x33.google.com with SMTP id 586e51a60fabf-1326637be6eso9823135fac.13 for ; Sat, 15 Oct 2022 16:34:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=1m0RqvaU8CcvLjEgPz7d1jceF1TiMS+vA+25fd7T9/E=; b=muSxxihox91FUI6kHRr7yKu3S6AalcTSrfFTR3dM9yTcSzf+UVf7XV4Y3/C6HLcbzC zF56a9IHWYGmkkobPmNpdirA8S7oBMeRcxAx23Nyn78WIhk7S8Je6AV7qAyfb03nkTHE YGnu26myGPJXp8c8SyHgGcKnqYfOHQlVMZAydrZiIBaBahKlenipi+6lArTqftxVHg54 zSTgIT+M2XXE+ifzByhe5LWADKXRhlorj55OEEjwNGcJALm8Du5jEclq1Uxyd69y2L0j ilNv1fYAQW8pMEJ4WFyzQ9/LPLFrnTViQ4yCYcOjvso+1RsNT+9epgaZK5GW+dlVMqVl SCdQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=1m0RqvaU8CcvLjEgPz7d1jceF1TiMS+vA+25fd7T9/E=; b=aLamOOXbPMZ6RygeKWhwe8ZLiRAMksspNFhuNzwN0LV+mSkOzQ9bdQseUdv6A9+sQj 4gI24mKhGEgQ2dA4aVtd7qqVVSsjzjf/4GorsuyJVKsPKcfMG/3yN7Wv2c+rRT0rr62D Qpj/s+qEVcePdb7lBK8I24BN5Euj4uvEfv5uZVtcyOsa+vRhA/SQQg2xCJjr6FWqe+oZ lqENnzDRu1bl6WNwU4behmvw7c16HcmEyiH0soR5lMbzoDy2II+nr+ZmE80DKhlJmaQN xFbEMrHNxQ1qUAwmNWi9eYHbbdwcQkxHf3sxiZvPsHjQHn9FFt3EiGaizZkXBp8sklw1 1RCg== X-Gm-Message-State: ACrzQf15fQirODQZDebZovc87eMfkE/HWjYP5m+bAfqrEBXacdaG1ZZf CXp4LgCHkNFs0mfELwDEM+U= X-Google-Smtp-Source: AMsMyM6NpoEW7uV+vjQlw5+5bf1zbaYszcJOVcIsToHnDYk6J5ZzPaW3K2Vq+4FMMgDUoApvN7mphw== X-Received: by 2002:a05:6871:28e:b0:136:4f44:78a7 with SMTP id i14-20020a056871028e00b001364f4478a7mr11526358oae.264.1665876856020; Sat, 15 Oct 2022 16:34:16 -0700 (PDT) Received: from bebop.lan (2603-8080-2704-6601-b457-170a-9e05-cc6d.res6.spectrum.com. [2603:8080:2704:6601:b457:170a:9e05:cc6d]) by smtp.gmail.com with ESMTPSA id w3-20020a4adec3000000b004808e0d8467sm2653858oou.2.2022.10.15.16.34.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 15 Oct 2022 16:34:15 -0700 (PDT) From: George Hilliard To: Clemens Ladisch , Takashi Sakamoto Cc: alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, George Hilliard Subject: [PATCH 1/2] sound: dice: Fix "Firestudio" typo Date: Sat, 15 Oct 2022 18:33:29 -0500 Message-Id: <20221015233330.8679-2-thirtythreeforty@gmail.com> X-Mailer: git-send-email 2.38.0 In-Reply-To: <20221015233330.8679-1-thirtythreeforty@gmail.com> References: <20221015233330.8679-1-thirtythreeforty@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" No functionality change, just a small cleanup before adding the Firestudio Mobile. Signed-off-by: George Hilliard Acked-by: Takashi Sakamoto --- sound/firewire/dice/dice-presonus.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/firewire/dice/dice-presonus.c b/sound/firewire/dice/dice= -presonus.c index 967cc3119a64..c85178e64667 100644 --- a/sound/firewire/dice/dice-presonus.c +++ b/sound/firewire/dice/dice-presonus.c @@ -11,7 +11,7 @@ struct dice_presonus_spec { bool has_midi; }; =20 -static const struct dice_presonus_spec dice_presonus_firesutio =3D { +static const struct dice_presonus_spec dice_presonus_firestudio =3D { .tx_pcm_chs =3D {{16, 16, 0}, {10, 2, 0} }, .rx_pcm_chs =3D {{16, 16, 0}, {10, 2, 0} }, .has_midi =3D true, @@ -23,7 +23,7 @@ int snd_dice_detect_presonus_formats(struct snd_dice *dic= e) u32 model_id; const struct dice_presonus_spec *spec; } *entry, entries[] =3D { - {0x000008, &dice_presonus_firesutio}, + {0x000008, &dice_presonus_firestudio}, }; struct fw_csr_iterator it; int key, val, model_id; --=20 2.38.0 From nobody Tue Apr 7 11:15:48 2026 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id AD0B7C4332F for ; Sat, 15 Oct 2022 23:34:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229655AbiJOXef (ORCPT ); Sat, 15 Oct 2022 19:34:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33958 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229651AbiJOXeb (ORCPT ); Sat, 15 Oct 2022 19:34:31 -0400 Received: from mail-oi1-x231.google.com (mail-oi1-x231.google.com [IPv6:2607:f8b0:4864:20::231]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9D36625DF for ; Sat, 15 Oct 2022 16:34:24 -0700 (PDT) Received: by mail-oi1-x231.google.com with SMTP id p127so8030588oih.9 for ; Sat, 15 Oct 2022 16:34:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=JPQelZHWBax8evlJitFJezC2LMaDni97t0+7jQuxYBI=; b=HOrXZaMALQvNg42ExZNKSVde7MtDk23foFTZBE9YpthRYiIX85Sv2QBKRqQChKTcvn 8FVlW42HHGxgCv7Dm0TI8Z0ua1sjQwGpw7ZBBc2Qp6oOSSQjjW3YpPM8iiqxL7E0P5MQ HdK3C17/7t1lkcMpheZTiYHP5fAOUDMplxFQjDm/qhzcxy3N/kyB7X4YinQuPujtsSPk thMljsu+4laXO/oeXLb6w4UoJvbnm9feoAbIPMZ4vcGtGy0E5WbN95cfc91Hhocz81gY DmVjrgPFTvOdIBOzavtLGiOw+RD3GB4zvzQtv70r9niAqFIfYjNdJDybJ4ueQnSMVfh6 sXrw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=JPQelZHWBax8evlJitFJezC2LMaDni97t0+7jQuxYBI=; b=HUGq5nKwBH7x6CvXmwAFJ8V0uvco5a1d8/kD70jLA+58nldjTzL5/MNPN4ceQZBZ3r wrk5GM/GZPV6qgZnktgQFp+xW6Qi4pj9F1UKvAXZ1izvczHzR/goMSxty8MkTYTAF1Ew 8RMu6vZXSqYK11LiCtnZIR6lyvxeMpoTBQ3Jgvp8utppEqc+bjTKj5eohhUis7S2XCMF dWkeYaYf8+fq7FnRP3+O/TSkGSprdoYwk/2+YGuVlTTy85sUL+8ZD5rcFkY1lxERgClw HZYmtB0uZQCNqqcSUiKvNBfkQQIJFV9sEKxohvB3wc5Ay6Ro6pR8cAQvW7djcCIPCsnc U5wg== X-Gm-Message-State: ACrzQf343T4OdRHu3BH451oXZMZmpbVMrJN8VrAFByk6Ut0PS+wqZMMW A+TcyqpKs0ZFWcVli2vF9M0= X-Google-Smtp-Source: AMsMyM7WBa77EYTPszdGxQxNIvpLW3jDSEXTtR17wU4RbToiz0BGZnJfbXq9V1NOG4WnlvAk5Vj9yg== X-Received: by 2002:a05:6808:bcd:b0:353:d856:64db with SMTP id o13-20020a0568080bcd00b00353d85664dbmr2005727oik.168.1665876863699; Sat, 15 Oct 2022 16:34:23 -0700 (PDT) Received: from bebop.lan (2603-8080-2704-6601-b457-170a-9e05-cc6d.res6.spectrum.com. [2603:8080:2704:6601:b457:170a:9e05:cc6d]) by smtp.gmail.com with ESMTPSA id w3-20020a4adec3000000b004808e0d8467sm2653858oou.2.2022.10.15.16.34.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 15 Oct 2022 16:34:23 -0700 (PDT) From: George Hilliard To: Clemens Ladisch , Takashi Sakamoto Cc: alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, George Hilliard Subject: [PATCH 2/2] sound: dice: Add support for Firestudio Mobile Date: Sat, 15 Oct 2022 18:33:30 -0500 Message-Id: <20221015233330.8679-3-thirtythreeforty@gmail.com> X-Mailer: git-send-email 2.38.0 In-Reply-To: <20221015233330.8679-1-thirtythreeforty@gmail.com> References: <20221015233330.8679-1-thirtythreeforty@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" This device is of the same vintage as the already-supported FireStudio, but with a reduced input (10) and output (6) count. Add a configuration block for it. $ crpp < /sys/bus/firewire/devices/fw1/config_rom ROM header and bus information block --------------------------------------------------- 400 0404bc6a bus_info_length 4, crc_length 4, crc 48234 404 31333934 bus_name "1394" 408 e0008102 irmc 1, cmc 1, isc 1, bmc 0, cyc_clk_acc 0, max_rec 8 (512) 40c 000a9204 company_id 000a92 | Presonus Corporation 410 047da647 device_id 04047da647 | EUI-64 000a9204047da647 root directory --------------------------------------------------- 414 0006147f directory_length 6, crc 5247 418 03000a92 vendor: Presonus Corporation 41c 8100000a --> descriptor leaf at 444 420 17000011 model 424 8100000e --> descriptor leaf at 45c 428 0c0087c0 node capabilities per IEEE 1394 42c d1000001 --> unit directory at 430 unit directory at 430 --------------------------------------------------- 430 00048030 directory_length 4, crc 32816 434 12000a92 specifier id: Presonus Corporation 438 13000001 version 43c 17000011 model 440 8100000f --> descriptor leaf at 47c descriptor leaf at 444 --------------------------------------------------- 444 00057914 leaf_length 5, crc 30996 448 00000000 textual descriptor 44c 00000000 minimal ASCII 450 50726553 "PreS" 454 6f6e7573 "onus" 458 00000000 descriptor leaf at 45c --------------------------------------------------- 45c 000792a9 leaf_length 7, crc 37545 460 00000000 textual descriptor 464 00000000 minimal ASCII 468 46495245 "FIRE" 46c 53545544 "STUD" 470 494f5f4d "IO_M" 474 4f42494c "OBIL" 478 45000000 "E" descriptor leaf at 47c --------------------------------------------------- 47c 000792a9 leaf_length 7, crc 37545 480 00000000 textual descriptor 484 00000000 minimal ASCII 488 46495245 "FIRE" 48c 53545544 "STUD" 490 494f5f4d "IO_M" 494 4f42494c "OBIL" 498 45000000 "E" Tested-by: George Hilliard Signed-off-by: George Hilliard --- sound/firewire/dice/dice-presonus.c | 7 +++++++ sound/firewire/dice/dice.c | 8 ++++++++ 2 files changed, 15 insertions(+) diff --git a/sound/firewire/dice/dice-presonus.c b/sound/firewire/dice/dice= -presonus.c index c85178e64667..8b62495846f1 100644 --- a/sound/firewire/dice/dice-presonus.c +++ b/sound/firewire/dice/dice-presonus.c @@ -17,6 +17,12 @@ static const struct dice_presonus_spec dice_presonus_fir= estudio =3D { .has_midi =3D true, }; =20 +static const struct dice_presonus_spec dice_presonus_firestudio_mobile =3D= { + .tx_pcm_chs =3D {{10, 10, 0}, {0, 0, 0} }, + .rx_pcm_chs =3D {{ 6, 6, 0}, {0, 0, 0} }, + .has_midi =3D true, +}; + int snd_dice_detect_presonus_formats(struct snd_dice *dice) { static const struct { @@ -24,6 +30,7 @@ int snd_dice_detect_presonus_formats(struct snd_dice *dic= e) const struct dice_presonus_spec *spec; } *entry, entries[] =3D { {0x000008, &dice_presonus_firestudio}, + {0x000011, &dice_presonus_firestudio_mobile}, }; struct fw_csr_iterator it; int key, val, model_id; diff --git a/sound/firewire/dice/dice.c b/sound/firewire/dice/dice.c index f75902bc8e74..f31ea2bb7766 100644 --- a/sound/firewire/dice/dice.c +++ b/sound/firewire/dice/dice.c @@ -374,6 +374,14 @@ static const struct ieee1394_device_id dice_id_table[]= =3D { .model_id =3D 0x000008, .driver_data =3D (kernel_ulong_t)snd_dice_detect_presonus_formats, }, + // Presonus FireStudio Mobile. + { + .match_flags =3D IEEE1394_MATCH_VENDOR_ID | + IEEE1394_MATCH_MODEL_ID, + .vendor_id =3D OUI_PRESONUS, + .model_id =3D 0x000011, + .driver_data =3D (kernel_ulong_t)snd_dice_detect_presonus_formats, + }, // Lexicon I-ONYX FW810S. { .match_flags =3D IEEE1394_MATCH_VENDOR_ID | --=20 2.38.0