Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp3765910pxb; Mon, 9 Nov 2020 22:19:46 -0800 (PST) X-Google-Smtp-Source: ABdhPJyRNpmms/e90v67TpmhYNX6QbOeiqa1eBxhhAAGKFTB1Ywmeg0hjW97hUpt6B3opStWVz11 X-Received: by 2002:a05:6402:17ad:: with SMTP id j13mr18601779edy.347.1604989185999; Mon, 09 Nov 2020 22:19:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604989185; cv=none; d=google.com; s=arc-20160816; b=chKOV/DZdXXLsUJC22uddXkm7zHm6TpKmv88UQUAH5OjPN6jEsxBfIArw3yzXKi/Jg moO6Pj8w9vAzngs1enoP+p3ePBwD0RIwOq43t3jS3ocf0Njk9MDrh7KIJ9j7Za6wR7mw Bhw12ZSyQ8/NCVdcRozRYx2uXkbUX9jQSWVbrUHS6nJGGIO4mMxymYeJkKe33N/mq6dx kjj5rpvsL7oBTWiRqK86yVvRyxeMwqFw9+q9WPTcy15RYyxFGe7k0j8yHZDrwoa5Mokg Ue6wM94wSvj4HRwlCj5ChZVXQ3I2DMZY0ko3Hywu9sD0rFPPCQSTG7T/qSSR94AvIvVe IVow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:content-transfer-encoding:mime-version :message-id:date:subject:cc:from:dkim-signature; bh=ccUarTYp6bUjAfShVkr+xLVHhptW5cuMEyNTixMpJuY=; b=wPm6Dx3j6ydI1LKRM8gMNRv9jPXUCm4h+0kn/eO+9iTXMSAK7bUh2mug30m8J88dFu dmdyFIeOk9FGoGEjlxglRJ5zar7jJEbXdXDUujwdRxTJHFVt7G48E1wfqpe0uM0lWqMX OT+mQtNhDpq63vMLxOC/h+mUPXXdTrvC6XU8GG4yr540gds9FGkKlUwQIBCpdcnUy3v2 dGdiqrfL3gwT/hJkYhtIHyLyq+wZZ0gvoJn92saLOld8aLZbjF+zhBtwdF06jconYsu9 Pz0IXQTKxGOFTm3/h149yKysZTNlLXXcjndZpe3QN3vOFlqp6cUiMW+g2Vs/Yzm6REzH wkYA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=SbXU6V+1; 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=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h2si8584431ejd.547.2020.11.09.22.19.23; Mon, 09 Nov 2020 22:19:45 -0800 (PST) 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=fail header.i=@gmail.com header.s=20161025 header.b=SbXU6V+1; 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=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729454AbgKJGSG (ORCPT + 99 others); Tue, 10 Nov 2020 01:18:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40840 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728045AbgKJGSF (ORCPT ); Tue, 10 Nov 2020 01:18:05 -0500 Received: from mail-pg1-x542.google.com (mail-pg1-x542.google.com [IPv6:2607:f8b0:4864:20::542]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 635DFC0613CF for ; Mon, 9 Nov 2020 22:18:05 -0800 (PST) Received: by mail-pg1-x542.google.com with SMTP id r10so9253731pgb.10 for ; Mon, 09 Nov 2020 22:18:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=ccUarTYp6bUjAfShVkr+xLVHhptW5cuMEyNTixMpJuY=; b=SbXU6V+16z1iwH4UtdwUHiRG/7uWh5yyAbymm3bCo7PQ2IdiomfpnwueWB1+QwT1li ZbDFISb/BiPX+J/2JpSJ78KtlhwdyOapfpUOpjAdJ5m1eTyKZKU+Kpm3me3KJr51RAp+ JIMm9fJE+oCIcD2uoCvcdT+S7F0Cc2I+xxkKr8YGpIDIHbrQ7141rJZEYO4CZgTSBbhK NA823OjWgwKQSgU3xnU3jc7vd89AxYPBQTwdzzlY0NS9xAgPe8wBKVs8SCxsFaz/Nk/w ihHiwRbtHb/UiUIH5LYVd0VmYLSG57GfvAyWTttq6g2crkjL6wT+l+g4tZwSsBFGs31F 20hA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=ccUarTYp6bUjAfShVkr+xLVHhptW5cuMEyNTixMpJuY=; b=dlsWxyZ4P443h+EZXVQwvEbqG7XrUtbegAkVLUr4EASjqMI8g93h/cZtqFoT/GENmu gAb5frUr+Qf7nAp0eLIjE8pkVrrZ3j0WnWR1oAhaxN2AI/tuw8FHEvwrnNvmS+OkMK6F 8jW94KoyWOtNQVYodWAemKVkpNdqHlz0/rW7hPkB8BVQgKfD2Gf/UVNsdemhjvytlrDG oNbez0bZVELVbmScuAR/XcUXTcclFyEs2fkRQcTr5HzUSvUlB+V0/FaU5ZDqV6w7ODGy BX3d0AOX1C0c5ZnhCQCWJLcmN8H8ZqJyapxSN28qvkcs82q8JJrOpOj81kxJNCvwRyl7 mxlA== X-Gm-Message-State: AOAM531YnxeVWxrZoZAqLX+kXzGCPRf4YzM2Oq9aI+ZbxLC8b8TBDaql RjGsOhAFDkyki7G0MCcQHro= X-Received: by 2002:a17:90a:ec04:: with SMTP id l4mr3352700pjy.131.1604989084764; Mon, 09 Nov 2020 22:18:04 -0800 (PST) Received: from dmans-PC.localdomain (122-151-241-1.sta.wbroadband.net.au. [122.151.241.1]) by smtp.googlemail.com with ESMTPSA id w63sm13273224pfc.120.2020.11.09.22.17.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Nov 2020 22:18:04 -0800 (PST) From: Daniel Cc: dmanlfc@gmail.com, Jaroslav Kysela , Takashi Iwai , Hector Martin , Alexander Tsoy , Kai-Heng Feng , =?UTF-8?q?Franti=C5=A1ek=20Ku=C4=8Dera?= , Dmitry Panchenko , Gregor Pintar , alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org Subject: [PATCH] ALSA: usb-audio : Add support for the Pioneer DJ DDJ-RR controller. Date: Tue, 10 Nov 2020 16:17:40 +1000 Message-Id: <20201110061742.78033-1-dmanlfc@gmail.com> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit To: unlisted-recipients:; (no To-header on input) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --- sound/usb/quirks-table.h | 56 +++++++++++++++++++++++++++++++++++++++- 1 file changed, 55 insertions(+), 1 deletion(-) diff --git a/sound/usb/quirks-table.h b/sound/usb/quirks-table.h index 3c1697f6b60c..a39233cb4d72 100644 --- a/sound/usb/quirks-table.h +++ b/sound/usb/quirks-table.h @@ -3530,7 +3530,61 @@ AU0828_DEVICE(0x2040, 0x7270, "Hauppauge", "HVR-950Q"), } } }, - +{ + /* + * PIONEER DJ DDJ-RR + * PCM is 6 channels out & 4 channels in @ 44.1 fixed + */ + USB_DEVICE_VENDOR_SPEC(0x2b73, 0x000d), + .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) { + .ifnum = QUIRK_ANY_INTERFACE, + .type = QUIRK_COMPOSITE, + .data = (const struct snd_usb_audio_quirk[]) { + { + .ifnum = 0, + .type = QUIRK_AUDIO_FIXED_ENDPOINT, + .data = &(const struct audioformat) { + .formats = SNDRV_PCM_FMTBIT_S24_3LE, + .channels = 6, //Master, Headphones & Booth + .iface = 0, + .altsetting = 1, + .altset_idx = 1, + .endpoint = 0x01, + .ep_attr = USB_ENDPOINT_XFER_ISOC| + USB_ENDPOINT_SYNC_ASYNC, + .rates = SNDRV_PCM_RATE_44100, + .rate_min = 44100, + .rate_max = 44100, + .nr_rates = 1, + .rate_table = (unsigned int[]) { 44100 } + } + }, + { + .ifnum = 0, + .type = QUIRK_AUDIO_FIXED_ENDPOINT, + .data = &(const struct audioformat) { + .formats = SNDRV_PCM_FMTBIT_S24_3LE, + .channels = 4, //2x RCA inputs (CH1 & CH2) + .iface = 0, + .altsetting = 1, + .altset_idx = 1, + .endpoint = 0x82, + .ep_attr = USB_ENDPOINT_XFER_ISOC| + USB_ENDPOINT_SYNC_ASYNC| + USB_ENDPOINT_USAGE_IMPLICIT_FB, + .rates = SNDRV_PCM_RATE_44100, + .rate_min = 44100, + .rate_max = 44100, + .nr_rates = 1, + .rate_table = (unsigned int[]) { 44100 } + } + }, + { + .ifnum = -1 + } + } + } +}, { /* * Pioneer DJ DJM-900NXS2 -- 2.29.2