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 F194E219C9F; Tue, 12 Nov 2024 10:45:06 +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=1731408307; cv=none; b=Ru0oW2CTjDeoH2yrCQgjiLu3RAG0So0s99+NBpa7XYoGvc6fz6H0/ZslXvQb9K7vrHR/BQtqgBZ/fg3xF1JK4GyTQbioHa20RY+k3AcEkAjrMetc3N8Y0L5OSdqJfAGKTUyZH33aIXhVhCAdnwBDcoQKXr9yG326GVMh6ScGu4k= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731408307; c=relaxed/simple; bh=/qOOwv5DSe8lktcqnIWaJwtbdyxkuWMqmrelKNuFyAY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=VkZxNPDx70uiQjrU3+Gzhzsw83HqtmygF2WLKBGbh+pnu036SHTsIPzLd68I/chyzQjAH2K3FBRElKDuD9bCHZGYXBDkqlGvzhT8VICQ3ccPuYzhjbaXD2VUPRl0XtQq28U3+7KQCAVk3bK+khcHHhiZ7lGJxKp0WibfveRnQz0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=BguMuzJm; 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="BguMuzJm" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6078CC4CECD; Tue, 12 Nov 2024 10:45:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1731408306; bh=/qOOwv5DSe8lktcqnIWaJwtbdyxkuWMqmrelKNuFyAY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=BguMuzJmW1euIMpfjLg7zUl/usizO6MYHSWoNaHiWK8jPtqttwB/zZv/NmUFR7Unq I8JLjZArsMu+GrTspPKwC+rqAS8RN539NCIiuAxvH7KB8fT1ynBBVZYYGoBnxDEzue VxSgX8wXMjLqPXr7BSG9HCPtOHlCnD+d6Ie+JwSw= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Takashi Iwai Subject: [PATCH 6.11 122/184] ALSA: usb-audio: Add quirk for HP 320 FHD Webcam Date: Tue, 12 Nov 2024 11:21:20 +0100 Message-ID: <20241112101905.548313076@linuxfoundation.org> X-Mailer: git-send-email 2.47.0 In-Reply-To: <20241112101900.865487674@linuxfoundation.org> References: <20241112101900.865487674@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 6.11-stable review patch. If anyone has any objections, please let me know. ------------------ From: Takashi Iwai commit dabc44c28f118910dea96244d903f0c270225669 upstream. HP 320 FHD Webcam (03f0:654a) seems to have flaky firmware like other webcam devices that don't like the frequency inquiries. Also, Mic Capture Volume has an invalid resolution, hence fix it to be 16 (as a blind shot). Link: https://bugzilla.suse.com/show_bug.cgi?id=1232768 Cc: Link: https://patch.msgid.link/20241105120220.5740-1-tiwai@suse.de Signed-off-by: Takashi Iwai Signed-off-by: Greg Kroah-Hartman --- sound/usb/mixer.c | 1 + sound/usb/quirks.c | 2 ++ 2 files changed, 3 insertions(+) --- a/sound/usb/mixer.c +++ b/sound/usb/mixer.c @@ -1205,6 +1205,7 @@ static void volume_control_quirks(struct } break; case USB_ID(0x1bcf, 0x2283): /* NexiGo N930AF FHD Webcam */ + case USB_ID(0x03f0, 0x654a): /* HP 320 FHD Webcam */ if (!strcmp(kctl->id.name, "Mic Capture Volume")) { usb_audio_info(chip, "set resolution quirk: cval->res = 16\n"); --- a/sound/usb/quirks.c +++ b/sound/usb/quirks.c @@ -2114,6 +2114,8 @@ struct usb_audio_quirk_flags_table { static const struct usb_audio_quirk_flags_table quirk_flags_table[] = { /* Device matches */ + DEVICE_FLG(0x03f0, 0x654a, /* HP 320 FHD Webcam */ + QUIRK_FLAG_GET_SAMPLE_RATE), DEVICE_FLG(0x041e, 0x3000, /* Creative SB Extigy */ QUIRK_FLAG_IGNORE_CTL_ERROR), DEVICE_FLG(0x041e, 0x4080, /* Creative Live Cam VF0610 */