From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C3A7D1494C5; Thu, 15 Aug 2024 13:51:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723729874; cv=none; b=BrMNcBBqPSerbj9DmEnp9m2UDUFUfYVdQbh8YmvMdbQvoQ/imJx4uVZPK920EOipuaOWchPVJOknkQfm/75UWBAABp2SJGH74AjWL8TIW5CdVV/wnNbgmhu2VZgFS8x7YSYKjv+HQkgpoNmNvJR58qT5EaQnd0BqYGCIUD6qfgE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723729874; c=relaxed/simple; bh=BpiSep39zENF1teOOyj5xY50DoJ+0eIiqug6y7V7roo=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=MhI/ZoYL7wVC0Zw0ogOPGxQwkLemhcVqQSzYPYZHODVAAHI5Kt2aZBCkXqJ1Bl4Co7qdG7ybEtrwj0i+W1y54m862nh1dzQndcAb7qyMfSSYTO+IswzmWCkNgnkLktFEIHnCrnC3zaXG9gRJX3/QuLFnhF1LnakXMrejO8PutE0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=qg+aQYMW; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="qg+aQYMW" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 41A18C32786; Thu, 15 Aug 2024 13:51:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1723729874; bh=BpiSep39zENF1teOOyj5xY50DoJ+0eIiqug6y7V7roo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=qg+aQYMWAoxqWvVr9fScshJDHDPsf0sFY2RomrFhtbjTQxIX9CuAVb9eof+ds7v2p qcG763k1OblJ5xBIspgwabB6K9sKs3U0y4vq4YUjUQTKz/AHI+r7K13PufpeX/+0HY KynNUPJD8L/NWcP9UbTyxNh95M3rlx1CWcTb5n9A= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, wangdicheng , Takashi Iwai Subject: [PATCH 5.15 203/484] ALSA: usb-audio: Add a quirk for Sonix HD USB Camera Date: Thu, 15 Aug 2024 15:21:01 +0200 Message-ID: <20240815131949.251374700@linuxfoundation.org> X-Mailer: git-send-email 2.46.0 In-Reply-To: <20240815131941.255804951@linuxfoundation.org> References: <20240815131941.255804951@linuxfoundation.org> User-Agent: quilt/0.67 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 5.15-stable review patch. If anyone has any objections, please let me know. ------------------ From: wangdicheng commit 21451dfd853e7d8e6e3fbd7ef1fbdb2f2ead12f5 upstream. Sonix HD USB Camera does not support reading the sample rate which leads to many lines of "cannot get freq at ep 0x84". This patch adds the USB ID to quirks.c and avoids those error messages. (snip) [1.789698] usb 3-3: new high-speed USB device number 2 using xhci_hcd [1.984121] usb 3-3: New USB device found, idVendor=0c45, idProduct=6340, bcdDevice= 0.00 [1.984124] usb 3-3: New USB device strings: Mfr=2, Product=1, SerialNumber=0 [1.984127] usb 3-3: Product: USB 2.0 Camera [1.984128] usb 3-3: Manufacturer: Sonix Technology Co., Ltd. [5.440957] usb 3-3: 3:1: cannot get freq at ep 0x84 [12.130679] usb 3-3: 3:1: cannot get freq at ep 0x84 [12.175065] usb 3-3: 3:1: cannot get freq at ep 0x84 Signed-off-by: wangdicheng Cc: Link: https://patch.msgid.link/20240722084822.31620-1-wangdich9700@163.com Signed-off-by: Takashi Iwai Signed-off-by: Greg Kroah-Hartman --- sound/usb/quirks.c | 2 ++ 1 file changed, 2 insertions(+) --- a/sound/usb/quirks.c +++ b/sound/usb/quirks.c @@ -1810,6 +1810,8 @@ static const struct usb_audio_quirk_flag QUIRK_FLAG_CTL_MSG_DELAY_1M), DEVICE_FLG(0x0b0e, 0x0349, /* Jabra 550a */ QUIRK_FLAG_CTL_MSG_DELAY_1M), + DEVICE_FLG(0x0c45, 0x6340, /* Sonix HD USB Camera */ + QUIRK_FLAG_GET_SAMPLE_RATE), DEVICE_FLG(0x0ecb, 0x205c, /* JBL Quantum610 Wireless */ QUIRK_FLAG_FIXED_RATE), DEVICE_FLG(0x0ecb, 0x2069, /* JBL Quantum810 Wireless */