Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.7 required=3.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED,DKIM_SIGNED,DKIM_VALID,FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B888DC433E6 for ; Mon, 1 Mar 2021 14:31:22 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id AD5EB64DF5 for ; Mon, 1 Mar 2021 14:31:21 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org AD5EB64DF5 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=alsa-devel-bounces@alsa-project.org Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 0F8AC166D; Mon, 1 Mar 2021 15:30:30 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 0F8AC166D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1614609080; bh=8Ysbo4BYNHLUgfYeMjkDDOcL0Tn1i8Dc5pG71pXfs/g=; h=From:To:Subject:Date:Cc:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From; b=XUAT2fez6eiKqk9qVBoI7TSQ5RnieZwgX+gd4TFC0+HcA4guPqwteSTIQv/sMaOBi wNu8TUu04ftnWiouHDLTgqf5LwUTPHzh4qPOema2quH8MGQzzAyYYof7LECo9PBsWD mDxp4T3/wbgUo2bFBho9mcdSShwzhEH2iUPKJex8= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 9B2B6F80150; Mon, 1 Mar 2021 15:30:29 +0100 (CET) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 93DD5F80257; Mon, 1 Mar 2021 15:30:28 +0100 (CET) Received: from mail-wr1-x42b.google.com (mail-wr1-x42b.google.com [IPv6:2a00:1450:4864:20::42b]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 7E318F800E0 for ; Mon, 1 Mar 2021 15:30:20 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 7E318F800E0 Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="U1tww+/i" Received: by mail-wr1-x42b.google.com with SMTP id 7so16386376wrz.0 for ; Mon, 01 Mar 2021 06:30:20 -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=IONZ2McWoEbOgPE/QaoBgYmPvQbpx4exLsUFq1e6wn0=; b=U1tww+/io/yTaLoy9kOlIK38E1WnTbSX/zhgaHV11dTh0z5W4nVG0sPqVFezv8WN4/ zhI1lXYk6OB/Wbhoi/WmsPrKskjmiWtSnz0LxsFub0Go3aKDYKm4GS3H1A2pUAtJasVF cel7V3LXRvU9h4bRQ5Iw8MLFRxr/ruW4s9Esm5QgxRqAdQ923N84EM0Wo9Sg19n80DZ2 ONy+e8BkaEMCGvi9LFGAJ58U5unNWOddr9o2tRle2J+6EjXcBTZpGEk5RTylj/Qdnlx9 ZbNRYtwMaxIhvkk6IWaAtTZaQ3Wo0rBzYz/G7BBUPW6HLNRee8NzgpRl+soBAV6wtgWq NywQ== 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=IONZ2McWoEbOgPE/QaoBgYmPvQbpx4exLsUFq1e6wn0=; b=LI3hfNHLoBbCZpS61eht5mgr15vPWetxTbW6Sgr+AGpm2V2sBVv4ovwj+Z7wgq2Zi8 fdvK2MaUjFaDdyUEZtuON7vpM4iP+DwMQLB3NiFqEr/QmfBXtU87NS2BYUbUcQ1je2DA SMGMhs78xruKD4BRzvDN/92x9lgDRJJ/1ClNQyZenhfniwvCbuc+3ToaaReO34IjGaHC S1Xg8CbmZzRxixE9VWDGC196Ct9c4xMI2K5STHjbewZxv7FDc0bZZrPBDcXz3AUmHC58 7BP0Hb5GKaTNgy1rPUOehinQMqhU/M6BYQ6Mm38S/GIsoOm2BuHaamLNXaNdOazWc3Bg mLnw== X-Gm-Message-State: AOAM532YSYJi9J6pXiC5xHC0MJze+z30Qd00imLl6FBDkItuCeZQN58l VutuiCzvRmGH1Kw24DVdVxc= X-Google-Smtp-Source: ABdhPJyQCfxXbQXDdT0H1Ro8lFO8BqUWL/Vtt84/TYUyjPye7Oqkw4LQ7MnCziErwBxE+U+PpP7W9Q== X-Received: by 2002:a05:6000:1788:: with SMTP id e8mr17334535wrg.171.1614609020670; Mon, 01 Mar 2021 06:30:20 -0800 (PST) Received: from localhost.localdomain (176-171-138-112.abo.bbox.fr. [176.171.138.112]) by smtp.googlemail.com with ESMTPSA id c11sm24991204wrs.28.2021.03.01.06.30.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 01 Mar 2021 06:30:20 -0800 (PST) From: Nicolas MURE To: tiwai@suse.de Subject: [PATCH] ALSA: usb-audio: Fix Pioneer DJM devices URB_CONTROL request direction to set samplerate Date: Mon, 1 Mar 2021 15:29:27 +0100 Message-Id: <20210301142927.14552-1-nicolas.mure2019@gmail.com> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Cc: Nicolas MURE , alsa-devel@alsa-project.org, livvy@base.nu X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" As requested in this comment : https://mailman.alsa-project.org/pipermail/alsa-devel/2021-March/181275.html This commit only contains the fix about the `URB_CONTROL` request direction to set the samplerate of Pioneer DJM devices (`URB_CONTROL out`). Signed-off-by: Nicolas MURE --- sound/usb/quirks.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/usb/quirks.c b/sound/usb/quirks.c index 9ba4682ebc48..737b2729c0d3 100644 --- a/sound/usb/quirks.c +++ b/sound/usb/quirks.c @@ -1482,7 +1482,7 @@ static int pioneer_djm_set_format_quirk(struct snd_usb_substream *subs, usb_set_interface(subs->dev, 0, 1); // we should derive windex from fmt-sync_ep but it's not set snd_usb_ctl_msg(subs->stream->chip->dev, - usb_rcvctrlpipe(subs->stream->chip->dev, 0), + usb_sndctrlpipe(subs->stream->chip->dev, 0), 0x01, 0x22, 0x0100, windex, &sr, 0x0003); return 0; } -- 2.29.2