Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1679229pxu; Sun, 6 Dec 2020 03:49:21 -0800 (PST) X-Google-Smtp-Source: ABdhPJwU5rwxTRXGPF1I37As9f9++A5CQr2wf35vzbdlIBDC4dOKM8io4KsLWguhAENfXGofToNH X-Received: by 2002:a50:ed17:: with SMTP id j23mr15707038eds.218.1607255360854; Sun, 06 Dec 2020 03:49:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607255360; cv=none; d=google.com; s=arc-20160816; b=EIwT7kLRewnvZxIFMILxiyM0zmcj6bLtNVWpwM4Q7GWoNFBN+2AhcxmbGv8yk9l4US K7NP8gLd1qpImF/fz2ClsAJxOV1MCjd9xDBetzuWi8W1WzH0Csxj+CgRyc0P/Lz6+/IY sxNMDUqX9L14UTIaMdpveIykihvgKUwrAN9t+w3oJKy3V99pLCLjUBX9uNq5v1Hhe3+B uS4GrIWZKi47w3Ml1u6jTvaTWi0J415HoOGliRHCaPR/MZsOK+jstkAOu39UIPifhRDC oQ8AT5Jxifp81cpPdnx8KmF2CD9kuVww7308npWN7uALXx3+T4mmEHHY9n7h/pK0sHn6 nNmw== 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=xmgK5nGt6ovCV9Kw955BDHMxsbdM7dG4xBxof0KTEEn1oVay9rD2jaPAB1vWT4qlKz RwDsSiOeFRVVXy6V0WjE7VsDLrFow0MKzNYLN+0LVMJpjI107YRqtW8MY5IeyBk/LeCF bANiF3NCtZNju+EbyGxwY+KIY0+dQP3dEq44FR1MRIsYJHpac2QGUToheetQmIBiKHH2 u05hXA8vzAHl3dpA7U5NEmQKo3+MsGAiwjGWd4dpoTns6E72uBM+6nFlja8CPOlaszts hbw/bli2pu+/QaHKy955B0GR3Iu3ly4Lh3iUUF9Nq+ttpoG0KiTiY7W+yHbMMTsSh+yp keug== 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 a6si4635608ejj.398.2020.12.06.03.48.58; Sun, 06 Dec 2020 03:49:20 -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 S1729542AbgLFLpi (ORCPT + 99 others); Sun, 6 Dec 2020 06:45:38 -0500 Received: from mail.kernel.org ([198.145.29.99]:45788 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729510AbgLFLpe (ORCPT ); Sun, 6 Dec 2020 06:45:34 -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.9 39/46] ALSA: usb-audio: US16x08: fix value count for level meters Date: Sun, 6 Dec 2020 12:17:47 +0100 Message-Id: <20201206111558.342307775@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201206111556.455533723@linuxfoundation.org> References: <20201206111556.455533723@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;