Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1676229pxu; Sun, 6 Dec 2020 03:42:04 -0800 (PST) X-Google-Smtp-Source: ABdhPJycda47fJ4AG7LsHbxp8FZyeqMtQtZlG5BG5Gdw9+QGDO156vr1Zp0EIiJYRjL7UbZhN8CL X-Received: by 2002:a17:906:aac1:: with SMTP id kt1mr14304227ejb.329.1607254924134; Sun, 06 Dec 2020 03:42:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607254924; cv=none; d=google.com; s=arc-20160816; b=wNLWj6RJU76aUi9r0KICLtadpzcaDN/i9ee0T/hZ6KubvxDKeRfwjftjKotVabuyL2 noq3pcxmoHDVewVhpEbhmoIH/ig+Vrf2xgRQaxiuzoTDf0xLOTVvguA+iN4PWw2CPWUV +oQe2WO7yRgJDglpIPsCiAfQp/iJ1lyQMjSlTo6jj/mDpN5X99xP4a17OWvJo05hjDsW VkV8yRZLZX43Z8hPmQtGLGRTmnUm84O1RryjCP2c7N6f7r1Fium4kwXra+eDzCzzkjf+ RRdMQhGcFCIsqQFNIrbTkZUOLqCnbh+nmEa6c8J0E16K4iFI8m8InBOS8G0az1q7F9Qi EZUg== 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; bh=4DWji7V828dJlBBnMjH7oFUe1lzN1SDtj9P1UxLvNJQ=; b=YZiKb7an4QIRZefzao4H2cCcpLUC1DL38MAI3vXhdiduA9KitwhxzSLNen492zmUTn 8R+i3DX1icsqT0tTNIYZjFDva/DmMUFfdYeQTRbKIfPn+8YdLZGSW9K1AECACE+nBveC D4QmbLjoxyGeCRuawF2Ie5fnzprwIshMi0oKGfuViceLrdft2B621BeUQ+/NrJVPYbWr XUnAw3e/QUY9DLn1RnavN49Knvn+sne815win9Wdi3xj2KwzQuTo93UxJoOhigSwgHjR Pnk58XzwIiFpFzDXnUssaE3uaGp8KqhaX+dYNqL8lDEEuc1uOMdT6eA8BZOK9Lg5g5u5 nEWg== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (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 o24si4048946ejm.674.2020.12.06.03.41.41; Sun, 06 Dec 2020 03:42:04 -0800 (PST) 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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727845AbgLFLjN (ORCPT + 99 others); Sun, 6 Dec 2020 06:39:13 -0500 Received: from mail.kernel.org ([198.145.29.99]:35972 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725767AbgLFLjN (ORCPT ); Sun, 6 Dec 2020 06:39:13 -0500 From: Greg Kroah-Hartman Authentication-Results: mail.kernel.org; dkim=permerror (bad message/signature format) To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Hector Martin , Takashi Iwai Subject: [PATCH 4.14 17/20] ALSA: usb-audio: US16x08: fix value count for level meters Date: Sun, 6 Dec 2020 12:17:20 +0100 Message-Id: <20201206111556.353040335@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201206111555.569713359@linuxfoundation.org> References: <20201206111555.569713359@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: Hector Martin commit 402d5840b0d40a2a26c8651165d29b534abb6d36 upstream. The level meter control returns 34 integers of info. This fixes: snd-usb-audio 3-1:1.0: control 2:0:0:Level Meter:0: access overflow Fixes: d2bb390a2081 ("ALSA: usb-audio: Tascam US-16x08 DSP mixer quirk") Cc: stable@vger.kernel.org Signed-off-by: Hector Martin Link: https://lore.kernel.org/r/20201127132635.18947-1-marcan@marcan.st Signed-off-by: Takashi Iwai Signed-off-by: Greg Kroah-Hartman --- sound/usb/mixer_us16x08.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/sound/usb/mixer_us16x08.c +++ b/sound/usb/mixer_us16x08.c @@ -617,7 +617,7 @@ static int snd_us16x08_eq_put(struct snd static int snd_us16x08_meter_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo) { - uinfo->count = 1; + uinfo->count = 34; uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER; uinfo->value.integer.max = 0x7FFF; uinfo->value.integer.min = 0;