Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp2051986imm; Thu, 24 May 2018 05:07:34 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoygAa2LRA85ByXAoQoBpsuTLt0dZKxa8X5e9bGx8eGtfZThYeDHUHJYH5M//iWEgGN+Hnk X-Received: by 2002:a17:902:b701:: with SMTP id d1-v6mr7169495pls.121.1527163654376; Thu, 24 May 2018 05:07:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527163654; cv=none; d=google.com; s=arc-20160816; b=jKoT47p+15gAmYAJrkhJLE+fHyXjg3SToV7ZwD12Qtl1dQG7PeKb+4YSIba+7Sdfwb hWmHUByu5Kk6HuZNFS6BgRn5z4gERZVDeaLPCNa5lemlWLFbGBx1bizllOJcabjZ1e7K qviIjBIiUCco9nN7wMjnn+6G2Ph88p8iYyYgNpTwEaNcGduVDCdsuhJuuk2GZqhtK6wS MS0AA/6sQqn+ThFgL3hnEPMVJGdwaSk0tAWxlGxTVt3vZCs4m+dgeNyTr4lkLF+zQgMt X1TiSuJcnRXUgjdqGrB/M871saAxD3C2TE1P9ASg542klBhAmvjtp2Fj5LrHf6tJ034l umXQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=UNoKujPongjZWUsteUjKl3CVx58WMfiAM7Jc821e2Ek=; b=wheUFzM0hYyfsP47zYU83GAqbgq6LPaZXXzBB9iEXhfH7lrKfKYjjZiRkzdir73I0G 71+Zn0OFVkjcdX/wBLLfKVbDAUh3PtkdNIe3M2ejKWVoUHkAnaE9yg0gOFOaL5c9ElCG V5mSwPX6WNmXAoe9DHV7Z37dmavKUb8c6GaM7EbNYfOUL5gof1z1DJo9RSDfQgeO8WpP PFhcWRJVRooh5kn1FOGkLRsNKyRS1Gs4cpZzWfLx5tgaDhyUeavhKe9r3+8bKCWnVWDt r6mu+Xrs0wMuBt2rb+RpRa4Utyc46/vXLiG/i41sj51y36Ehw+6TU6oAUzuugvG2HmdC Eftw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=sS5/pXtH; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q4-v6si20646481plb.312.2018.05.24.05.07.19; Thu, 24 May 2018 05:07:34 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=sS5/pXtH; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S966682AbeEXMFW (ORCPT + 99 others); Thu, 24 May 2018 08:05:22 -0400 Received: from mail.kernel.org ([198.145.29.99]:55634 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S966623AbeEXJoS (ORCPT ); Thu, 24 May 2018 05:44:18 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 5A5F22089F; Thu, 24 May 2018 09:44:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1527155057; bh=SSfD/rkRexo9KnUt69Bo+1zh0a79BPHDnAeBKWFAGKo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=sS5/pXtH5y1gMRse/vmB0Uxw3DbcOZsTb398vFK/l3ihxn6DrJy1ZRucJ3hGSHB6Q oRZ4GghzdgYMZ+BbB+a2LETtNrdOH9KSLGQ51CiWF2e0vdjZS1Oo5DQzctUjj5j86L HZwaJGc6c3w+BHOCcze9Bhg2KuCWCzyvwBm3LCZI= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Federico Cuello , Takashi Iwai Subject: [PATCH 4.4 38/92] ALSA: usb: mixer: volume quirk for CM102-A+/102S+ Date: Thu, 24 May 2018 11:38:15 +0200 Message-Id: <20180524093202.638183551@linuxfoundation.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180524093159.286472249@linuxfoundation.org> References: <20180524093159.286472249@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.4-stable review patch. If anyone has any objections, please let me know. ------------------ From: Federico Cuello commit 21493316a3c4598f308d5a9fa31cc74639c4caff upstream. Currently it's not possible to set volume lower than 26% (it just mutes). Also fixes this warning: Warning! Unlikely big volume range (=9472), cval->res is probably wrong. [13] FU [PCM Playback Volume] ch = 2, val = -9473/-1/1 , and volume works fine for full range. Signed-off-by: Federico Cuello Cc: Signed-off-by: Takashi Iwai Signed-off-by: Greg Kroah-Hartman --- sound/usb/mixer.c | 8 ++++++++ 1 file changed, 8 insertions(+) --- a/sound/usb/mixer.c +++ b/sound/usb/mixer.c @@ -904,6 +904,14 @@ static void volume_control_quirks(struct } break; + case USB_ID(0x0d8c, 0x0103): + if (!strcmp(kctl->id.name, "PCM Playback Volume")) { + usb_audio_info(chip, + "set volume quirk for CM102-A+/102S+\n"); + cval->min = -256; + } + break; + case USB_ID(0x0471, 0x0101): case USB_ID(0x0471, 0x0104): case USB_ID(0x0471, 0x0105):