Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1678576pxu; Sun, 6 Dec 2020 03:47:39 -0800 (PST) X-Google-Smtp-Source: ABdhPJxYynJT/w8V+1mRkkHJJ4r9cp7xUyc0hCAnHcnVKMaUPvHnZXnxpZ+WAxtfnJldkgtKP0I0 X-Received: by 2002:aa7:cd9a:: with SMTP id x26mr15177703edv.226.1607255259592; Sun, 06 Dec 2020 03:47:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607255259; cv=none; d=google.com; s=arc-20160816; b=Gjt3gxRmVxdiX/lGFMMtrE24wjSkr6uqEjmDT55Z1x9hr5fDbTEQJUghW6ySBZhMfY 8rpfSDHq6IIdgrgzgPwXO3/tevYN3NT7hysovTn3BNvkUleR0g13ICBRiXBuH2zITlVW nl0roBJVNNyFX6fcZE6HqMwFn1Kok/zSmziVNKlIhGYMZyQ2zT721TxzFTGH3q3ujur5 6uztfCeHzcCHV0dsRDl3EQU0cRraMlMb040sMy8Hq04o3IV4B9D3EJEuK0otBzgBsMDv w5CZ/dJcsnDSuu/XknNDfAOROXpzRMfv9sar3u1efd1Y5GZumpi8f84Fw4ejwmha/CxE yo1A== 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=F2BTxPMYuSAaoPC0WEiXzxZYvGkBnx89OurgsZl5XHM=; b=gUrYPiU71+t7+MW2MYBoPQRCUwUJ8PKrfOnLkEWfprRf7K5Yi5eLdYWJjbqOP2Sx3g cDFTZ4Ec2JtIfL7kX+T17f0aQtFzy2bJmYotSv3WJdNZeg5E6sRNITSQvjBo9VVUSQmm ZJJECx531WNHHe/Lt+VsgcDDTzKwfF46+VFo07ianir2ZwoXYeIMJpFkGyrh1biTXfLi +mtUOUBwkVKjmMjTEGqkWXm4Lp1zFPRXdyxCPPDFkB0DvQSzXyWMqcy0odpOjRGi55J2 tQL9bcT8lqY39CWlXsKh3gXa9uvC8xy0UJkKJXCvEsOQNumS354y5OHzmjd9718XupjL 1Bew== 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 y6si6490166edm.399.2020.12.06.03.47.17; Sun, 06 Dec 2020 03:47:39 -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 S1729121AbgLFLnT (ORCPT + 99 others); Sun, 6 Dec 2020 06:43:19 -0500 Received: from mail.kernel.org ([198.145.29.99]:41906 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728074AbgLFLnS (ORCPT ); Sun, 6 Dec 2020 06:43:18 -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 5.4 35/39] ALSA: usb-audio: US16x08: fix value count for level meters Date: Sun, 6 Dec 2020 12:17:39 +0100 Message-Id: <20201206111556.357338827@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201206111554.677764505@linuxfoundation.org> References: <20201206111554.677764505@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 @@ -607,7 +607,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;