Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2489428pxj; Mon, 10 May 2021 04:20:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwKIUG9137yJ0izA5w0PAwglHh57wown3C8PFVsXMVXwtL52sQyFsN8YREPy00honTzUSI8 X-Received: by 2002:a02:6654:: with SMTP id l20mr21056419jaf.55.1620645634100; Mon, 10 May 2021 04:20:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620645634; cv=none; d=google.com; s=arc-20160816; b=xzdggvzpzqM7dOZh+I0/5/OIG9bahbcfHY6Xj0ntYWaA++vfvnYvVcq0mv/2jlBDZS nXmKJTVNEiJrthxjzYebcAQwww5Hmkao6yL1GGfqaDIfS4HW9rC7cQmjCrbU2VFfjn1C J/MUCFHFycbykKwUs4ANVv/pKXPZCttB1SOMby+zzt6WXUe6FSQF8tQnxT6cpcYBqHaB hIzFNR8gf2/a08Hvlvo5OmirTldAfYwrqOWc3S8P1FrvgXia8SsHIdQPqqA2TVYNNXdY nwbfrtp6D8epFRe+lQurfyJBNGuFadxgf6ktvdjhJvTUozARIlP1h7Ok3TOnBqjbr9gs EZ5Q== 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=gmTlvBUP7VX0HLSlPMZWLkJyBoaiVNNkcVKr5PJd+Vk=; b=cvie5Nqxi5bP/ZD/XJXlPxIKwD/o6c7Lg/ZtQmkltsi4NkPpb4D4XQTB2VJgKFMsmL 8UelZ9DuOVt9rFNSyZjXygcoW1b7tQDV6k1ceVLO3Eylh/3pwC3P7ImlMbJlG0I9IoN/ O4hP1NiOMG7OlXoZe53p8iFUK1wkR1q8U8M+oQKtjoQG3KRp47mql0RrO2g+7aaU/3Q7 EvvdU1B4XAY0KB58XaUq3nHJoWqnAW0Qarg+mxaAyGQoR/qF9bSu9DSXJY22Waphsj04 O6oni/0e5Gv9eVUrQwEsQJQ6IMIaz5o/Wuzf3RYxY1DaJpyrWlcocOQC6T79BxJBeMVH Sfnw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=o79lL16N; 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 t4si18095629iom.3.2021.05.10.04.20.20; Mon, 10 May 2021 04:20:34 -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=o79lL16N; 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 S236768AbhEJLOa (ORCPT + 99 others); Mon, 10 May 2021 07:14:30 -0400 Received: from mail.kernel.org ([198.145.29.99]:42196 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233685AbhEJKub (ORCPT ); Mon, 10 May 2021 06:50:31 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 0898161940; Mon, 10 May 2021 10:39:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1620643185; bh=+umnaM+B+t3BvPAR05JY02m114BmcOxcv9BHB14b6MM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=o79lL16NTolD2glC0nFf32FSPK8nfhwRIwOeb+bqLD3YEFK60layIYBsiA64HlTLn kmoz69F0A4M0qN48l4lGOYGv2zL7ZXdK65Xds0H6MfPApCaNii08Mgwqkjnro4DVK6 zRnO+BDSAXBFU7S6SlHHqahcqZrV+Uy38wszPO14= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Timo Gurr , Takashi Iwai Subject: [PATCH 5.10 213/299] ALSA: usb-audio: Add dB range mapping for Sennheiser Communications Headset PC 8 Date: Mon, 10 May 2021 12:20:10 +0200 Message-Id: <20210510102011.983003010@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210510102004.821838356@linuxfoundation.org> References: <20210510102004.821838356@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: Timo Gurr commit ab2165e2e6ed17345ffa8ee88ca764e8788ebcd7 upstream. The decibel volume range contains a negative maximum value resulting in pipewire complaining about the device and effectivly having no sound output. The wrong values also resulted in the headset sounding muted already at a mixer level of about ~25%. PipeWire BugLink: https://gitlab.freedesktop.org/pipewire/pipewire/-/issues/1049 BugLink: https://bugzilla.kernel.org/show_bug.cgi?id=212897 Signed-off-by: Timo Gurr Cc: Link: https://lore.kernel.org/r/20210503110822.10222-1-tiwai@suse.de Signed-off-by: Takashi Iwai Signed-off-by: Greg Kroah-Hartman --- sound/usb/mixer_maps.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) --- a/sound/usb/mixer_maps.c +++ b/sound/usb/mixer_maps.c @@ -337,6 +337,13 @@ static const struct usbmix_name_map bose { 0 } /* terminator */ }; +/* Sennheiser Communications Headset [PC 8], the dB value is reported as -6 negative maximum */ +static const struct usbmix_dB_map sennheiser_pc8_dB = {-9500, 0}; +static const struct usbmix_name_map sennheiser_pc8_map[] = { + { 9, NULL, .dB = &sennheiser_pc8_dB }, + { 0 } /* terminator */ +}; + /* * Dell usb dock with ALC4020 codec had a firmware problem where it got * screwed up when zero volume is passed; just skip it as a workaround @@ -593,6 +600,11 @@ static const struct usbmix_ctl_map usbmi .id = USB_ID(0x17aa, 0x1046), .map = lenovo_p620_rear_map, }, + { + /* Sennheiser Communications Headset [PC 8] */ + .id = USB_ID(0x1395, 0x0025), + .map = sennheiser_pc8_map, + }, { 0 } /* terminator */ };