Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2656106pxa; Mon, 17 Aug 2020 15:40:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwnhWbK4mQsxStigUWGO6iJso0v33OKQNnANdME552pMXqklfAkr2+wlTqHdG7e9dBljD7b X-Received: by 2002:a17:907:2078:: with SMTP id qp24mr17086587ejb.286.1597704049427; Mon, 17 Aug 2020 15:40:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597704049; cv=none; d=google.com; s=arc-20160816; b=Sw2Jc0YlbkjfdBKH+WeZz14TSsq+1U5f9ynFpfuRC6Uv+5uWKXSHPeSQ4jwocehN1e 6t+XoWIM1s3FfLBsIEJTjXCh6aXf+7eaWyfKYmGe3TB2vvAEliDOgFTao1FBJfkCzzB7 BJQjO4f9X4zNmmmiqK8ZfmgPRKixTik8G2Nwl6obvYsqhH4NHbdN1GtAjmPIX9GMjzDw whA4mhrslIiD93JIqva5p3Fi4YNVC3603M23GcakT/hQsMTmRz/ETGPmpeUEr20+jw9+ J/5GRt9ldD1JHNf5t4Px+PpMsoj/PkW5c63Fp2SuN2nqBkzkCBAoWilC0Mt4KbMqXDUt eSTg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=EceC1qdAwKuz29oB72nvUkRGejQQvtWMVCe4HzSlaPM=; b=FcZnjKoOKyEUQf3cZ2BBBfQfpSPVy3UKc9OVmaFTbuzOWXD0IgLv4aScTtGM0ofKGK +ASjkIoZHrk1gJq7pQZqIiWWZKO3K8BXX8+sFTPR8jOMlt0DoKzwL7BiYfSvi28IGjQY SAMPyDLL2+GZ10Xh7bi0Q8LxLMZ5HTSOD7UM2PqHEJmaC+Fl0pLnb5G9ciOaIL5bjMxE JDR/ohtuqLCiloLLOXiQxzjcILGujPhgyqzHICanhBE8buOaXGmL9wgbdoMXFXqE9hAS 6aSZ6G+CbYkELsGuGCt182390JT9Rb35ulFSCMA9ArIvdF1June70NMMTJHJZwZ+5HM5 D3Cg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=GykfzMfb; 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=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d6si12063972ejy.409.2020.08.17.15.40.26; Mon, 17 Aug 2020 15:40:49 -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=default header.b=GykfzMfb; 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=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389620AbgHQR5S (ORCPT + 99 others); Mon, 17 Aug 2020 13:57:18 -0400 Received: from mail.kernel.org ([198.145.29.99]:36306 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388544AbgHQQK3 (ORCPT ); Mon, 17 Aug 2020 12:10:29 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id CC26720829; Mon, 17 Aug 2020 16:10:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1597680609; bh=S7IDOuSAt3Vf7G3wy1Q4EP0Obdmq8ti/LHttpaBl6qw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=GykfzMfb7w76ZTo5IsYBCKmBYs3ZoZ6Cw5KvxQvXeJ/tCtM9cVZ8ghG6s7FywFe1F VrfxRxD5PVsRvp0h/Luz0e9GyzomMhx0OHRC1ejSDgDF+NsS79kYmjcGPAjqc7hZ9m 4ntYlLVfAJp6N4np9UDks2VP0guN5dcj8SSKe0Qo= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Hector Martin , Takashi Iwai Subject: [PATCH 5.4 254/270] ALSA: usb-audio: add quirk for Pioneer DDJ-RB Date: Mon, 17 Aug 2020 17:17:35 +0200 Message-Id: <20200817143808.476137807@linuxfoundation.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200817143755.807583758@linuxfoundation.org> References: <20200817143755.807583758@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Hector Martin commit 6e8596172ee1cd46ec0bfd5adcf4ff86371478b6 upstream. This is just another Pioneer device with fixed endpoints. Input is dummy but used as feedback (it always returns silence). Cc: stable@vger.kernel.org Signed-off-by: Hector Martin Link: https://lore.kernel.org/r/20200810082502.225979-1-marcan@marcan.st Signed-off-by: Takashi Iwai Signed-off-by: Greg Kroah-Hartman --- sound/usb/quirks-table.h | 56 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) --- a/sound/usb/quirks-table.h +++ b/sound/usb/quirks-table.h @@ -3570,6 +3570,62 @@ AU0828_DEVICE(0x2040, 0x7270, "Hauppauge } } }, +{ + /* + * PIONEER DJ DDJ-RB + * PCM is 4 channels out, 2 dummy channels in @ 44.1 fixed + * The feedback for the output is the dummy input. + */ + USB_DEVICE_VENDOR_SPEC(0x2b73, 0x000e), + .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 = 4, + .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 = 2, + .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 + } + } + } +}, #define ALC1220_VB_DESKTOP(vend, prod) { \ USB_DEVICE(vend, prod), \