Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp299463lqo; Thu, 16 May 2024 06:50:01 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV0ld7X4nD20WdtmxF6lmcMhB+t2uR/9qhWEpop+MkROYow26X7bfX9g58VYBL6Cdn2n26POYbAOTz1KRSRraklOEAGHd5/4hlKJRJmQg== X-Google-Smtp-Source: AGHT+IFtVYGLDOureN3281LrYaMtInP4fayDapfCN0j7/kEWeEUye7MjIpP5/tQqtcSWL/g4h9im X-Received: by 2002:a05:6358:d16:b0:18a:c679:39bb with SMTP id e5c5f4694b2df-193bb3fc88dmr2184719755d.4.1715867401502; Thu, 16 May 2024 06:50:01 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715867401; cv=pass; d=google.com; s=arc-20160816; b=oN0FXTXqrkVf5urY0lBM10xm5lU63FfoA30XfQ2fMMZogyA92p6uH8oUUuIx3TyNHh 5gWlOEQpy+GHqmo9YhY0Ay3kMio9T4Owy6MWlIrGCtPlYA6y4Ih3V40coHrpg+qIUKYo hBGyE0m68NOOnxuyLwpBZFQB5cU+KB2s9kcXSGwuhMSJ4dOp3nGbJUXzy76t2zOg6GMC rF1zpkXeY78+k+IlQjmW0I2C6PGtT0jBecRy5xYLBY+QQ2oTSCqc8Qe4wYMzKfSGAn1V YgQhGUSUVZSNRiUc/mH8MQWYMAeiTvfL0zFb5Kgyjwxbiz3iG7B4CsPme7kXAAj02g+b A1qQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=AL50Hp7iL/aRLAtSxMHrUM7s8ttuqkWfRiWw7eMXuF4=; fh=XmUo0f+PFxgdDkw4uHtTG3ycsH6uAFwm4xf+xJSNIsA=; b=KeWmHWQwN5M2jgJwjUxXi/LTNyGdbqOAs48f0iZxDrNGy9beIns9QQoCjioB9ienZy DpSeVkwY4KnOGmifXXhEc5vS3F2/wS56VWCm9y7r1cgSBr2Bf3jiGhUh/DJNBR1h2drK 9yK1KmSDZ6ALdONzD9v8N9w8dakNLUsqH8oAjgL7GW3OTsxPjm7CQluTn+8fmZV8stPN MDPNs85CHbdaMNJEI7cfPvKW+8Xr/+vg+EwBkx3pI0Pfm9mBeNDrvIvwIr8CsoOuJeQz PCTmt6BEryFRMs9xrZC1f+kBvU5a5qivI5wUptX/L5QPi7vkIty112Ekmkl7ILKKxC+I 1Trg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=hY0mcLKS; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-181132-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-181132-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id 41be03b00d2f7-634103f69efsi16118406a12.309.2024.05.16.06.50.01 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 May 2024 06:50:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-181132-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=hY0mcLKS; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-181132-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-181132-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 783AC284C1E for ; Thu, 16 May 2024 13:40:29 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 79E87147C62; Thu, 16 May 2024 13:40:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="hY0mcLKS" Received: from mail-pj1-f43.google.com (mail-pj1-f43.google.com [209.85.216.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6C9491474AA; Thu, 16 May 2024 13:40:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.43 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715866823; cv=none; b=V6wYGcaGM1mbhxGXrXwEwyNbvWSyrKzV3yCW13aWG/orkSsNW3hkPM3DKlnY/TKJydEvi/nYzwMB7i5riODWIks5k+EXov8K63QJGrvgCqMVrzp+2fhOLuoEJkbxxxguNFTtjrbpSuAL/3K5cBgfqjA+teaN0HXt93bk2es0nqs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715866823; c=relaxed/simple; bh=dTWh5B+LLDBWV9vtFY55/B1V8asERfAAion1Rkp/acY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=DB0SFmqcq/P28WNSsITQx+eaYYaAut55H/6ixjwUUpUhuP+oGSVFuVRnRKjsEkJgk6RPxj0Hy6w/znvWApW7s6GmxtCBqy/C5FJ/VcMaoyN9lsvQqJRKP4IlVkjVmMxTItRrqMlPWqqtGFHSCaL2yRObY/3nSHDZ3owJOAd6H7s= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=hY0mcLKS; arc=none smtp.client-ip=209.85.216.43 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pj1-f43.google.com with SMTP id 98e67ed59e1d1-2b4aa87e01aso171828a91.3; Thu, 16 May 2024 06:40:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1715866822; x=1716471622; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=AL50Hp7iL/aRLAtSxMHrUM7s8ttuqkWfRiWw7eMXuF4=; b=hY0mcLKSxj/FDPnAcPdfxDbLrxchuo8bgioapSRw4RWqs06YVzUJOpIzobLBv0RoVN R3Ia/DAFcXUAGFEw/6gGl6DiQihvIEsu7FxGBAG0oy86kFj24fgvoZhiBcx32dB15oIo AWkvtEZ2Ehywpcl7jkeSHH997JBkS7VBU/q6LaKgphmZU9fM/JScAnXuD6ucLD4+Sp3k 57063Mxs1TOvygD9LhEkh81jIXKFwgh/vV8rYk1Vpw5xyJlgxMe5XlE+W7jGdJDnHjG3 ognqs97J+QZMmeqCDNt281AsbVNe1oYo9FTDB023xdlBXljW6jwQfbY10kFVo7i1cg9O b0/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715866822; x=1716471622; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=AL50Hp7iL/aRLAtSxMHrUM7s8ttuqkWfRiWw7eMXuF4=; b=txCVUByP7+zSRwPwQKGlB1EesOPmcr0ZLr3PGR31NOcGZ5KTi4q9EiyqfAb+F7hKDL mvgRKO0ii38DDuJrNbranwqtBQzByfzFmusr69VgoMJolBp8WOFB5oBIXGLO9QSUBM2h tszXoI0aHF0kHx4n0+ieSne9g8r/fhRBiOG3CzpTFZgsvYBt1I0LC0i2wPzAf9EIa+yQ oLFwmEyyPF72B3uF1zkHrrNtzMb7ce5P5yXSRd5WbzUCNDc/7W+/xrINSKIyEMwF11wE GiKtZ1ZMjq7aGOOa7WoOYquysyLmzWOarcDulwGH8+DCIPfBpJ7OSb9DDEARmwENzP21 vubg== X-Forwarded-Encrypted: i=1; AJvYcCU2QxYoO+R25Wyfg/E4luSHdN40Y3Y/8jcjoCtPoyWfG5WViWkd2+2eW/jihXhnfTs9Hsh1JB5d9atBVnTTE0kcMChvtc2238tjNh2nVVpqIA1pJLSHM5R2NjfQKHHO4lpcaFXGzNlosd8= X-Gm-Message-State: AOJu0YwXYygJxSDXAduotRqV4uTD2tTNMcYGigcDiGPGe0ly23nDWmQf XuO5yVuTXesWUoxMq7H5hOKVIIkB08rp87LiXHsiNnk6dr/5iz7EyZtpHNqgk5X2Uw== X-Received: by 2002:a17:90a:9084:b0:2b6:c650:fb53 with SMTP id 98e67ed59e1d1-2b6cd0e7c20mr14758763a91.45.1715866821543; Thu, 16 May 2024 06:40:21 -0700 (PDT) Received: from thought.. ([181.170.161.59]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2b67116601fsm13712518a91.23.2024.05.16.06.40.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 May 2024 06:40:20 -0700 (PDT) From: Manuel Barrio Linares To: tiwai@suse.de Cc: alsa-devel@alsa-project.org, Manuel Barrio Linares , Jaroslav Kysela , Takashi Iwai , Jeremie Knuesel , Lukasz Tyl , Christos Skevis , Jussi Laako , linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] ALSA: usb-audio: Fix for sampling rates support for Mbox3 Date: Thu, 16 May 2024 10:40:02 -0300 Message-ID: <20240516134003.39104-1-mbarriolinares@gmail.com> X-Mailer: git-send-email 2.45.1 In-Reply-To: <87ikze486g.wl-tiwai@suse.de> References: <87ikze486g.wl-tiwai@suse.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Fixed wrong use of usb_sndctrlpipe to usb_rcvctrlpipe Signed-off-by: Manuel Barrio Linares --- sound/usb/quirks.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/usb/quirks.c b/sound/usb/quirks.c index 2f961f0e9378..58156fbca02c 100644 --- a/sound/usb/quirks.c +++ b/sound/usb/quirks.c @@ -1740,7 +1740,7 @@ static void mbox3_set_format_quirk(struct snd_usb_substream *subs, u32 current_rate; // Get current rate from card and check if changing it is needed - snd_usb_ctl_msg(subs->dev, usb_sndctrlpipe(subs->dev, 0), + snd_usb_ctl_msg(subs->dev, usb_rcvctrlpipe(subs->dev, 0), 0x01, 0x21 | USB_DIR_IN, 0x0100, 0x8101, &buff4, 4); current_rate = le32_to_cpu(buff4); dev_dbg(&subs->dev->dev, @@ -1765,7 +1765,7 @@ static void mbox3_set_format_quirk(struct snd_usb_substream *subs, // Check whether the change was successful buff4 = 0; - snd_usb_ctl_msg(subs->dev, usb_sndctrlpipe(subs->dev, 0), + snd_usb_ctl_msg(subs->dev, usb_rcvctrlpipe(subs->dev, 0), 0x01, 0x21 | USB_DIR_IN, 0x0100, 0x8101, &buff4, 4); if (new_rate != le32_to_cpu(buff4)) dev_warn(&subs->dev->dev, "MBOX3: Couldn't set the sample rate"); -- 2.45.1