Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3547069pxj; Mon, 24 May 2021 09:06:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzGhNYwOtR3XV047Yvfbwnn5rn2S1sKblZyXagSzDsecdiJwPumlSx4Wo3vxVCQAXxJI14s X-Received: by 2002:a05:6e02:1d0b:: with SMTP id i11mr14759767ila.36.1621872393835; Mon, 24 May 2021 09:06:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621872393; cv=none; d=google.com; s=arc-20160816; b=lRPYlqQmAujOrkBh+ivGRaGuvyhD6k5fKmCpWCkYdZaYtIMcpsuNplaL73sLRV9G44 sry6IcipfoIqr7nvvyw7K1x0Y3ek/EoWaqb5oDmtXBX++lAKRcLc9k1hEHlbNyO/oYO+ j5nbcaiEKhH+sajL8BUakdygfbqbGuk3MLxW0d5c6y4/X80Jq7v+hx/e8GjWGwJoxmxj p7tRfugVZsRw+8uPDDjiCv+6SYx0FnDQ8v4R5hyLuENCqxS7UoP9K/iSIMZCwugfmoV5 bxUYMc7EeMTSX/JRJ2n7AiAK2l9oDGtf5yq/JdNXcQZ2N/yB2XjoN16Z47GtDiXAbqYU QGpA== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=Lyx1zjLhpo4Y1qb1lP/Q9iXvQwsKwFG26X8DX5pn4nE=; b=DV7LusaSAlocP21obnosm+3b4fsLudKftd/v0PG2YyAGHKgdqjpGeWDWNXPNGHc10b kXqDcH9W7+GSFfGcO6u8/4j9pL2q2xHqkboXqQ77oDhvocA7dK8ZNHf3HrsGAVc7rp4/ cw1ALAy2hPaMYK/9swLmpseExdwdaGYf8NsmjkhKmd+WVfvu8pM1qGx4UMzIyua6lsqt ZzsfQB2PoRltvUWB37DGG18XOnHge5jURZIcQAXIZJsOShq96hvZ3lyWfPtb9WYYRQZe USGa876OsjmqbQWyMIApXFey8LNKBdv4JN+W0a95oOLBObeYnvf8Gl92THS2keP9j64X uw1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=PEMWU4+l; 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=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a16si13647001ilr.160.2021.05.24.09.06.14; Mon, 24 May 2021 09:06:33 -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=@linuxfoundation.org header.s=korg header.b=PEMWU4+l; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237095AbhEXQFI (ORCPT + 99 others); Mon, 24 May 2021 12:05:08 -0400 Received: from mail.kernel.org ([198.145.29.99]:42710 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235280AbhEXP6i (ORCPT ); Mon, 24 May 2021 11:58:38 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 955C961966; Mon, 24 May 2021 15:44:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1621871066; bh=aoE07AxbEXXT3P9Md44PjLlhzHKPh5NDt5+y7yed4j4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=PEMWU4+lcZAufPaWfgIncKZdjxK7kqkEro+YaFdQnZ/u/CiSuhDXqejCUIo/RtKEE bGND9Z1Yx7E+p6NN336VoaHGClUG3586BZODx4PJtJBN/wRO77ExDd7+s8GlQb+1eZ nBkkXPMJXnZpR1P8CFS5NbaRUvuse0HBX/Y2Po2A= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Nicolas MURE , Takashi Iwai Subject: [PATCH 5.12 058/127] ALSA: usb-audio: Configure Pioneer DJM-850 samplerate Date: Mon, 24 May 2021 17:26:15 +0200 Message-Id: <20210524152336.801530757@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210524152334.857620285@linuxfoundation.org> References: <20210524152334.857620285@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Nicolas MURE commit 1a2a94a4392d5d1e5e25cc127573452f4c7fa9b8 upstream. Send an `URB_CONTROL out` USB frame to the device to configure its samplerate. This should be done before using the device for audio streaming (capture or playback). See https://github.com/nm2107/Pioneer-DJM-850-driver-reverse-engineering/blob/172fb9a61055960c88c67b7c416fe5bf3609807b/doc/windows-dvs/framerate-setting/README.md Signed-off-by: Nicolas MURE Link: https://lore.kernel.org/r/20210301152729.18094-4-nicolas.mure2019@gmail.com Signed-off-by: Takashi Iwai Signed-off-by: Greg Kroah-Hartman --- sound/usb/quirks.c | 3 +++ 1 file changed, 3 insertions(+) --- a/sound/usb/quirks.c +++ b/sound/usb/quirks.c @@ -1511,6 +1511,9 @@ void snd_usb_set_format_quirk(struct snd case USB_ID(0x2b73, 0x0013): /* Pioneer DJM-450 */ pioneer_djm_set_format_quirk(subs, 0x0082); break; + case USB_ID(0x08e4, 0x0163): /* Pioneer DJM-850 */ + pioneer_djm_set_format_quirk(subs, 0x0086); + break; } }