Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp785061imm; Mon, 21 May 2018 14:24:08 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrx4NnSSxQZUmdpCYJLg5aYsqKYQqZ14CDRRT5YbDzVTGwaBUhcVR8wtopGT4qg5o2hakwl X-Received: by 2002:a17:902:8303:: with SMTP id bd3-v6mr21673816plb.290.1526937848556; Mon, 21 May 2018 14:24:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526937848; cv=none; d=google.com; s=arc-20160816; b=VAL04A4QSNWN7A+c3NsEpV4RdDGV/+EoXwc2bKxuWePd80XcbS5NCKr+IoodCXS9O+ iRVqGb0mlLA10oAlgOB1yIamEgfmIf+/hQShdOnsZsLty1hW3aQ6DJYuARtNflHm6du4 D5kmRnvIdyppl03VH0ucnMOkVre5PQMs2H2h7VTywQAMJN7/dhH5bvPO9r1ts4Eo08F/ EndSc4qf/T4r48FZX6FAK+Jz4gSWs+TB+JQ4sMuwP9mKSdVqud4DKclgjYUuy6eE3uf6 TedTbnxFf+MvOTfKG+VKJCKGBdxJFUYCcHqNyY6TQynb5w1VTMb/2Lv3qkTWWBUebGNG hiyg== 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=lDSSuQh7p68OZlwVLlcfvoR51dqcV9+Vj2WHYPtCHhQ=; b=J1v3kNbWj1N8ZjZF1HxGQDi7Un9fTP6785XcBIfy1SX+8o6NIvZmZlfYiXnqoW2Z1f xIXXsb/gdECZ8dxJmuLX9SSAAUn5UVo09qRH0ixkE2CUeHyOjGQxMdchedvqfKYbhqc9 J5CToso2DaidV08h7YO8Bar2wVf4e+IZbHaYUHWEmQQGELdlMb3FYgdqAq5DQNQYCFNZ 3EHiRvHP3UZlA0AOwApGT1//7K9oqdtMWf9t0fVIEQ3yeGQ5m7yjW6ROZhbatmNMMgpS AdX0oYD8JlJmdHR3KqnBZyaQoicQt6r7V0nI9MtH64TZCX+ByIf2xAmTlJPARB2HQlda PucA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=NnO/UqPD; 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 d9-v6si15148987pls.334.2018.05.21.14.23.53; Mon, 21 May 2018 14:24:08 -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=NnO/UqPD; 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 S932163AbeEUVXb (ORCPT + 99 others); Mon, 21 May 2018 17:23:31 -0400 Received: from mail.kernel.org ([198.145.29.99]:38304 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932143AbeEUVX1 (ORCPT ); Mon, 21 May 2018 17:23:27 -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 A5BFF2075C; Mon, 21 May 2018 21:23:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1526937807; bh=EopTgS5ezRQQOysguboL4Cc1syHJH5mvvq2BFnOh8UQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=NnO/UqPDjqOYTzdHFIBYVMqhfN4szPJTwwVuPX2FTHFG/Fl819kyALKEaOi4iiDH4 7V/dQKRZHrjaDINJ3hHK4L4pGG91Vnk6mhoNHqj4eHZYqr88y2JprxsdL6DuXN61O2 mZaW0ah+TqdK2DUPpHsLQp8hFtbIGc5BZJyKovuQ= 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.16 007/110] ALSA: usb: mixer: volume quirk for CM102-A+/102S+ Date: Mon, 21 May 2018 23:11:04 +0200 Message-Id: <20180521210504.547698504@linuxfoundation.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180521210503.823249477@linuxfoundation.org> References: <20180521210503.823249477@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.16-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 @@ -915,6 +915,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):