From patchwork Sun Oct 13 21:24:10 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Seth Poulsen X-Patchwork-Id: 13834424 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 25B32CFC50A for ; Mon, 14 Oct 2024 09:07:14 +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 56510820; Mon, 14 Oct 2024 11:07:02 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 56510820 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1728896832; bh=dEOkx1uGWtJcAGrsGjcgVVAnfYzZ1FJ1gsLf+68kC5E=; h=Date:From:To:Subject:References:List-Id:List-Archive:List-Help: List-Owner:List-Post:List-Subscribe:List-Unsubscribe:From; b=FmvL8vKBor9Y3qR4kTqxSGdtqW82lazhnnIyNN09evwM5SJ7kL4w7qWchMNVdU70Q 9soz6b3gMbIJIjsxRbSNLrpA6GgzoG+0JzIKN5h46a0tzJYTgawy63vRS9sQxOOgY7 zchykMhPTRBcqivw7fIN+/hflmfAMOWyTRIypgP4= Received: by alsa1.perex.cz (Postfix, from userid 50401) id D1A59F80602; Mon, 14 Oct 2024 11:06:22 +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 938BFF805F3; Mon, 14 Oct 2024 11:06:21 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 657A6F80448; Sun, 13 Oct 2024 23:24:19 +0200 (CEST) Received: from sonic320-21.consmr.mail.ne1.yahoo.com (sonic320-21.consmr.mail.ne1.yahoo.com [66.163.191.83]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 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 5554EF8016B for ; Sun, 13 Oct 2024 23:24:16 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 5554EF8016B Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key, unprotected) header.d=yahoo.com header.i=@yahoo.com header.a=rsa-sha256 header.s=s2048 header.b=D7tPH1MN DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1728854654; bh=EOoMB6yVnzHisvYdUpnLrVE5szP/Mr4E5txkuAozufo=; h=Date:From:To:Subject:References:From:Subject:Reply-To; b=D7tPH1MNTPV6Q5jZaUo/MDXUS9cE3SAWofFfYo4870gh9zk0T0lHcqrnREpM2LuxAZDOUYeCe0Nb/IJb7tYnS5XNUxmTz0ApVrb0Gvvc5J9hoYuxWlK8CrpWjSbXMTNX0r3vlcJkPkJ/xXdoR2u98oHzu3eC5YIO93EGcK7PRafHlQloBBTj5Pk744XcefoIcu7lGbwNAl6DFRC0cHJILnujG0Fjy4oOGMST8geFSNdG75uPH6dHWDMdQTC5Kvao7mxDTs5xoDFtsZBTTBXtHB3BiBurp7fNqZzfehqX9XVHviyGUMH2o2Ohm79aW6bDJ04kvAPgr9hBT53PovHzwA== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1728854654; bh=lKsGjUiaZ7wvWKdgza+Pl88+i/KysFj95VlVHNd3xht=; h=X-Sonic-MF:Date:From:To:Subject:From:Subject; b=LjvIFTufyyG9NdyBf3fFIi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Os4 NdiqxsQhQQ4o_PMva69O_FAb8zbsHXq0ClzQF.JjIGVncSH48S_CesjJMWEgDffToYUXlsV0WvIN xt0FXfBa7voBUaHTFRZEhBB.HIhotvZOCEhaqQuN06x9IY5janNkxOnz_lqAy9L3sal0NZbbRv3I qZOtuABYKtKfKFzZUcJaWIq6AKYyZdJBsM0OfMq7hqZxDMOl3X4w5WGxzeY16s3Uk9GqlAoEy5uD GdGK0JrzcP5bP7wUD2FlnEnzsmfA9RDrU6tbNbG9G7C73U871U.xQinOzut4AbcESB4piiXdD12S IIvZsBo2iqUCU6qK3b96NPuOxQN1aZwMo1aQLwN7TLIbukaChB.nWiNwXU1ROBApdoGf25otk0kp Ttwj_izzz3sQPj5UW9DdKqf_MgNflA8gKq6t3QLyyRHtFAeBFCYVN0XGAtvT4uiYu9f6MAI2QSOT 4TeI9KTClM.l2TSnvqVlHmVKvvFUuXgOiKZPAWF9OXY8yDu.c5ZZBlV1B0awMUkreYg-- X-Sonic-MF: X-Sonic-ID: 56dadeaa-64a3-49d5-be14-2809fdc03866 Received: from sonic.gate.mail.ne1.yahoo.com by sonic320.consmr.mail.ne1.yahoo.com with HTTP; Sun, 13 Oct 2024 21:24:14 +0000 Date: Sun, 13 Oct 2024 21:24:10 +0000 (UTC) From: Seth Poulsen To: "alsa-devel@alsa-project.org" , "akpm@linux-foundation.org" Message-ID: <572241092.1343790.1728854650969@mail.yahoo.com> Subject: [PATCH] Support for Line 6 TonePort KB37 MIME-Version: 1.0 References: <572241092.1343790.1728854650969.ref@mail.yahoo.com> X-Mailer: WebService/1.1.22806 YMailNorrin X-MailFrom: poulsenseth@yahoo.com 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: 2A2F6XQ7JWNKTUH7GTOFA2Y6NS4YUMZG X-Message-ID-Hash: 2A2F6XQ7JWNKTUH7GTOFA2Y6NS4YUMZG X-Mailman-Approved-At: Mon, 14 Oct 2024 09:05:59 +0000 X-Content-Filtered-By: Mailman/MimeDel 3.3.9 X-Mailman-Version: 3.3.9 Precedence: list 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: The Line 6 TonePort KB37 is a device with the same ports as the TonePort UX2, but with a MIDI keyboard onboard.  It can use the same driver as the UX2, it just needed to be enabled. -Seth Poulsen diff --git a/sound/usb/line6/toneport.c b/sound/usb/line6/toneport.c index d0a555dbe324..a78b7b3cc6ce 100644 --- a/sound/usb/line6/toneport.c +++ b/sound/usb/line6/toneport.c @@ -26,6 +26,7 @@ enum line6_device_type { LINE6_TONEPORT_GX, LINE6_TONEPORT_UX1, LINE6_TONEPORT_UX2, + LINE6_TONEPORT_KB37, }; struct usb_line6_toneport; @@ -344,6 +345,7 @@ static bool toneport_has_source_select(struct usb_line6_toneport *toneport) switch (toneport->type) { case LINE6_TONEPORT_UX1: case LINE6_TONEPORT_UX2: + case LINE6_TONEPORT_KB37: case LINE6_PODSTUDIO_UX1: case LINE6_PODSTUDIO_UX2: return true; @@ -481,6 +483,7 @@ static const struct usb_device_id toneport_id_table[] = { { LINE6_DEVICE(0x4147), .driver_info = LINE6_TONEPORT_GX }, { LINE6_DEVICE(0x4141), .driver_info = LINE6_TONEPORT_UX1 }, { LINE6_IF_NUM(0x4142, 0), .driver_info = LINE6_TONEPORT_UX2 }, + { LINE6_IF_NUM(0x4143, 0), .driver_info = LINE6_TONEPORT_KB37 }, {} }; @@ -550,6 +553,15 @@ static const struct line6_properties toneport_properties_table[] = { .ep_audio_r = 0x82, .ep_audio_w = 0x01, }, + [LINE6_TONEPORT_KB37] = { + .id = "TonePortKB37", + .name = "TonePort KB37", + .capabilities = LINE6_CAP_PCM, + .altsetting = 2, /* defaults to 44.1kHz, 16-bit */ + /* no control channel */ + .ep_audio_r = 0x82, + .ep_audio_w = 0x01, + }, }; /*